Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Is the following directory structure good?

 
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a mounted storage on my RHEL server and I want to create a directory structure for file management. I have two projects right now,viz. `project1`, `project2`.  I'm planning to have the following directory structures inside the NFS mounted storage for `production`, `development` and `test` server. Please let me know if this looks reasonable/correct.

> - prod
>       - project1
>           - userfolder1
>           - userfolder2
>           - userfolder3
>       - project2
>           - userfolder1
>           - userfolder2
>           - userfolder3
> - dev
>       - project1
>           - userfolder1
>           - userfolder2
>           - userfolder3
>       - project2
>           - userfolder1
>           - userfolder2
>           - userfolder3
> - test
>       - project1
>           - userfolder1
>           - userfolder2
>           - userfolder3
>       - project2
>           - userfolder1
>           - userfolder2
>           - userfolder3

I have used only 2 `projects` and 3 `userfolders` for brevity. I can have `n` number of projects and `n` number of users
 
Ranch Hand
Posts: 127
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's one of those "there's no right or wrong answer" - it comes down to prefence and requirements.

Does it make sense to split between prod, dev and test - or is it more useable to split between projects 1 and 2 and have prod/dev/test inside them?
Also: What do the userfolders contain? Are they the same? Does dev and test work on real prod data or do they have their own set?

Just to give you a real world example:
I once worked for a customer care. One day a customer send an e-mail contain some unicode "smilies" and one of my colleagues just copied them over > which for some reason "crashed" the live prod system in some way. The IT staff couldn't find the issue for two weeks - and I resolved it within two minutes just by figure out the last working index and then opened the "corrupted" dataset just by counting +1 myself - which all of the sudden resolved not just this issue but also some others which where also caused by this - and I never even got any recognition from the IT staff (I was only asked by supervisor to write up what I did in a rather boring e-mail) - end of story - they didn't fixed it so the day I got fired I just took the last few moments to "kill the system again" by the same thing - but this time not with an index of 1000+ but right +1 - which ended up in another chaos.

TLDR: You have chosen this structure - why? Does it benifit the requirements? Does it cause issues? Do they run on the same system or are prod/dev/test split up on different systems / environments? It doesn't really matter as long as you and those who have to work with it find their way around. Just think of different ways of layering the different levels in eachother and figure out their pros and cons.
 
Saloon Keeper
Posts: 12129
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bob Winter wrote:they didn't fixed it so the day I got fired I just took the last few moments to "kill the system again" by the same thing - but this time not with an index of 1000+ but right +1 - which ended up in another chaos.


So you deliberately sabotaged a system that your customers were relying on?
 
Bob Winter
Ranch Hand
Posts: 127
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:

Bob Winter wrote:they didn't fixed it so the day I got fired I just took the last few moments to "kill the system again" by the same thing - but this time not with an index of 1000+ but right +1 - which ended up in another chaos.


So you deliberately sabotaged a system that your customers were relying on?



off-topic - maybe should be split off and moved

Well, as for the customers: Nope, anything relevant to them, like all the public stuff, automated processes, still all was fine. It was basically our day-to-day data-access tool unable to correctly handle unicode characters. Also, I don't really see it as "sabotaging" as
1) between the first time it happened on accident and my actions were a couple of months - enough time to get it fixed
2) as I was asked by my supervisor back at the first time to write an e-mail so it can be forwarded to the devs I wrote down every single issue with this whole application I knew about at this point, from failing to handle unicode to "freezing of GUI" cause classic "blocking of EDT by long-time network remote database access" - and judging on what a piece of junk this crap software was we had to use the "devs" are either all were only interns themselfs or earned quite a good payment for basically just playin a bit with a GUI builder - missing on some essential fails
3) as they had all informations and I just reproduced an issue known to the devs (and which should had been fixed to this point) it was a bit like "keep kicking on someone already on the floor" - when someone earning about 3-5 times an hour as I did isn't able to fix some beginner level mistakes which never should had been in the production version anyway s/he doesn't deserve this job
Also, it wasn't meant to screw my then-no-longer-colleagues or the customers - but the supervisors which got me fired cause I did something to get things done instead of re-delaying them over and over and over again. I asked many times upfront how to handle some the more severe cases which needed urgent actions - but nothin ever really happend to most of them. On the other hand we had quite a lot of "customers" (some of them in fact were still paying active ones) we got quite a lot of mails back with error messages like "quota exceeded" or "user does not exists". For me as someone running his own mail server the cause of this is clear on the spot: Either the e-mail-address was entered wrong in the first place (we had some customers unable to spell their own names) or were abandoned as they got full of spam. And I explained this more than just one time to my supervisors and asked for same alternative like try to phone the customer or sending postal letters - but if you got a wrong phone number, an unusable e-mail-address, the postal service returning letters with "name not found" and no payment there're still ways to find them. But noone cared - and so the whole company with just about 12.000 to 15.000 customers lost huge amounts of money.

But - did they listen to me? Nope. Not when I explained them the unicode issue - not when I explained them what certian error return codes mean - and not even when I pointed out possible alternatives - so in fact at some point I just said to me: "Ok, if they don't want to listen let's show them ..." - and so, after I gave back all my stuff (just a headset and an access card) I said goodbye to all my friends - took the spare minute I got as noone looked - did some "black magic" and went out the door. As it was an immediate termination the moment I stepped outside the door I couldn't got get charged for anything I just did sconds ago ... I just heared a few months later that the call-center I used to work for lost the contract (ok, it was a small project with just 8 of us + 1 team leader) - and to be honest: I wasn't even sorry for it ...
Why I don't have any fear to share this story? Well, first of all cause I can'T get charged for it, it didn't lost any of my former collegues their jobs, didn't had negative effects on the customers and hopefully at least someone in chraged had learned the lesson to listen to someone know what the heck he's talking about - although I highly doubt that this happend.

So, if one ask me: Did I messed up the system on purpose? Yes, I can'T deny that one. But did I "sabotaged" them? It depends on how one defines that term - as the company itself made quite a lot of mistakes a few levels high up the chain and didn't listened when we as the daily working shift crew reported issues upon issues and asked many times for help and how to handle certain things. So maybe I was just to one who gave the impulse to get the stone rolling ...
 
    Bookmark Topic Watch Topic
  • New Topic