Jump to content




Standardization


  • You cannot reply to this topic
11 replies to this topic

#1 tesla1889

  • Members
  • 351 posts
  • LocationSt. Petersburg

Posted 24 January 2013 - 07:01 PM

we need to start standardizing where our programs save their data and files.
my suggestion is to follow FHS (shown below), but other suggestions would be appreciated

/ -- root directory
/bin -- command binaries (for use in terminals)
/boot -- programs to run at startup, such as bootloaders
/dev -- probably would be used for device drivers instead of devices
/etc -- config files
/home -- user files
/lib -- program libraries
/media -- media drivers
/mnt -- no idea for CC
/opt -- optional packages
/proc -- kernel filesystem
/root -- root filesystem
/sbin -- system binaries
/srv -- no idea for CC
/tmp -- temporary files
/usr -- pseudo-read-only user files
/var -- logs and caches



#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 24 January 2013 - 07:03 PM

This may be fine and all for serious programming but.....you know this is for a game right?

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 24 January 2013 - 07:05 PM

I semi do this for my programs anyways... except I use ".support/<prog-name>"

#4 tesla1889

  • Members
  • 351 posts
  • LocationSt. Petersburg

Posted 24 January 2013 - 07:24 PM

View PostCranium, on 24 January 2013 - 07:03 PM, said:

This may be fine and all for serious programming but.....you know this is for a game right?
yeah, but this would prevent save directory collisions

#5 D3matt

  • Members
  • 830 posts

Posted 25 January 2013 - 02:06 AM

View Posttesla1889, on 24 January 2013 - 07:24 PM, said:

View PostCranium, on 24 January 2013 - 07:03 PM, said:

This may be fine and all for serious programming but.....you know this is for a game right?
yeah, but this would prevent save directory collisions
How? Just save to <programname>.

Save directory collision is not something I've ever seen anyone have problems with.

#6 Pinkishu

  • Members
  • 484 posts

Posted 25 January 2013 - 03:23 AM

View PostCranium, on 24 January 2013 - 07:03 PM, said:

This may be fine and all for serious programming but.....you know this is for a game right?

Just cause its a game doesn't mean you have to make your programs a pain for users :P

#7 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 25 January 2013 - 03:25 AM

This is pointless to be honest. Standardisation won't help anything.

#8 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 25 January 2013 - 09:23 AM

View PostCloudy, on 25 January 2013 - 03:25 AM, said:

This is pointless to be honest. Standardisation won't help anything.
I agree, there's little to no save directory collisions in the first place.

#9 cant_delete_account

  • Members
  • 484 posts

Posted 25 January 2013 - 09:29 AM

View Posttiin57, on 25 January 2013 - 09:23 AM, said:

View PostCloudy, on 25 January 2013 - 03:25 AM, said:

This is pointless to be honest. Standardisation won't help anything.
I agree, there's little to no save directory collisions in the first place.
Yeah, I use .thesbros/programname, who else would use that path?

#10 BigSHinyToys

  • Members
  • 1,001 posts

Posted 25 January 2013 - 12:24 PM

I put the config in the same folder as the program or in the root but it is easily changed in the code if there are major problems.
Spoiler


#11 Wired2coffee

  • Members
  • 46 posts
  • LocationThe Coffee Maker

Posted 25 January 2013 - 02:22 PM

This could be useful to make sure that there is no data loss from switching Operating Systems. You could just switch out your old operating system for a new one and all files would be exactly the same.

#12 D3matt

  • Members
  • 830 posts

Posted 25 January 2013 - 02:38 PM

View PostWired2coffee, on 25 January 2013 - 02:22 PM, said:

This could be useful to make sure that there is no data loss from switching Operating Systems. You could just switch out your old operating system for a new one and all files would be exactly the same.
Except they probably don't use the same format, so even if they're in the same location, they might not be readable.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users