Entertaining down to the last paragraph? Most definitely.
A lot more in there rings true (even if in a hyperbolic manner) than I care to admit. Granted, we're not alone in having complex jobs, but still...
I think the most unnerving part (because it's so true) is the bit about that piece of good code you write... good code that ultimately becomes overshadowed by hack upon hack upon duct tape fix in the code that surrounds it... you ultimately end up hating nearly everything you write...
that piece of good code you write... good code that ultimately becomes overshadowed by hack upon hack upon duct tape fix in the code that surrounds it... you ultimately end up hating nearly everything you write...
Oh my god yes. I've had a comment sitting for MONTHS saying
<!--- Change this ugly, dirty, sinful hack into something pure and beautiful --->
Has the code been changed? Fuck yes. Has the hack been unhacked? Fuck no. Because it works. Because I don't know what the fuck the answer is but it sure as shit won't work if that hack is taken out. So it stays there, day after day.
Every programmer starts out writing some perfect little snowflake like this. Then they're told on Friday they need to have six hundred snowflakes written by Tuesday, so they cheat a bit here and there and maybe copy a few snowflakes and try to stick them together or they have to ask a coworker to work on one who melts it and then all the programmers' snowflakes get dumped together in some inscrutable shape...
That just reminded me so much of my own experience. whoa
For the past two years I've been working on one project building software that my boss describes as "enterprise level." We started with a drawing on a whiteboard. Now we have over 100,000 lines of code. If any of it was ever good, it was murdered a loooong time ago. The sheer number of blatant hacks that are used to get around stupid nonsense is staggering. I've written things I'm not proud of. College me would be disgusted by current me.
I feel so ashamed. Our clients "ooh" and "aah" over the things that I've made, but I feel like I'm showing them a 1989 Geo Metro that's got a dust cover on it with a painting of a Ferrari 458.
Ah college. Back when you are idealistic enough to look at all the poorly written software in the world and think "I'll never end up writing crap like that". So young and naive.
And that's the real problem. As long as the clients are happy many companies see little business benefit in cleaning up code (despite the fact that there may well be real benefits - reduced maintenance costs, fewer staff needed, etc).
The fact that many clients in the 'enterprise' world wouldn't know a well-designed, efficient program if it tap-danced naked on their desk compounds the issue further. People think that waiting minutes for a process to complete is normal to the point that if it only takes a second or so, they assume it hasn't worked!
Ah typical maintenance hell. I am suspecting this is your first programming job. Any project with continuous support and usage will eventually involve into a beast. Typically the clients are willing to dump enough money for you to maintain it and add on ridiculous requests on a monthly basis. Once you add on one or two new developers the original design is shot to hell. What is architecture when you only are two weeks old on a project and they want this update in a week.. Hack hack and hack.
One of the best project I worked on was when a client didn't have enough money for regular updates. So they request very small changes. I touch that thing maybe once a year.
"The only reason coders' computers work better than non-coders' computers is coders know computers are schizophrenic little children with auto-immune diseases and we don't beat them when they're bad." - Probably my favorite line.
That program won a contest, because of course it did.
This line is my favorite; it embodies the character and expression and succinctness of pure exasperation I strive to put into my own rants. Great post several times over.
You must have not finished the article...the last line is the best:
So no, I'm not required to be able to lift objects weighing up to fifty pounds. I traded that for the opportunity to trim Satan's pubic hair while he dines out of my open skull so a few bits of the internet will continue to work for a few more days.
Doing this all day leaves you in a state of mild aphasia as you look at people's faces while they're speaking and you don't know they've finished because there's no semicolon.
<!--
So this guy we just interviewed at my
current job wrote this little script
to see if a product update for some
company had come out. Every 10 seconds
the script urllib'ed the page, checked
the length of the html - literally
len(html) - against the length it was
last time it checked. He wrote a blog
post about this script. A freaking
blog post. He also described himself
as "something of a child prodigy"
despite, in another post, saying he
couldn't calculate the area of a slice
of pizza because "area of a triangle
with a curved edge is beyond my
Google-less math skills." Seriously
dude? I haven't taken geomtry in 20
years, and pi*r^2/8 seems pretty
freaking obvious.
The script also called a ruby script
to send him a tweet which another
script was probably monitoring to text
his phone so he could screenshot the
text and post to facebook via
instagram.
I think the "millenials" - who should
be referred to as generation byte - get
undeserved flak, as all generations do,
for being younger and prettier and
living in a different world.
But this kid calling himself a prodigy
is a clear indication of way too many
gold stars handed out for adequacy, so
to ensure that no such abominable
script ever does anything besides
bomb somebody's twitter account, this
comment shows up exactly 50% of the
time, and I encourage others to do
do the same.
-->
Yeah, there's some shitty code here. There are some things that shouldn't be done. I did them. Sometimes, I had my reasons. Sometimes, I was just being lazy. But guess what? You're sitting there reading the source on some guy's blog. So fuck you.
I worked in a place like that before. Generally everything was fine, besides a few violations of coding standards. Hacks would be put into the backlog to get fixed, and often did. We had processes, documented too. An engine that rarely needed changing. Most of the time we were making features since there weren't many bugs to worry about, and during bug fixing week (once per sprint) we'd fix 90% of the open bugs and resume features.
I'd have kept working there forever if I could. It had a great culture, lovely people, an active after-hours social life, a lively office and talented people who were mostly down to earth.
Sadly, as is typical in game studios, it went through hard times and isn't the same anymore. Now I work for a soulless, incompetent, mobile game developer and am likely going to quit and go to finance. If I'm going to sell my soul and work ethic I want a decent price for it.
This file is Good Code. It has sensible and consistent names for functions and variables. It's concise. It doesn't do anything obviously stupid. It has never had to live in the wild, or answer to a sales team. It does exactly one, mundane, specific thing, and it does it well. It was written by a single person, and never touched by another. It reads like poetry written by someone over thirty.
When I'm coding as a hobby, I pretty much only write programs of 50-100 lines of code. Anything more than that, and bad shit starts creeping in.
I have yet to see a bigger project, something that people really use and that is not a library or a class of some sort, a project with end-user use, that is good code.
In my experience, you'll always end up pinpoint the moment when the coder gave up and shit went downhill.
I bet he put it there knowing every coder reading that would start compulsively searching the document for the beginning tag...and even after I've figured out that he was trolling, I'm still trying to look for it.
Actually, I think everything in the world works this way. Not just programming. The situation is just starker in the programming world due to how closely the pristine realm of mathematical purity is juxtaposed to the profane circumstances of lived reality.
I think everything in the world works this way. Not just programming.
Actually, he opens with a metaphor that demonstrates the untruth of this. If bridges were built the way programs were -- such that you could see the half dozen architectural styles, the oddly shaped crap tacked on here and there with bailing wire, with random holes that'll kill you if you step in them -- nobody but Russian teenagers would go near them.
Non-programmers don't understand what programmers do.
Even programmers don't understand what they're doing most of the time.
There's no peer review, no government-enforced standards for safety, no industry-enforced standards for minimum quality.
The problem is the technology-illiterate culture we live in where it's not only totally acceptable to be completely hands-off with technology, but you're stigmatized as an undesirable necessity if you work with it for a living.
While I was getting my teeth rebuilt by people with decades of experience and tons of training, something horrifying occurred to me. These are just guys doing the best they can, while not really knowing the big picture.
When the endodontist (n. expensive dentist) drilled into a nerve without numbing it first, it hurt an amazing amount. I was on valium and nitrous oxide. These are like a QA department for a dentist. They make sure nothing really bad happens when someone screws up. So, inside my head, I said to myself, "The doctor said I should let him know if it hurts. Well, it fucking hurts. But it's his job to figure that out. If he doesn't know I'm in excruciating pain, that's his own damn problem."
I don't know where I was going with this, but I'm pretty sure a whole lot of people are just kind of winging it, hoping no one catches them pretending to know what they're doing.
"So no, I'm not required to be able to lift objects weighing up to fifty pounds. I traded that for the opportunity to trim Satan's pubic hair while he dines out of my open skull so a few bits of the internet will continue to work for a few more days." - nearly spit out my drink with this one.
Everything about this post is entirely too accurate.
That part is bullshit. I worked 6 years in a refridgerated warehouse lifting heavy boxes of food for 12 hour days. It was the worst part of my life. I hated everyday of work. Now 5 years of programming later I still think programming is a breeze compared to that job. I leave on time, have energy to play with my kids and Theres enough jobs out there that I don't have to put up with bullshit in programming too.
Eh, it's not so bad. I do my best, some of it's good, and I get paid pretty well. Then I go home after 8 hours of work and do what I wish I had been doing all day. That's about as good as any job gets.
This comment comforts me so much. I wonder if I had read this a couple of months ago what would be different (if anything) for me.
As it stands about 2 months ago after a coworker introduced a new library and I wasted 16 hours on a problem (a pair of parentheses it turned out), I simply got up from my desk and left. That was it. Done.
Now I'm embarking on a new career path and shit, I won't be making as much money for a while (if ever again), but I do not feel like my life is slipping by one horrendous program after another anymore.
s/camel/_/ is "substitute underscore for camel" literally, but in this case the terse speaker offering advice means "use underscore not camel case." So the function the person actually wants is "array_reverse" ...I guess.
He asks if the function is called arrayReverse but the correct name is array_reverse. The person responding applies a substitution rule on arrayReverse instead of saying just array_reverse, although the substitution rule is not a valid regex but it's easy to understand what he means, that's part of the joke
Wasn't that guy helpful? With the camel? Doesn't that seem like an appropriate response? No? Good. You can still find Jesus.
Most people don't even know what sysadmins do, but trust me, if they all took a lunch break at the same time they wouldn't make it to the deli before you ran out of bullets protecting your canned goods from roving bands of mutants.
After the introductions are made, you are invited to come up with some new ideas, but you don't have any because you're a propulsion engineer and don't know anything about bridges.
Simple analogies, like asking a joint surgeon to do cosmetic surgery. They might be able to do the job acceptably, but not anywhere near the level of what an expert in that area could do. Part of the problem is not many software engineers are in a position or willing to decline requests like that.
You are an expert in all these technologies, and that's a good thing, because that expertise let you spend only six hours figuring out what went wrong, as opposed to losing your job.
Not a programmer. But this is scaring me, as are all the comments seeming to agree with these sentiments.
Thing is, I've started studying programming a little, and hoped to learn more. Now I'm wondering if doing so with any eye toward one day doing something programming-related as a job is just going to make me miserable and shorten my life expectancy.
I feel that programmers greatly exaggerate how hard their life is. As long as you stay current and practice a bit, you'll probably find that it's not nearly as hard as people pretend it is. I'm speaking of standard business development here, nothing specialized.
Truth is, there are so many resources out there that you can solve a great majority of your problems with a little research. Frameworks these days do a ton of the legwork for you. Most apps are quite simple when you break them down - you take what's in a DB and show it to the user, allow them to edit some stuff and update the data. Throw some business rules in there, validation, error handling, etc - all problems that need to be solved in pretty much all programs and as you gain experience it becomes easier to solve these problems.
I'm a highschool dropout, never seen a day in college, I'm not great at maths, but I've managed to stay employed as a developer for the last 14 years and I've never been fired (actually just a few weeks ago I got another raise).
It's not that bad. Either people are overcomplicating it or they are exaggerating. Of course some days are shitty but day-to-day it's not bad. I love what I do.
*For the record, I'm talking about standard CRUD applications. Obviously there's a big difference between building a website for a business and developing a kernel.
Trillions of dollars depend on a rickety cobweb of unofficial agreements and "good enough for now" code with comments like "TODO: FIX THIS IT'S A REALLY DANGEROUS HACK BUT I DON'T KNOW WHAT'S WRONG" that were written ten years ago.
"You are an expert in all these technologies, and that's a good thing, because that expertise let you spend only six hours figuring out what went wrong, as opposed to losing your job. You now have one extra little fact to tuck away in the millions of little facts you have to memorize because so many of the programs you depend on are written by dicks and idiots."
"This is what it is to learn programming. You get to know your useful tools, then you look around, and there are some handy new tools nearby and those tools show you the bottomless horror that was always right next to your bed."
God damn I quit my programming job of two years just a few days ago and this article touched on nearly every point that drove me to madness in my job. Fuck I need a drink......
I like this post, but there's one thing that always makes me cringe a little: the classic statement of "Well sure, manual labor is PHYSICALLY taxing, but MY job is MENTALLY taxing."
This sentiment presupposes that physically demanding jobs aren't also mentally draining. It's narrow-minded and sometimes extremely inaccurate.
As another commenter pointed out, sometimes programmers need to be reminded that they aren't exceptional special flowers who are the only ones dealing with a never-ending, intertwined mountain of bullshit.
I've worked in labor (construction, cement crew, roofing, carpentry, excavation, landscaping) before coming to this career.
Yes, I had to do some math and think hard occasionally.
It is absolutely no comparison to overclocking my brain for 10 hours a day.
I now go help relatives do the things that were my old jobs on the weekend TO RELAX.
Let me repeat that: I bust ass on shovels and backhoes and roofs to relax from programming.
I also have worked kitchens, ran fast food, and managed restaurants in my time. I could do any of those while laughing now.
Programming is totally different, and the bullshit of programming is extremely unique in my experience. In no other field has my limits been pushed as hard, nor have I exhausted myself as regularly and thoroughly as in programming.
Let me repeat that: I bust ass on shovels and backhoes and roofs to relax from programming.
I could repeat it for you, since I'm in the same boat. Is hard labor exhausting? Yessir. But you can do it even while your mind is relaxing or thinking of something nice. You get to come home, lay in bead after a good beer and go to sleep.
After hours of coding, you get tired, but your body isn't. Which is a weird combo. Then you can't stop thinking about your project. But then you also need to take some time to brush up on this new technology that came out recently and study it a bit. Then you also need to read a few articles to be up to speed. Then you sleep. Then you get up, and even though you're tired and not in the mood, you're supposed to grab a coder's paintbrush and "paint" your masterpiece within the wanted timeframe. Fuck.
Favorite paragraph of the article:
Every programmer starts out writing some perfect little snowflake like this. Then they're told on Friday they need to have six hundred snowflakes written by Tuesday, so they cheat a bit here and there and maybe copy a few snowflakes and try to stick them together or they have to ask a coworker to work on one who melts it and then all the programmers' snowflakes get dumped together in some inscrutable shape and somebody leans a Picasso on it because nobody wants to see the cat urine soaking into all your broken snowflakes melting in the light of day. Next week, everybody shovels more snow on it to keep the Picasso from falling over.
I've also done a little construction and the difference for me is being able to "shut it down" every night. I mean, sure, you might have to hammer more nails in the same building tomorrow, but you don't have to think about it until tomorrow.
For me it's constantly knowing I have more and more work to do and how to solve it and get it done and not being able to really just "shut it down" every night and not worry about it until the next day.
EDIT: And I'm not necessarily saying this only a programmer's problem. To me, this is what separates white collar work from blue collar work more than anything else.
As another commenter pointed out, sometimes programmers need to be reminded that they aren't exceptional special flowers who are the only ones dealing with a never-ending, intertwined mountain of bullshit.
This blog post wasn't about that though. It doesn't imply that programmers think their jobs are harder than everyone else's, it is about the fact that people from other professions don't believe the programming industry to be as cruel as it is. Just my opinon.
And mentally taxing jobs can also be physically taxing. Sitting in a chair is a lot less physically demanding than holding a jack-hammer, but sitting in a chair all day still takes a toll on your body.
Long-time computer users generally have screwed up shoulders from hunching them (even if slightly) all day. Then theres carpal tunnel, etc.
The important thing is not to be dismissive of other people and their experiences. The details are often just a result of where the magnification level is set and where the optics are pointing. Change the viewing frustum or magnification level, and see something totally different.
Physically taxing jobs generally aren't mentally taxing.
I was dying for a job that would challenge my brain out of college. Now I look forward to doing yard work (something I wouldn't have believed in a million years as a student).
I miss fucking laying bricks and waiting tables from time to time as well, just not the shit income.
I have worked both physically taxing jobs and mentally taxing jobs. Physically taxing jobs were like vacations compared to the hell of depression that mentally taxing jobs can be.
I'm not sure if I'm supposed to feel worse about programming because nothing is ever fully functional and doesn't last very long and doesn't make sense, or feel better about programming because nothing is ever fully functional and doesn't last very long and doesn't make sense.
While I know the author in person, I'm not just saying this for the hell of it - he is an excellent writer and has a book out as well, And Then I Thought I Was a Fish - check it out.
I have been programming for 34 years now and yes there is some truth to this :-) Having said that, it isn't just programming that "works" this way. Most of what groups of humans do is messy and crazy. Look at how governments, companies, religions, military organizations etc. "work" and you will see the same stuff going on. I think it is human nature. What is truly astonishing is that despite all of this things still somehow gets done and move forward :-)
"Doing this all day leaves you in a state of mild aphasia as you look at people's faces while they're speaking and you don't know they've finished because there's no semicolon. "
Most people don't even know what sysadmins do, but trust me, if they all took a lunch break at the same time they wouldn't make it to the deli before you ran out of bullets protecting your canned goods from roving bands of mutants.
So very true ... Once, when I was a sysadmin, my whole team went to lunch, and one of our secondary UPS units, which was the size of a small car, was having maintenance. A packing washer that was not removed during installation (years before - got stuck to the side by something), fell and landed perfectly on the 3 phase power line, vaporized, and shut down an entire data center ... of an operation that was responsible for hundreds of thousands of dollars of revenue an hour. The fallout from the event also prevented us from switching over to the generator.
Doing this all day leaves you in a state of mild aphasia as you look at people's faces while they're speaking and you don't know they've finished because there's no semicolon.
Most traditional engineers get exposed to this first year in engineering. From the pure and beautiful physics theories we transition to a-bunch-of-guys-did-a-few-experiments-and-published-them-so-lets-draw-a-line-through-the-points-and-call-it-a-day. Computer engineers who get shocked by real world code probably took CompSci, which is analogous to physics here. Less theoretically trained engineers would probably be used to it.
Depends on the school. Even in classes that software engineering (that's probably the wrong word) the professors only care about design pattern and that you at least start with a good basis.
You discover that one day, some idiot decided that since another idiot decided that 1/0 should equal infinity, they could just use that as a shorthand for "Infinity" when simplifying their code. Then a non-idiot rightly decided that this was idiotic, which is what the original idiot should have decided, but since he didn't, the non-idiot decided to be a dick and make this a failing error in his new compiler.
As someone who's currently working with a 5 year old, frequently modified, 50k line monstrosity of a powershell script that interfaces with java, jenkins, and bat (and a lot more), this article really hit home for me.
The problem here might not be programming, but that the majority of professionals work for other people and in turn make those people rich off their own work. It seems that the programmers who make their own apps and/or businesses are the most satisfied. Work on your own stuff. Be a creator.
Right now someone who works for Facebook is getting tens of thousands of error messages and frantically trying to find the problem before the whole charade collapses.
This actually cracked me up so much, its so true.. because Facebook is written on PHP and unless you've got an incredible try/catch setup (and unit tests, for every single little thing)... it will make it that much harder to find problems lol
"You discover that one day, some idiot decided that since another idiot decided that 1/0 should equal infinity, they could just use that as a shorthand for "Infinity" when simplifying their code. Then a non-idiot rightly decided that this was idiotic, which is what the original idiot should have decided, but since he didn't, the non-idiot decided to be a dick and make this a failing error in his new compiler. Then he decided he wasn't going to tell anyone that this was an error, because he's a dick, and now all your snowflakes are urine and you can't even find the cat."
Is it just me, or are the only articles I ever see on my front page from /r/programming the ones with provocative titles, or at least titles that make blatant stabs at conventional wisdom in order to drive site traffic?
"Programming sucks?" You're not even trying anymore. What's next, "Flatfiles are better than Databases?" "VB6 Got It Right?" "Encryption Is Worthless?" "Why ActiveX Controls Are All You Need?"
I really enjoyed this, while at the same time wondering how the fuck i can survive being a programmer. What to do to avoid all those pitfalls described in the article..
Holy shit this thread is insanely depressing. I thought I'd be set majoring in computer science. Fucking great, I'm heading to my first year at college, should I change my major now??
No, it's fun to bitch but the pay is nice. I have to support a crappy content management system, and write a bunch of crud in jscript, but honestly I don't know what I'd rather do. It's a tough world and of the worst that I have to do is basically play Myst for a living then I feel like I'm doing OK. I majored in math not cs though
Experiences are subjective. When I was a kid I wanted to be an architect until an grumpy old architect told me he hated his life and so I abandoned that idea. I still love Frank Lloyd Wright and wish I had at least kept it as a hobby. Luckily you have two years of general education before you take advanced courses pertaining to your major. Use this time to explore your options, learn programming and talk to a variety of professionals in the different fields that interest you. You can always change your major later. Also consider that many people end up working in a field completely unrelated to their major.
I'm sure this post exaggerates a ton, but as someone who is still only a few months into teaching himself to program and wants to eventually switch to programming as a career, I hope it is not as bad as some people say all the time. Certainly people enjoy programming...right? I hope!
Silly question, but how can we improve this? I've long thought about using AI to automate the boring or difficult parts of coding. Assuming we even had that level of AI, would it solve the problem? You'd still have to specify to the computer what you want it to do somehow.
I worked with a lady that had her computer within a (crufty-looking) pyramid made of drinking straws with two chicken bones suspended by a piece of dental floss hanging from the apex. Yes, it worked very well.
According to the author, that program is "two lines of code that parse two lines of embedded comments in the code to read the Mayan numbers representing the individual ASCII characters that make up the magazine title, rendered in 90-degree rotated ASCII art."
HAI
CAN HAS STDIO?
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
VISIBLE SUM OF VAR AN 1
IM OUTTA YR LOOP
KTHXBYE
An esoteric programming language inspired by the funny things that cats say on the Internet.
Most people don't even know what sysadmins do, but trust me, if they all took a lunch break at the same time they wouldn't make it to the deli before you ran out of bullets protecting your canned goods from roving bands of mutants.
"The only reason coders' computers work better than non-coders' computers is coders know computers are schizophrenic little children with auto-immune diseases and we don't beat them when they're bad."
Yeah, and in security we read that shitty code and say to ourselves "HOLY GOD, WHAT THE FUCK??" Then we have to explain why that code is bad. Then we drink. A lot.
Remember that stuff about crazy people and bad code? The internet is that except it's literally a billion times worse. Websites that are glorified shopping carts with maybe three dynamic pages are maintained by teams of people around the clock, because the truth is everything is breaking all the time, everywhere, for everyone. Right now someone who works for Facebook is getting tens of thousands of error messages and frantically trying to find the problem before the whole charade collapses. There's a team at a Google office that hasn't slept in three days. Somewhere there's a database programmer surrounded by empty Mountain Dew bottles whose husband thinks she's dead. And if these people stop, the world burns. Most people don't even know what sysadmins do, but trust me, if they all took a lunch break at the same time they wouldn't make it to the deli before you ran out of bullets protecting your canned goods from roving bands of mutants.
This article reminds of Stack Overflow...and the current state of programming and why its really is horrible.
I posted a question looking for a simple solution to some coding problem --and instead of solutions, all I got were a bunch of pretentious pseudo-script-kiddies asking me, "Why are you doing it that way? Yea, you can do that in 4 lines of code the way you want, but here's a better way that involves 3 separate functions and 1100 lines and it'll work better.." WTF?
I ended up in a chat room with this guy who tried to convince me to change the way I was going to code the routine. I eventually found out he wasn't even a programmer, just a sysadmin. /facepalm
I could not stand working with real-world code. It sucks. It sucks to the point I spent most of my work day dreaming about a day when I would not have to use Google to know which one of the 10,000 similarly-named functions, spread over 100,000 files, I should touch.
Only skimmed the article but I'll add my two cents...
My big problem with the way sw devel appears to work is that people invest too much energy in the wrong part of the work schedule.
For me I'd rather spend more time laying out directories and setting up makefiles, and templating header files (to build an API from) than simply hitting the ground writing compiliable code. Even then I'd rather get to testing/documentation long before a complete project is ready to ship.
It seems to me though most would rather hit the ground running and deal with those pesky issues like documentation or QA when it suits them. The end result are projects that are a problem to test and hard to scale [with new developers].
Ya seriously. It bothers me though that the idea of automated testing is seen as a "luxury" to many testers... they work with computers for fucks sake.
The only thing worse though then trying to convince management about spending time on QA is dealing with co-workers who lie about the need to do it in the first place.
Templates are great, when you first learn about them. The basic principles are simple, and they are easy enough to use, especially with the new standards. At least, if what you want to do is simple and reasonable, and stays in your own code.
The trouble is, it turns out templates are a Turing-complete language in and of themselves. And if you use them as such, you can do, well, anything at all, and do it at compile time. Which sounds alluring, the way getting a million bucks for your soul sounds alluring.
The abyss you soon find yourself falling down is that while templates are a powerful extension to a language, they are a terrible language in and of themselves. If you manage to get your template code written, it winds up looking like /dev/rand vomited up a pile of text into your code, then it began shooting at other bits of text with < and > arrows. And then when you try to compile it, the compiler starts spitting out errors, and may never stop (certainly no less than a mile of text though) - and these errors are even less readable than the code. And template test code? Fuggetaboutit. And to try to make this manageable and readable, you start hacking in macros to hide the worst of it - and macros are yet a third language, and often (because you're writing it yourself) totally undocumented, and running without even the rudimentary safety and sanity checks the C++ compiler manages to give you.
Now, every once in a while, a powerful c++ wizard falls into the depths of template netherworlds, and returns from hell with an arcane weapon of great power, and the community gets a boost or an eigen But most lesser coders wind up going slowly mad.
(Note: this is as hyperbolic as the blog post linked, and the new standards have cleaned it up some - but that mostly just means that the black speech of templates can now be used with better grammar.)
I literally learned about them yesterday. I'm pretty new to C++ and as I'm sure all newbs do, I was looking for a better way to handle passing arrays around. I did my requisite Googling, scrolled through a couple of tutorials, and thought, "I'll just stick with pointers."
Yeah, but in all seriousness they introduce a safer typesystem and allow for very generic and optimal code, so it's not all bad. They tend to get very ugly though if overused, as seen in some of the libraries in the boost project. And the template metaprogramming is something that takes the whole template concept to the next level.
685
u/honestbleeps Apr 29 '14
A lot of ridiculous hyperbole? Yes.
Entertaining down to the last paragraph? Most definitely.
A lot more in there rings true (even if in a hyperbolic manner) than I care to admit. Granted, we're not alone in having complex jobs, but still...
I think the most unnerving part (because it's so true) is the bit about that piece of good code you write... good code that ultimately becomes overshadowed by hack upon hack upon duct tape fix in the code that surrounds it... you ultimately end up hating nearly everything you write...
304
u/chalks777 Apr 29 '14
For the past two years I've been working on one project building software that my boss describes as "enterprise level." We started with a drawing on a whiteboard. Now we have over 100,000 lines of code. If any of it was ever good, it was murdered a loooong time ago. The sheer number of blatant hacks that are used to get around stupid nonsense is staggering. I've written things I'm not proud of. College me would be disgusted by current me.
Clients sure love it though.
:|
1.1k
u/w4ffl35 Apr 29 '14
"The only reason coders' computers work better than non-coders' computers is coders know computers are schizophrenic little children with auto-immune diseases and we don't beat them when they're bad." - Probably my favorite line.
299
u/popquiznos Apr 29 '14
The beginning of the page source is great
270
u/[deleted] Apr 29 '14
After reading articles like these I sometimes wonder whether I'm the only programmer in the world who has competent co-workers and sane bosses.
118
u/PasswordIsntHAMSTER Apr 29 '14
When I'm coding as a hobby, I pretty much only write programs of 50-100 lines of code. Anything more than that, and bad shit starts creeping in.
97
u/irotsoma Apr 29 '14
He forgot the "<rant>", so I couldn't read anything before the "</rant>".
353
u/DeadFinks Apr 29 '14
Actually, I think everything in the world works this way. Not just programming. The situation is just starker in the programming world due to how closely the pristine realm of mathematical purity is juxtaposed to the profane circumstances of lived reality.
67
u/quangdog Apr 29 '14
"So no, I'm not required to be able to lift objects weighing up to fifty pounds. I traded that for the opportunity to trim Satan's pubic hair while he dines out of my open skull so a few bits of the internet will continue to work for a few more days." - nearly spit out my drink with this one.
Everything about this post is entirely too accurate.
85
u/Crazy__Eddie Apr 29 '14
It comes off as all sarcastic and entertaining but now I just want to kill myself.
This is my life. It's slipping by one horrendous program after another.
57
u/Jutboy Apr 29 '14
Can someone explain :
"Is that called arrayReverse?"
"s/camel/_/"
"Cool thanks."
144
u/fubes2000 Apr 29 '14
Oh my god yes.
97
u/HighRelevancy Apr 29 '14
omfg
107
u/faustoc4 Apr 29 '14
23
u/[deleted] Apr 29 '14
"hemorrhaging-edge" - I'll be using that! Great read!
23
u/[deleted] Apr 29 '14
That's one fucked up dropcap.
110
u/badjuice Apr 29 '14
Ahhh, the monthly "Why did I become a programmer?" rant of despair.
17
u/jdepps113 Apr 29 '14
Not a programmer. But this is scaring me, as are all the comments seeming to agree with these sentiments.
Thing is, I've started studying programming a little, and hoped to learn more. Now I'm wondering if doing so with any eye toward one day doing something programming-related as a job is just going to make me miserable and shorten my life expectancy.
Should I turn back now, or forge ahead?
14
u/Nyxtia Apr 29 '14
So should I drop my comp sci major lol.
11
u/baudday Apr 29 '14
Haha if the business people knew this...
11
u/shadymilkman_ Apr 29 '14
Not sure if written by CS major or English major. Pretty good.
11
u/[deleted] Apr 30 '14
"Oh, you don't like your job? You know, there's a support group for that. It's called everybody. They meet at the bar."
Drew Carey
10
u/N4pkins Apr 29 '14
WTF am I doing with my life?
9
u/[deleted] Apr 29 '14
The introduction sounds like the project I'm working on now.
8
u/24monkeys Apr 29 '14
This is the greatest piece of text I've ever read about the world of programming. Someone should really give this guy a cookie.
Best bit:
7
u/[deleted] Apr 29 '14
This made me really, really sad. I've been wanting to be a programmer since I was 13 and now I feel conflicted and it's terrible.
7
u/cb8100 Apr 29 '14
"You are an expert in all these technologies, and that's a good thing, because that expertise let you spend only six hours figuring out what went wrong, as opposed to losing your job. You now have one extra little fact to tuck away in the millions of little facts you have to memorize because so many of the programs you depend on are written by dicks and idiots."
I'm laughing and crying because it's true.
7
u/jasariCSR Apr 30 '14
"This is what it is to learn programming. You get to know your useful tools, then you look around, and there are some handy new tools nearby and those tools show you the bottomless horror that was always right next to your bed."
as a student this is how I feel every day.
12
u/jack104 Apr 29 '14 edited Apr 29 '14
God damn I quit my programming job of two years just a few days ago and this article touched on nearly every point that drove me to madness in my job. Fuck I need a drink......
5
u/niugnep24 Apr 30 '14
Did it take anyone else a few seconds to figure out what the first letter of the article was supposed to be? It looks backwards in my font...
106
u/hatts Apr 29 '14
I like this post, but there's one thing that always makes me cringe a little: the classic statement of "Well sure, manual labor is PHYSICALLY taxing, but MY job is MENTALLY taxing."
This sentiment presupposes that physically demanding jobs aren't also mentally draining. It's narrow-minded and sometimes extremely inaccurate.
As another commenter pointed out, sometimes programmers need to be reminded that they aren't exceptional special flowers who are the only ones dealing with a never-ending, intertwined mountain of bullshit.
4
u/ISNT_A_NOVELTY Apr 29 '14
Seems that the site got hugged to death. Anyone have a text mirror?
4
u/[deleted] Apr 29 '14
I laughed, then I wept.
4
u/guardgirl287 Apr 30 '14
I'm not sure if I'm supposed to feel worse about programming because nothing is ever fully functional and doesn't last very long and doesn't make sense, or feel better about programming because nothing is ever fully functional and doesn't last very long and doesn't make sense.
4
u/sublimnl Apr 30 '14
While I know the author in person, I'm not just saying this for the hell of it - he is an excellent writer and has a book out as well, And Then I Thought I Was a Fish - check it out.
4
u/mbrodersen Apr 30 '14 edited Apr 30 '14
I have been programming for 34 years now and yes there is some truth to this :-) Having said that, it isn't just programming that "works" this way. Most of what groups of humans do is messy and crazy. Look at how governments, companies, religions, military organizations etc. "work" and you will see the same stuff going on. I think it is human nature. What is truly astonishing is that despite all of this things still somehow gets done and move forward :-)
4
u/swrehc Apr 30 '14
"Doing this all day leaves you in a state of mild aphasia as you look at people's faces while they're speaking and you don't know they've finished because there's no semicolon. "
4
u/[deleted] Apr 30 '14
So very true ... Once, when I was a sysadmin, my whole team went to lunch, and one of our secondary UPS units, which was the size of a small car, was having maintenance. A packing washer that was not removed during installation (years before - got stuck to the side by something), fell and landed perfectly on the 3 phase power line, vaporized, and shut down an entire data center ... of an operation that was responsible for hundreds of thousands of dollars of revenue an hour. The fallout from the event also prevented us from switching over to the generator.
Yea, we never got to take lunch together again.
9
u/efxhoy Apr 29 '14
13
u/zzzzzzzzzzzzzzdz Apr 29 '14
Most traditional engineers get exposed to this first year in engineering. From the pure and beautiful physics theories we transition to a-bunch-of-guys-did-a-few-experiments-and-published-them-so-lets-draw-a-line-through-the-points-and-call-it-a-day. Computer engineers who get shocked by real world code probably took CompSci, which is analogous to physics here. Less theoretically trained engineers would probably be used to it.
10
u/wordsnerd Apr 29 '14
Is it considered copyright infringement if the entire article is duplicated piecemeal in the comments?
3
u/MpVpRb Apr 29 '14
Clever and entertaining..and mostly true
3
u/Seus2k11 Apr 29 '14
All I could think of while reading it, was it being read in this voice: https://www.youtube.com/watch?v=-9huWlXFA1s
3
u/[deleted] Apr 29 '14
You know what I hate more than all of the things wrong with programming described in this article?
That less-than-hypothetical blue collar asshole at the beginning.
3
u/beeceezee Apr 29 '14
Apparently so does scalablity.
3
u/jimethn Apr 30 '14
Php is the purest programming language because hacks are impossible to avoid.
3
u/feigndeaf Apr 30 '14
Yep...that's me: "Somewhere there's a database programmer surrounded by empty Mountain Dew bottles whose husband thinks she's dead"
3
u/bbbbbbbbMMbbbbbbbb Apr 30 '14
Like a house built on a crappy foundation.
3
u/joequin Apr 30 '14
As someone who's currently working with a 5 year old, frequently modified, 50k line monstrosity of a powershell script that interfaces with java, jenkins, and bat (and a lot more), this article really hit home for me.
3
u/i_got_the_blues Apr 30 '14
The problem here might not be programming, but that the majority of professionals work for other people and in turn make those people rich off their own work. It seems that the programmers who make their own apps and/or businesses are the most satisfied. Work on your own stuff. Be a creator.
3
u/gargaran Apr 30 '14
I spent the last "who knows how long" trying to find the opening tag to the </rant>
I should probably sleep more.
3
u/mdwvt Apr 30 '14
Holy hell, was that ever hilarious. And now I'll go cry because of the hundreds of technologies the software I've created relies on.
3
u/[deleted] Apr 30 '14
This actually cracked me up so much, its so true.. because Facebook is written on PHP and unless you've got an incredible try/catch setup (and unit tests, for every single little thing)... it will make it that much harder to find problems lol
3
u/[deleted] Apr 30 '14
This.
3
u/5outh Apr 30 '14
Apparently this guy wrote a book about being crazy:
http://www.amazon.com/dp/B008DZEWF8
It's $3 for the ebook version and apparently people really like it, so check it out if you enjoyed this!
3
u/robpegoraro Apr 30 '14
That is a fantastically-crafted essay. I write for a living, and this guy kind of kicks my ass.
3
u/BmanFx Apr 30 '14
Beautifully written.
3
u/[deleted] Apr 30 '14
This.... is glorious.
4
u/Destects Apr 29 '14
That was beautiful.
"You discover that one day, some idiot decided that since another idiot decided that 1/0 should equal infinity, they could just use that as a shorthand for "Infinity" when simplifying their code. Then a non-idiot rightly decided that this was idiotic, which is what the original idiot should have decided, but since he didn't, the non-idiot decided to be a dick and make this a failing error in his new compiler. Then he decided he wasn't going to tell anyone that this was an error, because he's a dick, and now all your snowflakes are urine and you can't even find the cat."
4
u/jokoon Apr 29 '14
I want to be a sheperd
5
u/[deleted] Apr 29 '14
Is it just me, or are the only articles I ever see on my front page from /r/programming the ones with provocative titles, or at least titles that make blatant stabs at conventional wisdom in order to drive site traffic?
"Programming sucks?" You're not even trying anymore. What's next, "Flatfiles are better than Databases?" "VB6 Got It Right?" "Encryption Is Worthless?" "Why ActiveX Controls Are All You Need?"
2
u/fyrilin Apr 29 '14
so we're doing bridges instead of houses now?
2
u/[deleted] Apr 29 '14
I really enjoyed this, while at the same time wondering how the fuck i can survive being a programmer. What to do to avoid all those pitfalls described in the article..
2
u/Igglyboo Apr 29 '14
Holy shit I couldn't keep going after i read the part about the Mayan calendar and the pack of smokes, I just about fell off my chair.
2
u/dotpe Apr 29 '14
Holy shit this thread is insanely depressing. I thought I'd be set majoring in computer science. Fucking great, I'm heading to my first year at college, should I change my major now??
2
u/scrdmnttr Apr 29 '14
So... don't pursue a computer science degree?
2
u/[deleted] Apr 29 '14
In the real world, programming is tits. You get to solve puzzles for a living.
2
u/williamtbash Apr 30 '14
I'm sure this post exaggerates a ton, but as someone who is still only a few months into teaching himself to program and wants to eventually switch to programming as a career, I hope it is not as bad as some people say all the time. Certainly people enjoy programming...right? I hope!
2
u/[deleted] Apr 30 '14
To be fair this is somewhat applicable to any job.
2
u/Noncomment Apr 30 '14
Silly question, but how can we improve this? I've long thought about using AI to automate the boring or difficult parts of coding. Assuming we even had that level of AI, would it solve the problem? You'd still have to specify to the computer what you want it to do somehow.
2
u/ridgerat Apr 30 '14
I worked with a lady that had her computer within a (crufty-looking) pyramid made of drinking straws with two chicken bones suspended by a piece of dental floss hanging from the apex. Yes, it worked very well.
2
u/[deleted] Apr 30 '14
I've programmed every day of my life for the last 10 years now it seems and honestly you just become numb to this shit after a while.
2
u/brittainhard Apr 30 '14
...and yet it works, like most everything else humans do.
2
u/abram730 Apr 30 '14
2
u/hvidgaard Apr 30 '14
Lots of hyperbole, but it's true, and we know it!
2
u/Josh6889 Apr 30 '14
I want to find this writer and read everything he's ever written.
2
u/[deleted] Apr 30 '14
"The only reason coders' computers work better than non-coders' computers is coders know computers are schizophrenic little children with auto-immune diseases and we don't beat them when they're bad."
Made my day... =D
2
u/hex_m_hell Apr 30 '14
Yeah, and in security we read that shitty code and say to ourselves "HOLY GOD, WHAT THE FUCK??" Then we have to explain why that code is bad. Then we drink. A lot.
2
u/chasesan Apr 30 '14
I know this pain in my soul. Thank you so much.
2
u/euxneks Apr 30 '14
Honestly I got a bit excited reading this.
2
u/[deleted] Apr 30 '14
view source.
2
u/kelroy Apr 30 '14
https://www.youtube.com/watch?v=BKorP55Aqvg
2
u/Pilebsa Apr 30 '14
This article reminds of Stack Overflow...and the current state of programming and why its really is horrible.
I posted a question looking for a simple solution to some coding problem --and instead of solutions, all I got were a bunch of pretentious pseudo-script-kiddies asking me, "Why are you doing it that way? Yea, you can do that in 4 lines of code the way you want, but here's a better way that involves 3 separate functions and 1100 lines and it'll work better.." WTF?
I ended up in a chat room with this guy who tried to convince me to change the way I was going to code the routine. I eventually found out he wasn't even a programmer, just a sysadmin. /facepalm
2
u/AhSaElDin Apr 30 '14
It reminds me of this video https://www.youtube.com/watch?v=L2zqTYgcpfg
2
u/pilas2000 Apr 30 '14
Your hosting sucks.
2
u/[deleted] Apr 30 '14
Relevant domain name.
2
u/Klekticist Apr 30 '14
This blog is awesome.
2
u/dennyzhang May 01 '14
Is this thread the most hottest one in reddit?
4
u/karma-is-meaningless Apr 29 '14
This is why I came back to the Academia.
I could not stand working with real-world code. It sucks. It sucks to the point I spent most of my work day dreaming about a day when I would not have to use Google to know which one of the 10,000 similarly-named functions, spread over 100,000 files, I should touch.
3
u/civildisobedient Apr 29 '14
This is fucking beautiful. I'm actually going to forward it to the rest of my team so we can cry together.
2
u/[deleted] Apr 29 '14
Only skimmed the article but I'll add my two cents...
My big problem with the way sw devel appears to work is that people invest too much energy in the wrong part of the work schedule.
For me I'd rather spend more time laying out directories and setting up makefiles, and templating header files (to build an API from) than simply hitting the ground writing compiliable code. Even then I'd rather get to testing/documentation long before a complete project is ready to ship.
It seems to me though most would rather hit the ground running and deal with those pesky issues like documentation or QA when it suits them. The end result are projects that are a problem to test and hard to scale [with new developers].
0
u/[deleted] Apr 29 '14
[deleted] — view deleted comment
0
u/[deleted] Apr 29 '14
[deleted] — view deleted comment
0
u/[deleted] Apr 29 '14
[deleted] — view deleted comment
0
u/[deleted] Apr 29 '14
[deleted] — view deleted comment