5 ms·
Personally, I think Discipline is one of the things that separate “coders” from “engineers.” This sounds like it’s really a treatise on “learning to build a ho
by ChrisMarshallNY 6y ago
Personally, I think Discipline is one of the things that separate “coders” from “engineers.”
This sounds like it’s really a treatise on “learning to build a house by making your own nails.”
Of course that won’t scale. Especially if most houses, these days, are prefab, and don’t use too many nails.
But learning how to stay out of flood plains, and selecting good prefab sources, is vital to being a builder. The first one is a fundamental discipline, that also applied to “make your own nails” building, while the second is unique to the new way we do things.
I like to write code that has a future. I want people to be able to take it over, so I use header documentation, and a consistent coding style.
I originally learned Machine Code (I started as an EE). I’ve written embedded operating systems and drivers.
A lot of what I learned, doesn’t apply to writing high-level application code in Swift (what I do nowadays), but it did give me the discipline to power through the “boring” stuff that is vital to writing good, maintainable, extensible code.
I think maybe there is a confusion between “discipline” (the type that manifests as patience, consistency, and craftsmanship), and “experienced inflexibility,” which is not always applicable (and sometimes, downright destructive, like old-fashioned C++ programmers refusing to use smart pointers).
- bluetomcat 6y agoOur contemporary corporate and social culture doesn't encourage or reward discipline. We produce mostly throwaway stuff that has to be released as soon as possible on the market, or else the company goes out of business. The incentives for craftsmanship and diligence are just not there.
- ChrisMarshallNY 6y agoSadly, you are correct, but that’s not new. This has been the case throughout history. I was just thinking about the difference between “good,” and “excellent.” If we look at the difference between a Henkels kitchen knife, and a Japanese Takayuki knife, we are talking exponentially divergent costs. The Takayuki is definitely a lot better than the Henkels, but is it twenty times as good, as the price difference might suggest? But Henkels makes far better knives than most of the disposable crap out there. It costs more; usually two or three times as much as a “standard quality” knife. Worth it, though. That’s sort of the “sweet spot” I aim for, and we don’t get there, without discipline, consistency, and patience.
- bluetomcat 6y agoGermany seems to be doing quite well in producing exactly those products from the upper-middle tier – mixing a reasonable blend of longevity, ingenuity and ergonomics, at an earthly cost. In the rest of the world and especially in "emerging markets" however, such products are often unaffordable, uncompetitive and even sometimes seen as old-fashioned. A household in India that goes from not having a kitchen cutlery set to having one cannot ever distinguish its level of quality because there is nothing else they can compare it to.
- ChrisMarshallNY 6y agoTell me about it. I grew up in Africa. I will say that poor folks act a lot like pros. They take care of their tools. I know people that use Takayukis as bottle-openers. They have so much money that they don't care.
- ChrisMarshallNY 6y agoI just realized I left out the "c" in "Henckels." My bad...
- Cthulhu_ 6y agoI do get it though; there is a lot of things you can do with code in addition to the minimally viable, but the cost is time and effort (short-term and long-term (e.g. maintenance)), and eventually money will run out. You have to set a boundary for "good enough" somewhere, else you end up stuck in analysis paralysis or whatever a catchy term is. That said, today's development tooling helps you have a baseline of quality pretty quickly; languages that do not have memory issues, compilers and typed languages, etc.
- rkangel 6y ago> Our contemporary corporate and social culture doesn't encourage or reward discipline I think there is some selection bias here. The majority of particiapants in HN discussion generally people who work for startups and people who work with web technologies. The Silicon Valley culture might be focused around time to market, but there is a large (mostly unheard) group of people who exist in a very different culture. For example: C is still an incredibly popular language (for better or worse), but on HN you won't hear much about it outside the Linux Kernel. A lot of this enterprise software development suffers from some very different problems (the time to market thing brings benefits in terms of making productivity important) but also has benefits in terms of thinking about investments long term (when done well).
- ChrisMarshallNY 6y agoReminds me a bit of this article: http://veekaybee.github.io/2019/05/10/java8/ http://veekaybee.github.io/2019/05/10/java8/
- asdfman123 6y agoMaybe you think craftsmanship is better in the past because of survivorship bias. For instance, the 60s and 70s had a lot of great music come out of it, but have you ever gone down a chart of the hits from decades ago and listened to the lesser known artists? Lots of it is bad and utterly forgettable. Same goes with a lot of other fields. We only remember the best and forget about the rest.
- underwater 6y agoI don't think your worldview is inconsistent with the authors. Software is one of the few areas where we can easily and rapidly change our tools and the medium we work with. To be professional in this field you must use that ability to systematically remove issues where possible. To fall back on the mindset that being a good engineer means eschewing those safeguards and relying on discipline is more about image that outcome.
- ChrisMarshallNY 6y agoCompletely agree. Discipline is only one of many tools at my disposal. One of the most important things about being a software engineer, in my mind, is the ability to be flexible (I won't say "agile," as that word seems to be pretty much worthless, these days). One of the disciplines that I've developed, over the years, is writing flexible code; Code that has a future. One of my favorite text editors is BBEdit[0]. I've been using it since the 1990s. During that time, I've tried others that have been raved about, like Sublime, TextMate and VSCode. I've liked them, but always ended up going back to BBEdit, which has been doing a great job of adapting to the new operating systems and workstyles. The fact that the app is nearly thirty years old, and started off with a bus factor of 1, says that the original author applied discipline and a "future-facing" design ethos, back in 1992. I can respect that. I also use Adobe Photoshop, which I first met before Adobe brought it, in the late 1980s. That seems to have grown well. [0] https://www.barebones.com/products/bbedit/ https://www.barebones.com/products/bbedit/
- rigaspapas 6y agoExactly. With so many people out there advertising themselves as "software engineers" but being "coders", companies fail to produce maintainable code without a bunch of strict rules. Coding manifestos are a must these days, otherwise you end up with a codebase that looks like the Tower of Babel.