|
Just keep in mind that excel spreadsheets are like asbestos: just leave them alone and let them die peacefully, and nobody has to get hurt. The last thing you ever want to do is become in charge of writing an application to replace a bunch of BELOVED SPREADSHEETS. Bonus misery if the people using them are barely computer literate except for their 20 years of experience working with said spreadsheets.
|
# ¿ Oct 17, 2011 18:45 |
|
|
# ¿ Apr 26, 2024 06:26 |
|
Yeah, that's the problem in a nutshell. I've been in two situations so far in my career that were similar to that. I used to blame the users for being total idiots who irrationally preferred a piss-poor solution just because it was more accessible, but in retrospect it was all my fault. The golden rule I go by now is that if I can't replace an existing solution with one they'll find easier to use then it should just be left alone. Sometimes the best solution actually is excel, if it's what everyone there prefers and knows how to use. Eventually enough people will retire or get fired and somebody with a clue will be hired who has the clout and intelligence to coordinate a replacement, but until then there's nothing you can do as a mere developer. If you make them use a new system, they will hate it and intentionally sabotage it every step of the way.
|
# ¿ Oct 17, 2011 20:10 |
|
Since they neglected to put a break in that loop, just add 1,000,000 blank lines to the end of that config file. The site will mysteriously slow down and you can blame it on lovely hosting.
|
# ¿ Oct 17, 2011 22:36 |
|
BonzoESC posted:You certainly can, it's called "training." I can't even get most clients to agree to signing a proposal with "testing" on it, let alone "training." We've taken to just putting all that stuff in as "project management" which they mysteriously seem fine with, but you can only make that number so big.
|
# ¿ Oct 18, 2011 15:25 |
|
I can't remember for the life of me, but I was working with some horrible scripting language not long ago that would actually throw AN ERROR if you tried to do that CORRECTLY. Declaring "int i" a second time would tell you that i was already defined. I ended up having to declare all of my iterators at the top of the function.
|
# ¿ Oct 18, 2011 22:45 |
|
Cheesus posted:Ah, a "classic"... To make this better, be sure you call that function in other parts of the code to determine the units age for completely unrelated reasons, and then later end up changing the warranty eligibility to be based on something completely different, but retain the original function name.
|
# ¿ Oct 19, 2011 16:57 |
|
Tell me whoever said that got fired on the spot, because they were clearly high as a kite.
|
# ¿ Oct 19, 2011 21:00 |
|
w00tz0r posted:That was the tail end of the argument. After he said that, I basically gave up and went to make fun of him on the internet. Feel free to tell him that the internet thinks he's a complete loving idiot.
|
# ¿ Oct 19, 2011 21:10 |
|
BP posted:It would allow you to modify the memory storing the object, as long as you can reverse the changes, rather than making a copy of the memory and mutating the copy. This could lead to some memory savings in some cases. But clearly, if those circumstances aren't present at the exact moment that I'm writing some code, they're not worth taking into consideration.
|
# ¿ Oct 21, 2011 21:41 |
|
yaoi prophet posted:How often do you need to go from millis to months in a tight loop? Even if you somehow did end up in a situation like this, you'd probably be better off optimizing the loop itself. If you really and truly need to do some millions of month look-ups, you'd probably still be better off just caching them.
|
# ¿ Oct 24, 2011 20:13 |
|
This is all theoretically true, but libc maintainers are hopefully smart enough to make their own decisions rather than be swayed by the opinions of a guy on the internet. Everyone else happens to fall into the "not a libc maintainer" category, and probably has no business writing code like that.
|
# ¿ Oct 24, 2011 21:52 |
|
rjmccall posted:So, to paraphrase, your opinions are above reproach because anyone smart enough to not need them is smart enough to ignore you. Something like that. At least I'm not a dick, though.
|
# ¿ Oct 24, 2011 22:53 |
|
tef posted:No, you're a moron I'd rather work with a mediocre programmer who knows his limits, than a genius who doesn't.
|
# ¿ Oct 25, 2011 15:07 |
|
I like to give code like that the benefit of the doubt, and assume there was more code there at one point that made that at least somewhat logical, then that code was removed and it didn't occur to him to refactor. Then again, in some ways that's even worse.
|
# ¿ Oct 26, 2011 23:20 |
|
OriginalPseudonym posted:This is the true reason for source control. Not for rollbacks, but for laughs after the fact. "svn blame" is possibly the best thing to ever have happened in computer history.
|
# ¿ Oct 27, 2011 00:12 |
|
Optimus Prime Ribs posted:I'm not really sure what this was supposed to be used for. Written by some dude a year ago, who left where I work before I got there. How quickly you forget! Clearly it's there to write out this config file: Optimus Prime Ribs posted:Found this in the backend for our CMS:
|
# ¿ Oct 27, 2011 14:25 |
|
OriginalPseudonym posted:In a week you'll have found the PHP script that's being run by cron that posts back to that config file. No, it loads that script that pulls the event id from config.txt, then writes it to the database.
|
# ¿ Oct 27, 2011 18:33 |
|
qntm posted:I just want you to know that I laughed at this. The other guy didn't get it, but I did. Well done. I don't get it, what the gently caress's a COBOA?
|
# ¿ Nov 1, 2011 15:04 |
|
Gazpacho posted:Yeah yeah, misindented code. Worked on some for four years, then later worked in a job where the offshore devs regularly sent misindented code for review and refused to correct it to standards. Cry me a river and go learn Python you baby. At my last job, the CTO had the most horribly formatted code I'd ever seen in my life. I ended up using python for as much of my new development as I possibly could, just to avoid him going in and mangling my code. He tried to mess with it a few times but he could never get anything to compile so we just reverted his changes. He was also a terrible programmer, so this was quite a blessing. What about an svn hook that runs a whitespace formatter, and if it passed some threshold of changes, rejected the commit. In my experience, anyone who can't think straight enough to format their whitespace has other problems too.
|
# ¿ May 9, 2012 14:39 |
|
|
# ¿ Apr 26, 2024 06:26 |
|
Thermopyle posted:I've never worked anywhere with a CTO, but it seems odd that one would be writing code. It was a small company, and they gave many of the senior employees "officer" or "director" titles when they couldn't afford to give us raises. If that sounds screwed up and like they didn't know how to run a business, it's only the tip of the iceberg.
|
# ¿ May 9, 2012 15:01 |