5 ms·
What Does Saying That 'Programming Is Hard' Say, and About Whom?
- coldtea 5y agoA confused meandering no-beef essay, if I ever read one. "Is programming hard or not? Current evidence is not compelling nor diverse enough to answer this question in general." Might as well read a shampoo ingredients list. The repeatition and wording is also like trying to pad or stretch a homework essay to fit the required minimum length.
- mypastself 5y agoIn conclusion, programming is a land of contrasts. Thank you.
- Tarsul 5y agoCertainly not a good article. I'd really like studies that test the hypothesis that "programming is hard". Whenever this topic comes up there is a lot of anecdotes, usually about people who have positive experiences but that doesn't show anything about the population! My personal hypothesis (if I may) is that programming is hard for a majority (>50%) of people. It starts with reading: Reading comprehension is hard for many people. And reading code is way harder than reading text, which means programming can only be easy for those who read well. And that's just the start. You also have to have a sense of logical thinking and finding solutions. Many people have trouble with that as well. So just from these two aspects (reading + logical thinking) I'd already say that programming is indeed hard. At least if we use the general population as reference.
- prower 5y agoProgramming is hard because you need to have a lot of pre-acquired knowledge before you can even start to delve in the only interesting aspect of it, which is the logic solving. Is like having to learn everything about how a lego brick is built (from the materials used, to the production processes used in the factories, to the composition of the houses where lego bricks are used) before being able to play with them. Everyone (aside from an very motivated subset of people) would find Legos "Hard" in that context. Having to memorize a myriad of arcane incantations, software setups and a million "standards" will always make programming look "hard" and daunting, even for those who have an interest in logic problems, but not have an interest on babysitting a computer.
- teekert 5y agoMy first programming, instead of opening excel and making a plot I did (after setting up jupyter lab with anaconda): import pandas as pd data = pd.read_excel('my_excel_file.xlsx') data.boxplot() Amazing! And then someone showed me a loop [1] and I was plotting the columns I needed from hundreds of Excel files. Crazy efficient! Programming clicked right away for me. It was exactly what I needed at that time. It helps tremendously that in Jupyter notebooks you can just type a variable (in this case `data`) and it shows you what it looks like, and it looks like... An Excel file (indeed, a table). You know what is hard? Opening 20, roughly the same, Excel files and copying some of the data into a new Excel file without making any mistakes (and that includes Excel not reformating your data to something else, like a dd-mm-yyyy to mm-dd-yyyy or making a date out of your Gene names [0]). [0] https://www.theverge.com/2020/8/6/21355674/human-genes-rename-microsoft-excel-misreading-dates https://www.theverge.com/2020/8/6/21355674/human-genes-renam... [1] The loop: excel_files = os.listdir('.') for excel_file in excel_files: data = pd.read_excel('excel_file.xlsx') data[['Column A', 'Column D', 'Column X']].boxplot()
- TeMPOraL 5y ago> (after setting up jupyter lab with anaconda) That right here is a very hard step for anyone who isn't an experienced software dev with some Python familiarity.
- teekert 5y agoAnaconda gives you a UI where you can click Jupyter-lab and it will just start. That said, I'm not claiming the learning curve is not there. It takes some investing. But learning to work with Excel's PMT function to understand your mortgage and making some plots also presents a learning curve.
- thablackbull 5y agoThe problem is that non-tech people have the exact opposite problem of what you experienced. > copying some of the data into a new Excel file without making any mistakes (and that includes Excel not reformating your data to something else, like a dd-mm-yyyy to mm-dd-yyyy or making a date out of your Gene names In your typical office environment, your regular analyst will run into issues where the date formatting is different between files, and there are one-off errors or issues here and there. In Excel, they are able to scan through and adjust as necessary. If you're asking them to figure out how to write the code to re-map and fix random issues in the data, that will be much more complicated to learn.
- superbaconman 5y agoI'd argue that programming is relatively easy if you know what needs to be built. If you don't know what needs built or are unable to see the downstream effects of an implementation detail then you're in for a ride.
- username90 5y agoThat isn't really true, software projects fails all the time even when everyone knows what to build. A recent well known example is Cyberpunk 2077, its engine couldn't handle anything less than the latest hardware causing tons of bugs. If you know what to build and that thing is something trivial that many has already built before, then sure it isn't hard. But any time you try to push and deliver software doing things that other companies doesn't it will be hard. If your business suite covers more cases than all other business suites then that is impressive and hard, etc.
- bryanrasmussen 5y agoprogramming is easy until it's not. when does it become not easy? 1. when something doesn't work the way it is documented as working. 2. when there isn't actually any documentation on how to do the thing you've been told to do. 3. when you don't know everything that was decided going into a bit of code that you're looking at someone else wrote and not understanding why it is like that. 4. when you are required to do something with the wrong tools for the job. 5. when to fix a problem you need to come to grips with some concept you are unfamiliar with and maybe nobody else you know is familiar with it either. on edit: of course I forgot cache invalidation and naming things.
- himinlomax 5y ago> The commonly held belief that programming is inherently hard lacks sufficient evidence When was "The Mythical Man Month" published, again? Programming is harder than most people, including programmers, realize. Unless, of course, you're talking trivial programs and don't care about defects. Or put another way, programming is just as easy as bridge building. Just throw a plank over a stream. Don't mention Tacoma Narrows or other disasters. But joke aside, trivial programming is harder than trivial bridge building. Anyone can move a plank. Many people have trouble understanding basic concepts such as mutability. I remember reading a paper by someone who tried to teach programming to unemployed adults, surprisingly many were stumped by something as simple as: a = 1 a = 2 print(a) And that was after a few weeks of training. (Sorry, couldn't find the paper)
- Jtsummers 5y agoThere's programming and programming at scale. The latter is hard. The former doesn't need to be. Plenty of 8 year olds like me learned it on our own from magazines and math textbooks and manuals in the 80s and 90s with computers that got out of the way and let us use their BASIC interpreters or whatever was available. A major reason programming at scale, a lot of what Mythical Man Month is about, is hard is the complexity of the system being created (it's too much for one person to keep in their head) and the inherent collaboration problem that follows from that.
- himinlomax 5y agoProgram complexity does not grow linearly. In fact, it theoretically grows faster than exponential; just consider the halting problem. Of course we use tricks and abstractions to reduce complexity and get stuff done.
- Jtsummers 5y agoDid I say it grows linearly? What’s your point here?
- lmilcin 5y ago
- thatswrong0 5y agoThe hardest thing for me these days is writing code that is easy to use in the 90% case yet simple to extend, esp. at the architectural level.. code that has enough guardrails to prevent lazy mofos like me from copy pasting off a cliff, but is also flexible enough to allow for other devs to properly deal with the supposedly exceptional cases that seem to pop up with alarming consistency. Bonus points if I somehow can also make it so that adding new features to said code doesn’t require a significant refactor or doesn’t result in other devs piling on yet another gross hack in order to meet their deadline, despite the mildly concerning interest we already pay on our existing tech debt.
- moritonal 5y agoI'm glad that people are finally starting to understand that "Programming" is not a binary "you can compile the linux kernel" vs "that excel formula is cute". Almost every job I can think of that involves a computer (which is almost every job) would improve from a basic understanding of how a computer thinks, and an interface to speak it's language. Scaring people off with "Do you even Rust" just further moves away the world where a checkout-employee can macro a common order.
- yourenotsmart 5y agoProgramming is unbounded, it spans the range from so easy, a child can do it untrained, to impossibly complex. So "it's hard" is the natural outcome, given we always strive to optimize our efforts, therefore we keep pushing programming beyond "it's easy" right until "it's hard" but before "it's impossible". Therefore programming is most typically "hard" for most people programming at any given moment. So what does it say and about whom, seems like a wrong question. It only shows a property intrinsic to systems (including social, biological, artificial and so on) and how systems balance themselves.
- dj_mc_merlin 5y agoReplace "programming" with "maths" or "physics". Does the article make no sense? Exactly. All intellectual pursuits are indeed hard and require a large amount of dedication and some natural talent to reach any amount of ability. We are standing on the shoulders of giants that we must comprehend. It took thousands of years and some of the brightest minds humanity produced to invent Calculus, why would it be so easy and intuitive for others to grasp without putting in the work? Craftsmen in the old ages were always highly prized, since learning a skill to a degree you're actually useful is always hard. Anyone can learn how to make Excel formulas, but only a tenth of those would ever be able to reach the skill level to make an Excel clone. We don't say building rockets is easy because people are able to build bottle rockets, do we?
- dalbasal 5y agoI agree with you entirely, but I think this is an if-by-whisky. That is, you justify a yes or no by defining "programming," or assuming a certain context. Or.. you justify yes or no by defining "hard." There can be a lot of insight in an if-by-whisky, but I think the insight is usually in the justifications than the position. You're implying (I think) an "is it difficult to become a good programmer?" Totally reasonable interpretation, and I think you're right about the answer. To be useful at a profession is, generally, "hard." It takes time and effort and talent, so yes. The author implies an "will students feel/report that programming courses were hard." His answer is "no," or not compared to other subjects." In some sense it's the same insight. Programming is not unlike everything else. It's hard to be good. That said, there is a schoolhouse sense of "hard" vs not that's not evenly applied. Math is considered a "hard" subject. Art, generally, isn't. This isn't universally true, but for the most part, no one stresses about their child or student's level of art proficiency. Ministerial advisors aren't pouring over comparative attainment in art and pedagogical research to try and improve it. That does happen at the specialist end, but not broadly like with STEM. Educations systems treat most people as prospective non specialists in art, that might benefit from some exposure at a young age. No one gets berated because they're painting below a 7th grade level. Meanwhile, STEM is treated as an essential, employable skill that students are expected to be good at. So... Should some level of programming be a general skill, like writing or math, that most people need? Or, is it a craft that most people don't need at all. I think that's the question. In one sense, I think yes, because programming is such a part of the world. In a more practical sense, I'd say no, because there's not easy places to apply basic programming skills. Doing something useful with math, like balancing the proverbial checkbook, comes up regularly. It doesn't, for programming.
- denton-scratch 5y agoWhen did postmodernists infiltrate the ACM?
- PaulHoule 5y agoThe problem you see talked about in CACM over and over again is that admissions to undergraduate CS are unstable. Students hear it is a hot field one moment, the next they hear you will be age discriminated against at 29. ACMers want student to be less fickle and don’t get that if they’d made alliances with working developers to advance our mutual interests they’d benefit too. (E.g. those students would hear better stories.) As it is you get articles like this that miss the point over and over again.
- jstx1 5y ago- I think the article didn't really say all that much. - A generic statement like "programming is hard" or "programming is easy" isn't useful to anyone. - I personally find it very difficult to extrapolate to other people. If something comes easily to me, I probably wouldn't even notice or consider that it's difficult for other people.
- codesections 5y agoI question the premise of this article: > Why does it seem routinely acceptable—arguably fashionable—to make such a general and definitive statement [as "programming is hard"] ? The implicit premise in ^^^^ is that people call programming "hard" more often than they call other fields "hard". I disagree. Consider the following statements: * teaching school is hard * practicing law is hard * playing the piano is hard * playing baseball is hard * painting is hard * accounting is hard * working retail is hard * writing is hard *none* of those statements strike me as less likely than "programming is hard". Pretty much everything (done decently) is fairly hard, and thus saying so does not seem remarkable.
- telxos 5y agoPiano is the best analogy to me. If you sit down at a piano for the first time, the idea of ever playing a Chopin prelude seems almost impossible. Of course it takes years of practice to gain competency, just like everything else in life. This seems like a cultural flaw we have almost. We love to pretend people have all this effortless talent that they never had to work towards instead of putting value on the effort that got them to their level of mastery.
- II2II 5y agoMany, if not most, people would not call any of those fields hard unless they were forced to practice it. A classic example is teaching, where some people seem to believe that bad teachers are bad because they are lazy (not that it requires skill). Even with law, those who claim it is hard focus upon the environment rather than the practice. (Law school is hard.) Pianist, there is lack of jobs. Baseball player, some may regard the training as gruling but not the game itself. Painting, a common excuse is a lack the creativity. Accounting, is seen as boring. Working retail, is regarded as being below them. Writing. Well, many seem to think it is easy yet few follow up by getting published. Contrast that to STEM disciplines. Not only is getting there seen as hard, in the you need to be inherently good at it sense, but the practice is seen as hard, in the it is not worth the effort sense. On top of that, that accountant may take up baseball or painting as a hobby recognizing they don't have the ability (nor need the ability) to work hard since they will never practice it professionally. The majority of people who pursue STEM as a hobby already seem to be in STEM professionally.
- sssilver 5y agoDoing anything well is hard.
- aranchelk 5y ago> Who Says Programming Is Hard? I do—working professionally, cranking out performant mostly bug-free code with useful features is hard. Authoring high-quality applications? Hard. Designing good frameworks? Hard. Understanding the requests of confused business people and turning them into acceptable business logic? Hard. Some circumstantial evidence that programming is hard: software engineering a very well paid profession (and IMO with regard to social status, engineering is pretty average, so I doubt that has much of an effect one way or the other). I’m straining to think of any easy activity in which having someone break your concentration for a moment can shitcan a half hour of work or introduce a mistake you may not find for months. I find ACM to have mostly excellent content; this is IMO not a great representation.
- dkersten 5y agoI would add to what you said by saying that coding (that is, actually writing the code) may be easy enough and you can even get useful stuff made easily enough, but as I said in the github copilot discussions, writing code is usually the least important aspect of my job as a programmer and only a small chunk of what I spend my time on. So, writing code might not be hard, but its also a kinda mechanical process. Most of the coding effort comes from translating your thoughts into what the language understands. Teenage me managed just fine, many kids start even younger. Writing code that does interesting things isn't, for many people and definitely shouldn't be for a professional programmer. However, as a programmer, I spend much more time on other tasks: figuring out what the requirements even are, refining them, figuring out what that even means in terms of code, figuring out the overall architecture, how it fits in with other systems or existing code, what data formats it uses, how it handles faults, persistence, scale, security. The data model (what data I have, what shape does it have, how can I transform it, where does it live/is it stored, who or what owns it, who or what is allowed to modify it/add to it/delete from it, what is its lifecycle, are there any legal requirements around storage or retention). How it interfaces with the outside world (UI or API). Besides the application code itself, I also spend a lot of my time on writing tests and on writing documentation. All of these tasks are, in my opinion, a lot harder and more time consuming than actually writing the code.
- jedberg 5y agoProgramming is hard because you aren’t done until it works. With most creative endeavors (writing, painting, making music, etc) you’re done when you think it’s “good enough”. But with programming it either works or it doesn’t.
- monster_group 5y agoThere's definitely "good enough" in commercial run of the mill programming. You can always improve a feature, make your tests more robust, automate something more, improve the UI etc. At some point, you absolutely do need to ask yourself "Is this good enough to be acceptable to the customer?" If you don't do that you will be working on the project forever. Also I think you are being dismissive of the professionalism of artists, writers and musicians when implying that they stop working when they think it's good enough. I play guitar and I can't help but compare music with programming. Both are very deep and complex skills. In fact I find music much harder than programming (but that could be because I have done programming lot longer than music.)
- kybernetyk 5y agoI prefer to say that programming is boring (to most people). It’s not particularly hard - what is hard is keeping enough motivation to learn it.
- Shoetp 5y ago> The commonly held belief that programming is inherently hard lacks sufficient evidence Is the fact that every software ever made is full of bugs not enough?
- jhgb 5y ago> Stating this belief can send influential messages that can have serious unintended consequences including inequitable practices A self-admitted fallacy of adverse consequences in the very second sentence? That's not a good start.
- chiefalchemist 5y agoI'd say programming isn't easy (as opposed to being hard). What is hard is "the context". Bad documentation, cryptic error messages, not quite ready for primetime tools, persistent bugs, untangling some former employees' bad code, project managers with no backbone, management / leadership with bizarre expectations, clients unwilling to focus, unnecessary interruptions, etc.
- yomly 5y agoMaybe this is an unpopular opinion but "hard" is very defeatist. As yoda once said "there is no try, only do". Hard is a relative concept - watch a one year old try to walk or a two year old try to climb over obstacles. Yet we take these tasks for granted. Mandarin is "hard" I'm assured by many people I meet who try to learn it as a second language, and yet almost 2 billion people can speak it... Take any <skill> that you have zero background experience in and it will feel hard. If don't have the prerequisite coordination, something like belly dancing will completely melt your brain just the same way programming will. I happened to find programming relatively straightforward (compared to other people) but I spent a lifetime in front of computers and videogames and then studied hard STEM at college. Just in the same way a gymnast would find snowboarding much easier than your average joe. Personal development is an individual journey, measure your progress against yourself and approach things without ego and your progress will be so much faster.
- TOMDM 5y agoNot to nitpick, but the quote is "do or do not, there is no try"
- yomly 5y agowhoops I googled it and found some memes and just took that without looking deeper! Thanks for the correction, have always sucked with quotes
- username90 5y agoWe call STEM hard since most people fail to learn it to a passable level even when enticed with tons of money. You can try to explain away their failures to learn in many ways, but the fact is that most people fail to learn STEM well enough to get a job doing it and instead they go to other fields considered less hard. You could say "They just didn't try hard enough" or "they just went into it with the wrong mindset" or "they just need to spend more time doing it" etc, but all of those things are signs that the field is hard.
- yomly 5y ago
- ykevinator3 5y agoWhy is the acm publishing a feelings paper?
- jonathanlydall 5y agoIs mathematics hard? Well it depends, are you doing high school level mathematics, or are you trying to solve highly complex mathematical problems and/or devise new theorems? In general, the aspect of programming where you write the code is not especially hard, at least not that much more so than basic writing. However, like trying to write a decent quality full length novel, competently programming a large complicated system as part of a large team is definitely quite hard. Although there are occasionally some very hard algorithmic challenges in programming, for the vast majority of programmers, their projects tend to fail for project management reasons. So, while solo programming on a small scale is by and large quite easy compared to many things (such as mastering a musical instrument, being a world class athlete, understanding complex physics, etc), working on a large programming project is certainly very hard and failure is quite regular in our industry. As I've gotten older, I've come to realize that any type of work which requires many people to complete (things such as large construction projects, feature length movies, television series, large aeronautical projects, etc) is hard to complete on time and within budget for the same general reasons, management of a lots of tasks and coordinating lots of people effectively. The most valued programmers in the industry tend to be those that manage to make large scale projects succeed. Programming a little solo project is not "hard", but successfully programming large complex systems is absolutely "very hard".
- username90 5y ago> Well it depends, are you doing high school level mathematics, or are you trying to solve highly complex mathematical problems and/or devise new theorems? Most people actually considers high school mathematics hard. It is easy to forget this when we are talking about how easy or hard things are for the average person.
- globular-toast 5y ago"Programming is hard" means not everyone can do it, and those who do do it got there by dedicated learning and practice. For a start, if you think everyone is capable of programming then you need to get outside of your bubble. Second, if you think even the most gifted programmers don't have to learn and practise, you are wrong. "Playing guitar is hard" means the same thing. Not everyone can do it: some people just don't have a good ear or big enough hands. But even the most gifted, say Jimi Hendrix, practised for literally hours every single day. Do other fields have articles like this one? Is there a music journal asking whether playing music is really hard and lamenting that there aren't more people playing in orchestras? I might be wrong, but I doubt there is. Why is this unique to programming?
- username90 5y agoYou can pretty easily and effectively do parts of the work of a doctor by looking up symptoms online and buy off the shelf medicine, it doesn't solve all cases but it solves a lot of cases. Does that mean medicine is easy? No. And the bar for delivering value via programming is way higher than medicine. Just knowing how to do a few loops and print statements doesn't take much, but also doesn't help basically anyone do their job. In a few jobs it helps, but most people doesn't need that kind of simple text processing in their jobs, and those who do are usually already automated by dedicated programmers. Edit: With that I'd say, people will learn to program simple scripts once we build enough interfaces for such programs to be useful to the average person. But as is we are making programming harder and harder via tons of build scripts etc making just setting up a project properly often take hours to days. We are moving in the wrong direction here if we want average people to code.
- beej71 5y agoAs teachers, we say "programming is hard" because it's a better motivator. If people get their butts kicked by something that is allegedly easy, they're more likely to drop it instead of showing the perseverance required.