r/learnprogramming • • May 30 '20

The misconceptions of a programmer's life

I see frequent posts from beginning programmers wondering what programming is like, and I think it's useful to address those issues.

You program 8 hours a day at work

This is probably the least true of all the things. Most programming jobs are maintenance jobs. The programs have all mostly been written years ago, and you are doing support, minor enhancements, bug fixes. Even if you get to do more than that, you are still not likely coding a large part of your day. It's about meetings to decide what to do.

Also, from my experience, unless you have some reason to dig deep into code (esp. if the code base is large), most people don't bother. Our codebase is old and rickety. There aren't comments. The business process isn't exactly documented. I don't want to wade through 2000 lines of Java code (per Java file) and try to understand the business behind it.

Unless you're working in a brand new project that needs a lot of code written (which I've been in), you are probably not doing a lot of programming.

A program is about programming

I work at a university. Students, esp. computer science students, complain about our old system that runs a "batch style" programming system. That is, the system shuts down overnight, does a bunch of data processing, and opens again in the morning. They wonder why the system can't be Facebook or Google or YouTube, and be up 24 hours a day.

First, I think many such people would be surprised how many people (or really, how few people) are supporting these systems. You'd think there's a team of 20 developers doing the best they can to keep this stuff running, and it's like a well-oiled machine, but sometimes it's less than half a dozen people, and we barely know the software's purpose, but can do minor fixes and keep stuff running.

Most software out there isn't, as they say, rocket science. Sure, a few exceptions (say, SpaceX software). Most of the software encodes business practices, and most business practices are a weird arcane set of rules that have no basis in math or science, but is just how some company works. You write that in code, no matter how illogical it is. And often, the code, and a few old timers' memories are what holds the project together.

Comments? Hah! A written business process? Hah! Programmers had one purpose: get the program to work. They didn't think about who would maintain the code after they retired. The only saving grace was their background wasn't so sophisticated as to create true spaghetti code (let's use regular expressions and finite state machines and design patterns up the wazoo!).

It's often not the coding language (like Cobol) that prevents modernization (although it's partly that), it's that the business process was never formalized, and there are 100,000 lines of code no one wants to read (and only represents an approximation of what the people who wanted the code wanted---and they're retired too!).

I often point out the scene in the third Matrix movie where the councilman is talking to Neo about how these machines support their underground city, yet no one quite knows who built it or how it works. That's a lot of software out there.

Writing from scratch is not such a common experience (at least, from my perspective), and even when you do, it's not always as organized as it could be. We may call it software engineering, but most engineering involves others looking at your work, and having input into fix it. Code reviews aren't the same thing as people inspecting a building and seeing it every day.

We often don't rewrite things because the rewrite would be huge, would require a bunch of new developers, and doesn't even have the support of the people we're writing it for.

As a programmer, since I wrote the code, my opinion is the most important

OK, so you may know programming, but do you know the business you're working in? Many a programmer or startup guy thinks "You guys do something dumb, and I'm smart, so I can easily create a system that's 10 times better than the crap you use. And you know what? I'm not even going to consult you about how the system should work. I'll make up my own. You are such idiots!".

Well, that may be, but they're used to the system they are used to, and they've thought about their own (arcane) business process for a long time, and if you build something that is completely different from what they are used to, they won't say "oh, we lack the intellect to understand your truly great software", they'll just not use your software.

If your user base is a bit older, and possibly, even if they aren't, they will be used to doing things in a certain way. Maybe you can convince them that way isn't smart, but if they questioned your lack of comments, your lack of coding structure, how what you wrote seems like gibberish, you might get defensive as well.

The point is that you're often writing software or maintaining software by those who use the software every day. As a programmer, you might even have the luxury to walk away after you write a code, never having used the code as your users use them, and they may ultimately hire someone new who maybe pays attention to what they actually want, even if you think it makes no sense.

The program matters

Many of you are learning to program. You think companies are willing to throw out a million line codebase because it's written in an obsolete language. Who's going to write it? You? (You, Mr. Wineburg?)

A million lines of code is something that could take a lifetime to rewrite. Do you plan to read the code to understand what it does? Could you even do that?

In any case, sometimes people think the program is king (or queen, or some elected position). It's not.

It's the data.

Say you've run this legacy program for more than a decade. It fills up tables and table of data. You, being a person who hates legacy code, wants new DB tables, and new ways of storing information.

Here's the problem. What do you do with all that old data? Oh, you want to throw it out? Start new? Brilliant!

Every software shop is the same

