BostonB wrote: » The same field appearing throughout an almost zero normalised database. Renamed something different everytime it appears. Date, StartDate, Current_Date, and sometimes as date and some times as datetime, and sometimes as null, then displaying/sorting records by datatime. Which puts them in a meaningless order. No meaningful information in the error handlers, so that users think the system has a bug/crashed, and they log a support call each time. The helpdesk system has more bugs than the system its logging calls on. Being handed a legacy project, developed over a decade or longer, by too many cooks who couldn't code properly, so no comments, no meaningful names to modules, functions etc, and then expected to fix it when it falls over. You can do in in access but you shouldn't. But that was 5 yrs ago. No I can't open the database either. Versioning, they've heard of it. Ditto testing.
if (condition == true) some block of code else if (condition == false) some block of code else the block of code I needed to run
//[dd] [functionxxx] is supposed to be a class function, but it is only called // in an instantiated version of the already existing class, and it returns // a second instance - real stupidity - its leaking like a rusty bucket. //[dd] 30.10.2007 This is so broken its not even funny // I've depreciated due to the reference to PropList //[dd] For the time being - just find the respective node, and pretend it has // been clicked. Its wasteful but... what the fcuk are you to do in this // mess? really??? //[dd] 16.11.2007 Removed Delete Proposal - WTF was this added in the first place? //[dd] 25.09.2007 [function name] - WTF is this in [unit] and not here??? // It doesn't appear to be referenced anywhere else, I've moved it here aNewPanel := CustomerPanel; Ntype := 'CUST'; // <--- wtf is this about? ntype? {----- comment--- This method below was required because of problems with *** sufacing message record changed by another user etc This method is used after a save to resolve the *** issues. ----- new comment there probably isn't any problem - its just the screen has been written by an idiot. //[dd] FFS popping up a messagebox inside a transaction is fupping criminal //[dd] 19.12.2007 THIS SHOULDN'T BE HERE FFS. //FFS main. <- this is sick
// sink can edit because it doesn't work for us here - fckn idiot //Inherited CanEdit(bEnabled);
dazberry wrote: » you need someone with an almost narcissistic belief in their skills and a matching aggressive streak just to liven up things.
Hellm0 wrote: » I think my least favorite thing to hear in a job is the word "Agile". The moment I hear the words "We are an agile shop!" I know to expect nil documentation, no concept of architecture and unreasonable deadlines.
dazberry wrote: » I work in a sh1thole (commonly referred to as a financial institution).
The_B_Man wrote: » You should apply for this job:http://www.irishjobs.ie/Jobs/Visual-C-C-Engineer-Dublin-6299664.aspx
zynaps wrote: » Oh man, "agile" and "Visual C/C++" together in a job ad do not promote a sense of wellbeing. Also, "Min 2 years recent experience in Net Technologies". What's that? .NET? Networking? Maintenance of fishing nets? Also also, where do they get this "min 2 years recent experience of <random half-desired skill>" from? I wish people would stop saying things like that in job ads :rolleyes: Back when .NET was about 4 years old, I remember seeing an ad demanding "min 6 years experience of .NET technologies" or such. :mad:
COYW wrote: » Just come across a database table which has 25 million rows and no keys. The problem with asking questions in Ireland is that it is seen as a sign of weakness.
BostonB wrote: » I dunno, Asking "was there a competition to rename the same field as many different ways possible across the database" didn't really get the laugh I was expecting.
// We should never get here.
Codpeas wrote: » One of my pet peevs: // We should never get here.
default: /* Should never enter here */ RDEBUG("Internal sanity check failed on eap_type"); rcode = 0; break; }
Sparks wrote: » That's not quite so horrible as you'd imagine though, it can be good practice. For example, from a switch statement in a freeRADIUS cllient: default: /* Should never enter here */ RDEBUG("Internal sanity check failed on eap_type"); rcode = 0; break; }
lil_lisa wrote: » I guess I should be grateful that my boss lives by the "Copy & Paste" rule...except for the fact that its his answer to everthing!
lmimmfn wrote: » no comments, no structure, a love of copy and paste( OO IDE's should disallow the copy menu item, and should refuse to compile if code is too similar in long methods and differing by a line or 2 ) I doesnt take a genius to realise that the larger the code base the more problems will exist, copy and pasting also has the problem of fixing something in one place and forgetting to update the other 10 exact same methods elsewhere
Evil Phil wrote: » If you remember the name of it zynaps can you post it here? Sounds really good.
zynaps wrote: » After a bit of googling, I remembered there were two that we used, along with"Checkstyle" (and corresponding Eclipse plugin, sadly not updated since 2006) "Findbugs", seems more recently updated, but some of the website is down anyway :rolleyes: In fact, both of these (as well as a Cobertura test coverage report) were generated automatically by Maven whenever we were thinking about checking in some changes to the SVN repo. Kind of amazing how powerful coding tools (especially free, open source ones!) have become in the last decade! Needs a lot of horror to compensate for all that goodness... [edit] Actually I think we used a third (!) static code analyser, PMD for some reason... :P
Sparks wrote: » SQL also seems to be immune from even efforts at version control and deployment controls. The number of times I've seen a dev team working on one SQL codebase only to find there's a different codebase on the live server...
BostonB wrote: » Last app I inherited there was no handover, and it was a few weeks before I discovered there was about 3 versions of the application and another 3 versions of the database, none of which matched the live app or database, no comments, no notes. Located across different machines, none of which backup up to source safe, or on the network.
if($_value->getTitle() == "None") { /* do stuff */ } else if($_value->getTitle() == "Basic Widget") { /* do stuff */ } else if($_value->getTitle() == "More Expensive Widget A" || $_value->getTitle() == "More Expensive Widget B") { /* do stuff */ } else if($_value->getTitle() == "Contact my specialist, I do not have XXXX") { /* do stuff */ } else if($_value->getTitle() == "I will fax a copy to +353 (0)123 4567890" || $_value->getTitle() == "You already have my details on file" || $_value->getTitle() == "I will scan and email a copy to <a href='mailto:info@12345672222domain.com'>info@12345672222domain.com</a>" || $_value->getTitle() == "I will fax a copy to 1890 123456") { /* do stuff */ } else if($_value->getTitle() == "I will be responsible for my details and i will input it below") { /* do stuff */ }