Slashdot Mirror


Ask Slashdot: What Do You Wish You'd Known Starting Out As a Programmer?

snydeq writes: Most of us gave little thought to the "career" aspect of programming when starting out, but here we are, battle-hardened by hard-learned lessons, slouching our way through decades at the console, wishing perhaps that we had recognized the long road ahead when we started. What advice might we give to our younger self, or to younger selves coming to programming just now? Andrew C. Oliver offers several insights he gave little thought to when first coding: "Back then, I simply loved to code and could have cared less about my 'career' or about playing well with others. I could have saved myself a ton of trouble if I'd just followed a few simple practices." What are yours?

44 of 548 comments (clear)

  1. What to know by amicusNYCL · · Score: 5, Funny

    What Do You Wish You'd Known Starting Out As a Programmer?

    How to program, I guess.

    --
    "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    1. Re:What to know by ObsessiveMathsFreak · · Score: 4, Insightful

      Your outdated "value-adding" "service provding" skills are so 20th century. 21st century careerism is about networking. Networking. Networking. Netowrking.

      Look at item number one on TFAs list.

      1. Take names. ...

      In five to 10 years, that will all be different and the person who you ignored because they were boring and couldn't help you will be the person who could have won you an important opportunity.

      Network! Impress people! Dress right! Booze people up! This is how successful companies are made. You will not attract the rright venture capital with your simple abilities. Most companies won't even use those anyway.

      2. Problem solving. .....

      Problem solving is essentially the same thing you learned in abstract in seventh or eighth grade or whenever you learned simple algebra.

      See! Look at this! The people this guy is writing for don't even know how to solve problems. They just code stuff nobody really needs -- and they're still successful! You think your ability to analyse and abstract is something all the cool kids will pay for? Think again. Your geek/nerd/hipster/bro-grammer cred wil matter far more.

      6. Work more than 40 hours per week.

      Profession? You think programming is a profession. Get back on that hamster wheel and like it code monkey. And get some hair dye. First sign of a grey hair or stress line from yellow packs like you and we sack you and hire a fresh young grad to suck into a husk.

      5. Think in terms of a career, not a series of jobs.

      Translation: "You can either join the fed-money, app-cloud bullshit wagon, or you can learn to love foodstamp lines. Either way, it'll still be a superior outcome to any science-fiction fantasy you imagined programmers were capable of making in a rational universe. The Market wants fart-buttons, not robots, so drink the kool-aid or join the lowest caste of contract workers you, you, you..... Loser."

      No wonder so many programmers go into management.

      --
      May the Maths Be with you!
  2. get more involved in open source contributing by jjn1056 · · Score: 4, Insightful

    I think the main thing I'd change is I wish I had started becoming active in the open source community around the tools I commonly use. I spent the first 10 years of my career mostly working on my own, or with a few people on the job and was not connected at all with the greater community. I think if I had done so earlier I'd be a better programmer today

    --
    Peace, or Not?
  3. C++ is not the language you start with by Anonymous Coward · · Score: 4, Insightful

    On my CS track, you start with C++, learn data structures and algorithms, and then learn assembly on a 68k.

    I can't think of a better way to discourage someone from learning how to code.

    1. Re:C++ is not the language you start with by Lilith's+Heart-shape · · Score: 5, Funny

      Going by my wife's experience, I can suggest a better way to discourage somebody from learning to code. It's called Java.

    2. Re:C++ is not the language you start with by ArcadeMan · · Score: 4, Funny

      Assembly on a 68000 is easy. In my days, we had to build our own opcodes from rocks, uphill, in the middle of winter. Good thing we had onions on our belt though, because that was the "in" thing back in the olden days. ...what was I talking about?

    3. Re:C++ is not the language you start with by Actually,+I+do+RTFA · · Score: 4, Insightful

      Pascal was a good choice of learning language. Now that OOP has proven out, Java is a good choice. Stay away from the rest until you're competent in one of those two.

      If you don't start out dealing with hand-managed memory, you don't learn how memory works. Which means you do stupid shit later.

      --
      Your ad here. Ask me how!
  4. Pick a different job. by Lilith's+Heart-shape · · Score: 5, Insightful

    I wish I had known to pick a different trade instead of programming. Programming isn't a profession like law or medicine. It's a skilled trade like plumbing, masonry, or electrical work. But unlike plumbers and electricians, programmers aren't smart enough to unionize, and so they get fucked in the ass by management. If you have to live in the United States, don't become a programmer. There are better ways to earn a living.

    1. Re:Pick a different job. by MAXOMENOS · · Score: 4, Interesting

      I work in a unionized software shop. It's awesome during bad times. In good times one is tempted to think it's better in fast-and-furious start-ups, but then one compares one's salaries and benefits and realizes, "no, actually, union shop is still better."

    2. Re:Pick a different job. by roman_mir · · Score: 4, Interesting

      Programmers are smart enough not to unionise, which allows newcomers into the field without these insane artificial barriers of entry.

      Unions are barriers to entry into the field to any newcomers, unions are also horrific from point of view of price setting and prevent people who actually excel in the job from making significantly more than those who only coast by. Your complaint is a complaint of somebody who shouldn't have become a programmer in the first place, but also it is a complaint of a horrible person, who wants to prevent others from entering the field freely.

      People shouldn't be licensed just to try and make a living, all professional government dictated licenses and participation in various organizations are a huge economic mistake but more importantly they are a huge impediment to individual freedoms.

    3. Re:Pick a different job. by sinij · · Score: 5, Insightful

      If you mean the quality of code that gets churned by your average coder, then yes, it is just like plumbing.

    4. Re:Pick a different job. by Rinikusu · · Score: 4, Insightful

      One of the most difficult things I've had to come to accept as a developer is: If you see a 'clever' way to solve something, STOP. The sad fact is most programmers work on programming teams and you need to absolutely view yourself as expendable. Embrace mediocrity and find another outlet for your creativity. This could be personal projects outside of the workplace, or other hobbies altogether.

      --
      If you were me, you'd be good lookin'. - six string samurai
    5. Re:Pick a different job. by Khashishi · · Score: 4, Insightful

      It's not unionized because conditions aren't bad enough to warrant it, as much as programmers like to complain.

    6. Re:Pick a different job. by slashdice · · Score: 5, Funny

      SF still sucks, depending on which side of the glory hole you sit.

      --
      Copyright (c) 1990 - 2014 Dice. All rights reserved. Use of this comment is subject to certain Terms and Conditions.
    7. Re:Pick a different job. by NoImNotNineVolt · · Score: 4, Informative

      I was a cashier at the local supermarket in high school. Of course, all supermarkets are unionized. Do you have any idea how hard it was to get this job?

      Not hard. I applied. I was working that same week. If the union was a barrier to entry, it wasn't one big enough for me to have noticed. What the fuck are you talking about?

      --
      Chuuch. Preach. Tabernacle.
    8. Re:Pick a different job. by Matheus · · Score: 4, Insightful

      Sorry it sucks where y'all live.

      Minneapolis here. Getting 40 hours or keeping to 40 hours (whichever is your issue) is not a problem. Wages easily put you in a high standard of living. Of course cost of living is much lower here than any of the cities mentioned but that's part of the appeal of living here... more bang for your buck. Well that and everything else.

      If you really think it sucks everywhere that is not NYC/SF/Austin/Boston then you need to pay more attention.

    9. Re:Pick a different job. by Stormy+Dragon · · Score: 4, Insightful

      Unions are themselves corporations. Private sector unionization has stagnated because being in a union to often just means you end up with two corporations screwing you over.

    10. Re:Pick a different job. by Matheus · · Score: 5, Insightful

      Oh and PS: To a few layers up poster...

      "programmers aren't smart enough to unionize" are you kidding me? To be clear I am not anti-union by any means but for my job not on your life. I'm sure life is different in the valley or big code farms elsewhere but honestly I am better equipped to negotiate as an individual than within a group. The world changes and as development becomes more commoditized this situation may change as well but I don't see that anywhere in the near future. (read my employment lifetime) when my threat as an individual to walk away carries as much weight as a union making the same threat there is no perk to the tradeoffs.

    11. Re:Pick a different job. by Lilith's+Heart-shape · · Score: 4, Insightful

      Last time I checked, the USA isn't the rest of the world, and in most Western countries the Democrats would be a right-wing party.

    12. Re:Pick a different job. by Prien715 · · Score: 4, Informative

      Do you understand the benefits of a union?

      Classically speaking, unions existed to drive up benefits through threat of strikes or walkouts. In the 20's and 30's, unions were responsible for the 40 hours workweek, Saturdays off, and a living wage -- by preventing things like random firings and unpaid work (see 80 hour work weeks in the game industry).

      To be clear, if individuals were better at negotiating wages, we'd see a rise in salary in the field, but according to statistics this is quite simply not the case. "Ah, but salary went up from 80K to over 100K you say", to which I agree, but if you adjust for inflation, you'll see that that $80K in 2004 is equivalent to $100K in 2014 (26.1%). In the same period, the tech heavy Nasdaq grew 143%. While some of this can be attributed to there being more people employed in the field, I doubt there 2.5x more CS graduates than there were ten years ago.

      So while pay is still decent, there's still no rise in salary despite what many consider an obvious shortage in the field. If more CS majors studied those useless fields like "history", we'd have a union and there wouldn't be a bunch of indentured servants known as H1Bs driving wages down (by artificially inflating the labor pool with people who can't quit).

      --
      -- Political fascism requires a Fuhrer.
  5. History by TechNeilogy · · Score: 5, Insightful

    I would have studied more about the history of computers and computer science. It would have kept me from re-making so many mistakes and re-inventing so many wheels.

    --
    "The wisdom of the Patriarchs was that they *knew* they were fools." --Master Foo
  6. Where to begin by MAXOMENOS · · Score: 4, Interesting
    • Project management, specifically the importance of not being a bottleneck.

    • How to design a solution on my own time before I code a solution on company time.
    • Differential diagnosis of bugs (see #2 of the link above --- although I learned this skill later in graduate school and have applied it multiple times since.)
    • Code for readability and correctness first, efficiency later. Code that is "too clever" will never be maintained (except by you).
    • I really enjoy programming as a way of automating tasks and not for other reasons --- which makes me better as a systems administrator than as a software developer.
    1. Re:Where to begin by preaction · · Score: 5, Insightful

      • How to design a solution on my own time before I code a solution on company time.

      Though I inevitably unconsciously think about work code during non-work time, I will never consciously spend time thinking about or working on work code during non-work time.

      They are paying for my brain, they can pay me to sit and think for a while. The actual typing of code is not what programming is.

  7. How to troubleshoot. by darylb · · Score: 4, Informative

    Knowing how to troubleshoot systems -- whether it's code, or things like cars and other physical machines or electrical wiring -- is key. Every programmer will spend time fixing his own code, and has a good chance of spending even more time fixing someone else's. Building the skill to understand complex systems quickly, and to apply fixes that are short of "re-write the whole thing", is essential.

    I've been a developer for over 20 years. Maybe 20-25% of my total time is spent writing new functionality. About 35% is fixing bugs (mine and others'), with the remainder spent on process documentation, design, etc.

  8. How to write code by DudeTheMath · · Score: 4, Insightful

    Write like someone smarter than you will have to fix it ("Who wrote this crap? At least I can tell why he or she did that."), and like someone dumber than you will be adding features ("Bless him or her for making this easy."). You'll be both eventually.

    --
    You save only 59 seconds over 8 miles by going 75 instead of 65. Do you really have to pass that guy? Do the Math!
    1. Re:How to write code by Jason+Levine · · Score: 4, Insightful

      The worst is when you handle old code and think "Who programmed this garbage", only to realize you did years ago.

      That's the bad part of growing as a programmer, you look back at your old code and see it as awful since you now know better. (It can also wind up making you think you're a horrible programmer because your old code looks so bad. It doesn't mean you ARE a horrible programmer, though, just that you are growing.)

      --
      My sci-fi novel, Ghost Thief, is now available from Amazon.com.
  9. Quite simply... by NecroPuppy · · Score: 5, Funny

    That people who use spaces for indentation are just WRONG. :)

    --
    I like you, Stuart. You're not like everyone else, here, at Slashdot.
    1. Re:Quite simply... by Wraithlyn · · Score: 5, Insightful

      OK, I'll bite. :)

      In a Perfect World, tabs would indeed be superior to spaces. No question.

      But in the Real World, tabs and spaces inevitably get mixed together as multiple people touch a project, and then indentation gets messed up.

      Standardizing on spaces helps mitigate this, as everyone sees the exact same thing regardless of editor (whereas tab spacing typically depends on local editor settings). And any editor should be able to "use spaces for tabs" so there is no actual impact on developer effort.

      --
      "Mind, as manifested by the capacity to make choices, is to some extent present in every electron." -Freeman Dyson
  10. Hindsight is 20/20 by MagickalMyst · · Score: 5, Insightful

    I wish I had known how uninteresting and boring coding could be when working for a corporation. It was the ability to be creative and imaginative that made me fall in love with coding in the early eighties. Although I still work in IT, I generally don't code for companies anymore. And somehow coding has miraculously become very interesting once again!

    --
    Political correctness is really just herd psychology pushed by insecure people who desperately seek social conformity.
  11. That an assembler was way easier than hex opcodes by mark-t · · Score: 4, Insightful

    When I first started programming the 6502, back in 1981, I was still in school, and I was manually entering hex opcodes for every machine language program I wanted to create... I was doing this for about 6 months before somebody pointed out that I could use an assembler. I honestly didn't understand what they were talking about until I used one to type in a program that I saw in Nibble magazine. I never looked back. An assembler would have saved me *loads* of time if I had known about it at the beginning.

  12. Grit by jones_supa · · Score: 4, Insightful

    I would have teached him grit. Oh god, how many unfinished little projects I had. Learn to concentrate on one thing and finish it properly. Just keep grinding on it.

  13. I wish I had read Dale Carnegie by pscottdv · · Score: 4, Insightful

    How to Win Friends and Influence People

    --

    this signature has been removed due to a DMCA takedown notice

  14. Simple by geekoid · · Score: 4, Insightful

    put every god damn penny you can into a 401k.
    Oh, you mean programming wise?

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  15. A Programmer Competency Matrix by Deffexor · · Score: 5, Interesting

    This Programmer Competency Matrix has been instrumental in helping me "know what I don't know".

    1. Re:A Programmer Competency Matrix by Nemyst · · Score: 4, Insightful

      I'd argue that while it's a nice table, there's one critical flaw with it: it doesn't matter this much if you don't know everything listed, provided that you can learn it on the spot in a fairly short period of time. For instance, I remember having read about red-black trees or how to treat hashmap collisions and I've already programmed in prolog and so on, but do I remember all those things so well that I could immediately, without looking at a reference, know how to implement/work with them? Hell no. There's way too much to learn in computer science to ever hope knowing everything at once, and claiming that this should be the case (or even, that it is achievable) only serves to demoralize and misguide people.

      In my mind, there are two core qualities in computer science (and really, in science in general): being adept at solving problems, and being able to learn new things all the time. The former lets you break down any specific problem in a set of more generic problems for which solutions can be found or designed. The latter means you're able to learn new solutions to problems you may be unfamiliar with.

  16. One Year In by Niris · · Score: 5, Informative

    I just had my one year anniversary as a full time Android developer, and it's insane how much I've learned after leaving school. Luckily there's two older guys (well, one now, the other moved on recently) on my team who are _awesome_ mentors.

    1. Pay attention to everything you can in the work place. You may be a client side developer, backend, whatever, but pay attention in every meeting or conversation that you can eavesdrop on. You may not understand everything going on with the teams you don't work in, but just being exposed to their terminology and _looking up what they're talking about_ will get you far. This doesn't go for just development, either - listen to the business and sales guys talk and try to understand your clients and what they need so you can build a great product by anticipating what will work for them before they have to ask.

    2. Write a blog. Seriously. I'm the first to admit that I don't really know anything when it comes to development, but I've been actively writing new posts to my blog and it forces me to grok whatever I'm writing about. Whatever you're doing, post the code on GitHub so others can read it (mine's here). Developers who read peoples code online tend to be awesome about making suggestions and asking questions that make you realize you screwed up without being jackasses about it.

    3. If there are tech meetups in your area, go to them. If you're in a decent sized city (I'm in the Denver/Boulder area, which isn't huge, but it's a lot bigger than where I'm originally from) you can find multiple meetup groups related to tech that you're interested in. It's a great way to learn new things and meet a lot of awesome people in your area.

    4. If there's hackathons in your area, no matter how small, go to them. You meet awesome people and learn how to work in teams that are different than the one you're in every other day. Plus there's usually free food and beer, so what's not to like about that?

    5. Pick up skills that compliment your work area by doing projects that aren't work related. It helps you understand what other teams are doing and how it affects you, plus it just makes you more awesome while keeping down the monotony. As a client side developer, I've been taking a Udacity course on using AppEngine to make backend APIs, and it's been fun.

    6. For the love of God, check for null pointers and other kinds of exceptions. You may not catch all of them due to inexperience in spotting them, but that's what senior devs doing code reviews are for. You don't want code going into the wild that crashes, even when data is bad. Getting a call on a Saturday saying something bad is happening is not what you want - the weekends are yours to do whatever you want, not put out fires that could have been avoided.

    7. Open source third party libraries are your friend. People way smarter than me have put together some amazing things that we use every day, like Otto and Picasso from Square. Try libraries out in a sample project, and if they will work for what you're doing, give it a shot. If you can make them better in the process, submit a pull request. Like I mentioned earlier, the open source community is awesome and if your pull request isn't up to par, they'll let you know what you can do to fix it.

    8. You're going to fail at some things, and it's alright. Fail early, learn what did and didn't work, and try again. Learning from mistakes is how you get better. Along this same line of thought, if you run into a roadblock that you can't figure out yourself via documentation/stepping back and evaluating the problem, StackOverflow is awesome.

  17. Two things.... by bobbied · · Score: 4, Insightful

    1. A copy of the "Mythical Man Month" by Fredrick Brooks and being told to read it.

    2. A set of closing prices for every stock on the NY exchange for the next 20 years with the advice to become an investment banker..

    If #2 isn't possible, then sitting down with somebody who could explain that you get what you negotiate, not what you deserve, so don't settle for what you get.

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
  18. My lessons by RobHostetter · · Score: 5, Interesting

    Here's my advice, been programming for 15 years. Write comments, one per block of code that does a step, then fill in code. You will then have well commented code, and forced yourself to think through the solution before you begin coding. This saves tons of time by avoiding thought errors before you code. When hunting a bug, don't just look at what's not working. Instead look at what was most recently changed, even if it seems it couldn't possibly be related. The times I didn't do it this way have cost me many days hunting down a really tricky bug. Sometimes it really is unrelated to recent changes, but not often. If you are stuck, take a break and do something mindless, like get some water, go to bathroom etc. your subconscious keeps working without the interference of your conscious mind. Preplan your work a few days ahead if possible. You can avoid many roadblocks by thinking through things ahead of time. Persistence pays off. I've worked through many "seemingly impossible" tasks, only to find the solution after failing a few times first. Visualize what the users interaction will be before coding. I like to draw it on paper and pretend to use it. Putting yourself in your users shoes allows you to see what might be difficult to understand. I rarely keep my first design, but since it's just a drawing I'm not invested in it. If you lay it out in software, it's much more tempting to keep a poor design. Ask a colleague if you are stuck. Often, articulating the problem out loud is sufficient to solve it!

  19. In a large organization, politics matter by idontgno · · Score: 4, Insightful

    You can ignore them, in which case you've volunteered for the role of "victim".

    You can make them your full-time job, in which case you're no longer a developer.

    You should find a good defensive middle ground. At least, some situational awareness. Put your head up and look around. And listen.

    --
    Welcome to the Panopticon. Used to be a prison, now it's your home.
  20. The benefits of specialization by edawstwin · · Score: 4, Insightful

    I learned C++ first and just kind of learned various languages and technologies as the need arose, and now I know several languages and my projects have been widely varied. But I noticed that most of my peers who specialized were much more in demand, and therefore pretty much had their pick of jobs, made more money, and had better working conditions. The kind of specialization I'm referring to is learning something that less than ~5% of programmers know, but is still in some demand, and likely to be in demand in ten or twenty years. Or if you pick something that many programmers already know, learn the shit out of that one thing so that there aren't many others that have your level of knowledge in that one thing. In an interview, impressive knowledge of something specific is always better than just adequate knowledge of many things.

    Also, learn how to be interviewed. It is a very valuable skill.

    --
    I don't want to achieve immortality through my work. I want to achieve it by not dying. - Woody Allen
  21. Code less, get out more by twdorris · · Score: 5, Insightful

    I wish I had learned to balance real life with coding life sooner. I used to do the same zillion hour marathons everyone else did at one point or another in their coding careers. I loved the challenge and being the one producing the results. But then, eventually, I realized there's really a LOT more out there than that tiny little challenge/reward cycle. Biking, hiking, sports with friends, whatever. You can easily burn through 10-15 years of your YOUNG life living the code only to realize later when you're not so young any more that there were TONS of things you would have enjoyed doing more. You can make up some of that, but not nearly all.

  22. As a sales guy (ducks) by obarthelemy · · Score: 4, Interesting

    I work for consulting firms, selling both flesh-by-the-month and fixed-budget custom dev/integration. Here's what I'd like begining devs to know:

    1- be presentable. Be clean, pleasant, non-threatening (agreed, that means be lame. Lame is good). You don't *have* to wear a suit and tie (though if you want to move up, you probably should), but at least clean jeans (chinos is much better) and a top with a collar (polo is OK). "Town" shoes are much better than hiking or sport shoes. Needing to express your personality by shocking others is pretty much a dead-end. It's not "look how much you need me that I can bug you by being an ass", it's "look how much I'm sabotaging myself by making my self be a problem".

    2- don't be afraid to say "no" and "I don't know". And don't say anything else instead (like "yes" or "this idea/tech sucks"). If your client/boss is asking for unrealistic, impossible stuff, just say so, or at least say you need to check, don't accept. Saying you can't do something, or something is undoable, will hurt you and others a lot less than accepting and then not delivering. Also, "I can't do it" and "it's undoable" are not the same. Maybe you need help from someone else. Maybe you need training.

    3- Be proactive. Learn new skills and try to help people around you. You boss mainly. If you spot a problem or a potential sale, say so. Don't make a huge issue out of it, don't get frustrated if it doesn't get top priority, but do point out issues, and if you can, solutions.

    4- be patient. Many youngsters have this mental image of where they want to get, and how good they are. You'll probably get there, but not in 6 months. You *will* have to work on nonsensical doomed projects, with idiots as coworkers and bosses. That doesn't prevent you from building skills (technical, personal , organizational), networking and building up your brand...

    --
    The Cloud - because you don't care if your apps and data are up in the air.
  23. Regular expressions by Drakker · · Score: 4, Informative

    Why... regular expressions of course! I could have saved myself endless hours of dumbfounded confusion!

  24. Writing by Art3x · · Score: 5, Interesting

    I'm going to answer this in a different way: what I knew when I started that I think most programmers, and most people, don't. That may sound arrogant, but I keep seeing it every day of my working life.

    I wasn't a computer science major or anywhere close: I was a film major and English minor. It was the English that has helped me more than anything learn very quickly certain secrets to programming effectively. And yet it wasn't even the English classes themselves, because a lot of what is fashionable to teach in English is misleading or harmful.

    What really happened was a certain approach to writing. It is taught clearly in just a few books, like The Elements of Style and On Writing Well. Reading these books literally changed my life. If I were to try to summarize it, it would be that the goal of writing is to reach the reader as plainly as possible, instead of writing in a flowery, fancy, or important-sounding way. To do that actually is the greatest amount of work. It actually is the opposite of everyone's inclination. Even for professional, longtime writers, it doesn't happen on the first draft or even the seventh draft. It involves adhering to certain non-glamorous principles like using as few words as possible and preferring the short word over the long one. It means putting yourself in the background. In short, in trying to be elegant.