r/programming • • Nov 28 '15

Coding is boring, unless…

https://blog.enki.com/coding-is-boring-unless-4e496720d664
671 Upvotes

390 comments sorted by

View all comments

Show parent comments

184

u/raiderrobert Nov 29 '15

It's also a little limited in vision. I've known people who are totally cool with jumping into legacy code and improving it. For them it scratches the "putting things in order" itch. Not realizing that there are people like this is a huge red flag for me. It suggests that he expects everyone to be very much like him.

85

u/mearkat7 Nov 29 '15

My problem with legacy is that it is never treated as "putting things in order". When i'm asked to make a change to a legacy system it's only ever treated as if you're going to to apply a quick(usually poor quality) fix that will only serve as a bandaid until it breaks again. If it was as you described it and you can fix things up and you were allowed the time to do so i'm sure people would have a far less negative attitude towards it. Every time I go back into a legacy system I see how much better i've become at programming so improving my past mistakes is very rewarding but only if I've got the time alotted which is very very rarely unfortunately.

57

u/Jdonavan Nov 29 '15

My problem with legacy is that it is never treated as "putting things in order". When i'm asked to make a change to a legacy system it's only ever treated as if you're going to to apply a quick(usually poor quality) fix that will only serve as a bandaid until it breaks again

But that's because your your corporate culture. Not because it's legacy code.

16

u/bilog78 Nov 29 '15

But that's because your your corporate culture. Not because it's legacy code.

The thing is, corporate culture is the only one that cares about legacy code. Outside of corporate culture you mostly have start-ups with the attitude shown in the article (“if you have legacy code, you're doing it wrong”) and FLOSS project with the Cascade of Attention-Deficit Teenagers and their “let's rewrite everything from scratch every two year”.

It's extremely rare to find a context which is interested in maintaining legacy code in a “programmer-positive” manner.

2

u/[deleted] Nov 29 '15

Core FOSS projects care about this. See the Linux kernel for how this is done correctly (and now sometimes being criticized because of the tone being used to do it correctly).

2

u/bilog78 Nov 29 '15

Core FOSS projects care about this. See the Linux kernel for how this is done correctly (and now sometimes being criticized because of the tone being used to do it correctly).

I wouldn't classify the Linux kernel as being “legacy code”. On the contrary, it's extremely dynamic and evolves at an incredible pace, and from the driver perspective it's consistently unstable, API- and ABI- wise, so you can never expect an out-of-tree driver written for version X to even build, let alone run, with any other version of the kernel. But it is true that it is one of the (sadly few) FLOSS projects that holds the tenet of (trying to) never breaking the user experience —as long as your hardware is supported in-tree.

2

u/[deleted] Nov 29 '15

To me the Linux kernel is the very definition of "actively maintained legacy code".

The hub-bub I referred to was in direct reference to trying to set a culture to not break things outside the kernel, while still making progress on the kernel.

→ More replies (4)

2

u/gasche Nov 30 '15 edited Nov 30 '15

Let me disagree. I contribute to the OCaml compiler (the compiler distribution of the OCaml programming language), which is a free software project with a culture very different from what you are describing now. Programming language implementations have strong backward-compatibility requirements (user code must keep working), so big rewrites must be done very carefully and gently evolving existing systems is strongly favoured. A part of the development activity is about evolving rather old code (initially written in the 90s) in a tasteful way, and it's actually very interesting -- most of the code is fairly clean, old code is not very different from recent code. Other FLOSS projects that I interact with or see around have a similar emphasis on long-term compatibility and careful evolution of the code.

Your vision may be influenced by desktop software (KDE, Gnome) that has very different software lifecycles. One problem with "fashionable" UIs is that you need to change deeply every few years; also, the needs of desktop users keep changing rather fast, for example with the cloud synchronization, or the desktop-and-mobile hybrids that are being worked on now. But even those projects have managed to build software islands inside the project that are stable and carefully maintained -- consider GStreamer or Krita for example (both started in 1999).

→ More replies (2)