If you look at the world of practicing doctors, they seem to fall (roughly) into two categories: those working in hospitals on patients that need somewhat urgent care (or are doing elective surgery), and doctors with private practices.

Both seem to follow a similar structure, so that if you went from one personal care doctor to another, their structure would be about the same (waiting room, receptionist, files, someone to check your insurance, collect your copay). If you go get your car repaired at a mechanic, you expect a similar experience. If you go to a grocery store, you expect a similar experience.

People in the software industry have nothing close to this. Each company may have widely varying setups. There are companies with just one programmer that does everything. Could you run a grocery store with just one person? (Well, maybe if it's a tiny one person operation selling very few items). Or a doctor's office (probably not because of insurances, unless you're some kind of boutique doctor that makes home visits, and even then, I suspect you're hire someone to do the billing, etc).

The big companies can afford to have their own internal support structure that makes it easier for their average developer to deploy code. That support structure is often an internal thing, not an off-the-shelf, any small company can do it. If you were a car mechanic and wanted to open your own small shop, you'd probably know exactly what you need (at least, the very basics). These things probably have been (roughly) the same for decades, and even the new things, people probably generally agree on what is needed.

But if you're a small software shop...there's no such standards. Do you want to use Atlassian tools? Or do you use a spreadsheet, or emails? Do you use some kind of company email? Or do you use personal email? There are lots of decisions, and it's hardly standardized in the industry.

You may think, say, version control is important. I guarantee there's some software out there (maybe rare), that doesn't use standard version control, and it probably does something important. And the people maintaining it may not even understand what version control is and why you need it. I'm serious.

It's like going to a surgeon with a bottle of whiskey and a bowl of leeches and they say "What's anaesthetic?"

We'll rewrite everything!

"I know engineers, they love to change things--Dr. McCoy, Star Trek: The Motion Picture"

Back in the 1990s, the skill most programmers needed? The ability to read other people's programs. Most early programmers could write code, but they really had a hard time reading code, so they were almost always complaining that you needed a complete code rewrite to write that code in a way they could understand, without realizing the irony that the next programmer would want to throw away their code, and write it from scratch.

Joel Spolsky, who used to blog many years ago (Joel on Software), used to say rewrites were basically evil. A functioning codebase should have been tested many times and many bugs have been removed. A new codebase will introduce new bugs and will be buggy. Software engineers aren't that good about creating bug-free code (after all, what is a bug? are there specs?). He said it's better to refactor to improve the code than to rewrite, but most developers like the feeling of an albatross of code off their neck that they don't care about bugs they introducing.

New code is wonderful!

But realistically, you need to know what you're building, and knowledge of the ins and outs of a programming language doesn't help you figure out what it is you're building. And sometimes your experts also want to control the kind of software you're writing (mostly from a usability standpoint).

I only have to understand a programming language

Many self-taught programmers think "it's all about learning a programming language".

Some complain: why do I need to know HTML? Why do I need to know CSS? Why do I need to know SQL? Why do I need to know version control? Why do I need to know Github? Why do I need to know math? Why do I need to know business? Why do I need a deploy system? Why can't someone else test my code? Why do I need a bug tracking/task tracking software? Why do I need to read my emails? Why do I need to update my tickets?

It's hard enough for most of you to learn a programming language. But it's often the tip of the iceberg. To support web programming, many programming languages have a web framework, and sometimes those web frameworks do a lot of magic, to "help you out", and now, you thought you understood how a programming language works, but you don't. (We used annotations, you'll love how it's not crufty like the rest of Java!)

Conclusions

  • You don't program hours a day unless it's brand new software, and even then.

  • You'll probably spend as much time in meetings (if you get to be important enough) than programming.

  • There are generally two kinds of developers that survive in a company/organization that's been around a while: those with strong technical skills, and those that have been around long enough to understand how things work (business-wise) even if they lack the technical chops. Sometimes (rarely), they are the same person.

  • You don't need to know computer science that well to write software that basically works, esp. if you know the business well. A lot of software may require only basic math skills and some understanding of how the web works. It's sort of the equivalent of a doctor that learned how to doctor online, and only learned 10% of what they should. They may still be able to heal most basic things, but not be able to do some other basic stuff. We don't trust that in doctors, but in software, it might be OK.

  • Knowing the business is often at least as knowing the software, possibly more important.

  • Your customers likely don't want you to make "improvements" to their software, esp. those that you didn't bother to consult them with.

  • Most people tend to do maintenance programming, not green field (brand new) coding.

  • You often have to teach yourself newer technologies. Your senior developers aren't usually willing to be teachers and teach you from scratch.

  • Communication skills are useful, but most developers became developers because they prefer to work alone. This doesn't always lead to good software, no matter how skilled the person is.

  • You shouldn't think you're writing code for yourself, but for the next person that has to maintain it. Don't be too clever. Someone else will have to deal with your code (and it could be you, two years later). Maybe write some comments or something.

  • Software can be developed in all sorts of ways, many not approaching "best practices" (which seems to change all the time). Not everyone is on the cutting edge (see New Jersey Cobol programs for filing unemployment). Being on that edge requires chasing a moving target that most companies think is a waste of time (why does Spring keep coming out with new versions--haven't they figured it out by now?). This means that there is no typical way software is developed. Yes, many companies share similarities (they have a Wiki, they use Jira, they use Bitbucket, they have a deploy system, they do code reviews), but it's not universal.

  • Your code is often not reviewed as much as it should, and you might get defensive about the comments you get.

  • Code consistency helps (if you can tell who wrote the code based on stylistic choices, that may not always be the best thing).

2.8k Upvotes

223 comments sorted by

View all comments

5

u/poisonousvixen May 30 '20

Wow this post is super eye opening. I must say I'm a little discouraged after reading the comments. I'm a senior computer science student at a smaller university but I also work full time. Getting to even this point in school has been a struggle and then after Covid-19 hit this semester I have been seriously considering dropping out. Reading the comments makes me wonder if I really needed to go to school. I've learned a lot but it seems like I could have learned more on my own (and be in a lot less debt).

Any tips or motivatation would be greatly appreciated. Be well.

9

u/JSArrakis May 30 '20

I really hate to be the one to be an example. But I'm a senior level developer in a fortune 500. I make 6 figures.

I have zero college.

I'm not saying it's the norm though, or that every company will accept people without a bachelor's. But if you can showcase you know what you're doing, either by passing their entrance tests or by having a portfolio of projects for your interview, the degree means less.

I've worked with so many people that had full degrees that could not understand a lot of the non technical or non syntax related issues they were running into and it made me extremely frustrated. Especially because I wasnt formally trained so I thought they should know it better than me.

However, programming is what you make of it. Join a contracting firm first so you can not be stuck st one job for forever. You can get a lot of exposure going from job to job.

Make an app or two to automate something at home. I made a personal ugly phone app that I will never release (because I'm horrible at UX) that allows me to set alarms based on weather patterns or difference in the time of sunrise. Might already exist, but I didnt bother looking, I made it because I wanted to make it and it gave me a lot of experience on different APIs and technology stacks that I wouldnt have been exposed to otherwise.

Dont get discouraged with programming, but just remember even imagineers for Disney hate their jobs sometimes. Even carpenters that can make amazing scroll work for banisters on grand staircases have to sometimes just grit their teeth and do the monotonous work of putting the siding on a house.

The monotonous work will only last as long as you allow yourself to be stuck in it. Keep improving yourself and you'll be able to do the things that are exciting.

2

u/stefanbolcs9111 May 30 '20

FreeCodeCamp

where do you live?

→ More replies (3)

1

u/electrogeek8086 May 30 '20

I'm 28. Do I have the time to become a developer without going to college? what kimd of projefts should I make for my portfolio?

2

u/JSArrakis May 30 '20

I'm 36. Before 2014 I knew a little HTML and the basics of how to host a website. I knew nothing about programming before 2014.

The reason I got into it was because I was in a video game community and on reddit and wanted to make a new site for us that wasn't on wordpress.

Started learning HTML, CSS and Javascript from Codecademy and the rest is history. I'm now senior level and full stack (but specialize in console apps in .Net, plus I have a good grasp on AWS).

It all depends on your drive and understanding how you learn best. Once you figure out how you learn, you can teach yourself anything at high speed.

A lot of my career has also been advocating for myself and proving myself. Dont be passive, because no one is going to give you anything willingly for free or without effort.

Edit: I will also say that growing up I wanted to be some kind of artist or engineer.

I liked video games but I loathed the idea of being a programmer. I thought developing a game or app would take away the magic of the game or app.

1

u/electrogeek8086 May 30 '20

oh ok. thanks for the uplifting comment :). that's my major problem I have very low drive so I know I have to work on that. I have to find a way that's efficient for me to learn because I find most online help to suck.

Programming little game apps seems like a fun thing!

1

u/JSArrakis May 30 '20

Honestly, do a curated project first. Theres lots of free ones online that will help you get in the groove of starting your own projects.

Honestly it works for most people to tell yourself you're only going to do 10 minutes of a personal project when you have time to. Sometimes it's only 10 minutes, sometimes you'll have created the entire DAL.

Pluralsight is amazing for me because I like that it gives you little projects to follow along. Same with Codecademy in the higher learning areas.

What I'd recommend too is find some different projects on Git and look up what libraries they used. And then start thinking of what you could do with the same libraries

1

u/electrogeek8086 May 30 '20

curated projects? i'll check it out! DAL? lol I have a lot of termimology to learn! I'll check some online courses I don't even mind pauing for them! Thanks for taking the time to write that comment! :) can i message you if I have questions?

1

u/JSArrakis May 30 '20

Sure message away. If I dont know it I'll try to point you in the right direction

1

u/electrogeek8086 May 30 '20

I just thought about a question I've had for a long time. Is it possible to "crack open" libraries and see how functions are implemented? Like I'm a physicist and I would like to program stuff in that field. I know there are a lot of technicalities when implementing and knowing the concepts/methods isn't enough I find.

Like you can work out algprothms for fumctions you know the form of but if you have to work on actual data that was acquired I don't know how you're supposed to do.

1

u/JSArrakis May 30 '20

Most libraries have an associated git repo. Any one of them worth their salt anyways. And you can clone the repo and poke around inside of it using your favorite IDE.

APIs though generally dont expose more than what's in their documentation, if they have any.

Generally you dont want to use anything that's a black box because it could be doing anything.

1

u/geordilaforge May 30 '20

What language(s) do you code in? Did you learn on the job or youtube or online classes or a boot camp?

Edit, saw your answer below:

Started learning HTML, CSS and Javascript from Codecademy and the rest is history. I'm now senior level and full stack (but specialize in console apps in .Net, plus I have a good grasp on AWS).

Did you make a lot of projects to show to break into the industry?

1

u/JSArrakis May 30 '20

I actually fo a few more languages than what I listed including Python, Haskell, PHP, a very small amount of Java (had to learn it for Android) and various DB languages like SQL and R.

My break into the industry was more organic than what I stated. I got a job in tech support for a start up around the same time I was interested in learning programming (mid 2014). Before that I jobs in tech support for an engineering company which mostly included doing data back ups and transfers and getting all their systems off of XP because Microsoff was ending support.

Before that I was Geeksquad.. which generally has very little to do with fixing computers and more to do with selling computers.

Anyways the tech support job at the start up, in my entrance interview I let them know that I had a big interest in eventually moving to development with no real idea how long something like that would take.

I'll be honest, I thought I was hot shit because I knew rudimentary Javascript and could create multidimensional arrays programmatically. I didnt think there was much more the syntax and I was good to go. I had some real face palm cringey attitude about it all.

For about half a year at that job I just did mainly tech support but kept pushing to see if I could take on a small project. In the mean time I was mainly just fucking around with that website trying to do cool things and getting help from the start up's developers to answer questions where I could (It was a red letter day when Recursion finally clicked). When I showed my understanding was more than rudimentary they threw me a small commit to work on. From there it snow balled.

The history of the start up however was kind of cursed, and as they shed developers over the next two years I was able to take up more and more projects and became more of just primarily a developer instead of support, to the point where they hired a other support person to take my place so I could focus only on development.

And then the company had a hostile take over and I jumped ship to a bigger company.

But the primary thing that in my experience got me a programming job was my ability to show people that I knew what I was doing. I was in a lucky position because I was no where near ready to show people at the start up I was a good programmer at the time of my interview, but gradually over time I was able to. Which is why I tell people going into an interview to atleast have 3 solid apps that can showcase your abilities. Best to make do wildly different things. One should probably do something with a database (RDS or flat, doesnt matter) One should use an API or multiple APIs. And one should be written to utilize some other platform than just windows (AWS is the easiest and cheapest to use).

These three things using different technology stacks SHOULD show people how well rounded you are and at least your ability to read and understand documentation.

Be prepared to defend your reasoning to other developers on why you chose what you did and how you utilize it.

Now something like this wont work for getting a job at a place like Google or Amazon. They generally dont give a shit about your portfolio and if you dont have a bachelor's you better ace their interview tests with flying colors.

1

u/geordilaforge May 31 '20

Gotcha, interesting story and thanks for the insight.

Yeah I'm trying to make something when I have time. I've taken classes on and off but I feel like what I get from classes isn't as beneficial as getting projects in like you're saying.

What's your take on documentation btw? I feel like I end up having to dig into multiple sources (go down a rabbit hole) with some documentation and I usually learn more when there are actual code samples.