News for hackers. Stuff that matters.
Re:Things I’ve learned in my 20 years as a software engineer by scottious on Friday October 08, 2021 @08:18AM (#28798373)
> I’d rather someone give me opinions that I violently disagree with than for them to have no opinions at all.

I've been a developer for 15 years... anybody else feel like the further they get into their career, the more they want to keep their opinions to themselves?

I feel like as a junior dev I had way stronger opinions and I was a lot more vocal about them. Now, I still have opinions, but I've learned that nobody gives a damn about my opinions so I just keep them to myself.

Re:Things I’ve learned in my 20 years as a software engineer by marcus_holmes on Friday October 08, 2021 @11:34AM (#28800404)
No, I've been doing this for ~30 years now and I have really strong unpopular opinions on things. Like:

- NPM/Yarn/Gems etc is a disaster waiting to happen. Having lots of dependencies is a security nightmare and a maintenance issue. As these projects get dropped by their original maintainers we'll start seeing more supply-side attacks and more vulnerabilities going unpatched.

- Docker is a great solution for a specific problem. But I don't think it needs to be used for everything. Same for K8s. Same for microservices architecture.

- Simplicity is an important design goal for all systems. Complexity breeds bugs. Boilerplate is simple. DRY can be taken too far. Every abstraction layer leaks at least a little. "clever" code is usually not what is needed for reliable software.

I expect to get downvoted because these are unpopular opinions. But I'm used to arguing about them. It's always interesting to discuss.

Re:Things I’ve learned in my 20 years as a software engineer by ryandrake on Friday October 08, 2021 @11:48AM (#28800561)
Those seem like pretty unobjectionable opinions. Have an upvote!

You want a controversial opinion (on HN), how about mine:

"It's not always a good tradeoff to throw something under the bus to save developer time."

So many important things are routinely sacrificed at the altar of developer speed and comfort, app runtime performance being the big one. It's used to justify all sorts of crazy things we do in modern software to ship faster, but so hard to push back on because developers are expensive and software needs to be done yesterday.

Some things are worth giving up so that developers can move faster, but I argue not everything. Need to evaluate case by case.

Re:Things I’ve learned in my 20 years as a software engineer by marcus_holmes on Friday October 08, 2021 @07:27PM (#28805352)
Have an upvote yourself! yes, totally agree.

Like Wordpress optimises for edit functionality, at the expense of render speed. Most of the internet is now slow, optimised for Susan From Marketing because they don't know how to edit HTML.

Same for Ruby/Rails, same for Python/Django, same for Node/whatever. Web pages render slower so that whoever edits them can do that faster.

This isn't good.

Re:Things I’ve learned in my 20 years as a software engineer by ItsMonkk on Friday October 08, 2021 @02:02PM (#28802186)
Last month I ran into The Principle of Least Power, and it's grabbed me and the more I think about it, the more it expands. I think all of your statements lines up with this principle, except one.

Containers are a simpler solution than Operating Systems. Operating Systems is a tightly bound non-simplistic system that breeds complexity, just as you state npm does. Because those interfaces are tightly bound, we were not about to build on top of them. Almost immediately after we got Docker, we got K8s. Once we got Docker we got the ability to manage these things at a higher level. That's the mark of a more simple solution.

Are there things that Docker can't do? Are there things that require so much performance that Docker can't handle it? Only then should you step back to the more powerful solution.

Not to say that there aren't problems with Docker. Dockerfiles have a lot to improve. Running containers has a lot to improve.

I think. I'm still at a state where I might change my mind. It's partially why I'm posting this.

[0]: https://blog.codinghorror.com/the-principle-of-least-power/

Re:Things I’ve learned in my 20 years as a software engineer by marcus_holmes on Friday October 08, 2021 @07:23PM (#28805304)
yeah, no. Containers run on top of Operating Systems. They inherit everything that the underlying OS has. They're not simpler, they're actually more complex, but pretend to be simpler.

What you're thinking of is Unikernels. These are simpler than OS's. And yes, Unikernels are a good alternative to containers for a lot of applications we currently use containers for.

Re:Things I’ve learned in my 20 years as a software engineer by ItsMonkk on Saturday October 09, 2021 @11:30PM (#28815510)
Appreciate this response. Thanks. Totally agree now that I see your perspective.
Re:Things I’ve learned in my 20 years as a software engineer by sangnoir on Friday October 08, 2021 @02:11PM (#28802281)
> Simplicity is an important design goal for all systems. Complexity breeds bugs

Counterpoint: some problem-spaces are inherently complex; most problem-spaces have hidden complexity. Complexity cannot be removed, it can only be moved up or down your tech stack, and obviously, you can needless add more complexity.

Docker, K8s and the like are perfectly fine when they fall below your project's complexity floor - they are good place to shift your complexity to as they are battle-tested and well-documented. If your projects complexity floor is lower than docker/k8s, then integrating them will just increase your solutions complexity needlessly.

Re:Things I’ve learned in my 20 years as a software engineer by marcus_holmes on Friday October 08, 2021 @07:31PM (#28805399)
Totally agree. Some problems are complex. However, that does not mean that the code needs to be complex. Simplicity should still be a design goal even if the problem space is complex.

I don't really agree that there is a "complexity floor". Things can always be made simpler, up to the limit of the problem space. As you say, complexity can always be added. Most projects do this. Very few stick to the minimum complexity. The complexity floor for most projects is therefore way below where that line is normally drawn.

Re:Things I’ve learned in my 20 years as a software engineer by physicles on Saturday October 09, 2021 @12:24AM (#28807044)
> up to the limit of the problem space.

This is the key. One of the harder things to do in software design is to find a representation of the problem that gets closest to that complexity floor. It's often not obvious.

Re:Things I’ve learned in my 20 years as a software engineer by Fiahil on Friday October 08, 2021 @11:59AM (#28800702)
> I expect to get downvoted because these are unpopular opinions.

Well, not really. These opinions are very common among my peers. We sold multi-million dollar transformation projects with the stated goal of making things simpler and easier to use and understand.

Re:Things I’ve learned in my 20 years as a software engineer by travisgriggs on Friday October 08, 2021 @01:35PM (#28801818)
Fellow 30+'er here...

You had me at

> - Simplicity is an important design goal for all systems. Complexity breeds bugs. Boilerplate is simple. DRY can be taken too far. Every abstraction layer leaks at least a little. "clever" code is usually not what is needed for reliable software.

Nuff said.

Re:Things I’ve learned in my 20 years as a software engineer by klohto on Saturday October 09, 2021 @04:37AM (#28808080)
There are unpopular opinions? It’s pretty shared in the industry.
Re:Things I’ve learned in my 20 years as a software engineer by paxys on Friday October 08, 2021 @11:48AM (#28800563)
Quite brave to share these unpopular opinions like “npm is bad” on HN.
Re:Things I’ve learned in my 20 years as a software engineer by allenu on Friday October 08, 2021 @10:11AM (#28799482)
Same here. Been working professionally as a dev for 20 years and each year I care less and less about changing other people’s minds about architecture.

Just this year I was working with another team that wanted to move to an architecture that I thought was overengineered for their specific problems. They shared with me an article about some company that was using it. I explained my experiences with such a pattern and where the pitfalls were, hoping their lead dev would think about it or discuss the pros and cons. Well, it was met with silence. They went ahead with their plan anyway.

Too many times that’s happened in the work world, so at least now I don’t invest a lot of effort into changing minds. Best advice

I’ve learned these last few years is don’t tie yourself to your work. If you’re opinionated about how to do things because you love designing software, that’s great, but you’re setting yourself up to be disappointed by how things really get done.

Re:Things I’ve learned in my 20 years as a software engineer by jb3689 on Friday October 08, 2021 @10:43AM (#28799861)
All said and done I think you tend to learn that opinions are just that - opinions. Often a team doesn't need more opinions, they need to make decisions and come to consensus, so helping them decide on which opinion is best is more important than bringing yet another complicating-but-not-discussion-progressing vote to the table
Re:Things I’ve learned in my 20 years as a software engineer by davemo on Friday October 08, 2021 @08:26AM (#28798424)
It comes in waves. I'm in my 22nd year of developing software and I can reflect on times when I felt incredibly confident and didn't shy away from sharing my opinions, and other times when I felt like it was better to remain silent because I had things to learn from others.

There are times for both speaking and listening in our careers; as I've progressed further in my career I have felt it is often more valuable to exercise active listening.

Re:Things I’ve learned in my 20 years as a software engineer by d23 on Friday October 08, 2021 @10:27AM (#28799659)
I pick my battles pretty judiciously these days. I've learned that a huge amount of what people talk about doing ends up going nowhere anyway, so why burn the energy and look disagreeable? A lot of people with bad ideas also aren't very good at getting things done.
Re:Things I’ve learned in my 20 years as a software engineer by ozim on Friday October 08, 2021 @11:20AM (#28800251)
I think that is also because as a Junior one thinks that he should have opinions and be vocal about them and be right to further their career or to become Senior/Manager/Leader. Just like getting good grades in school you would have to put your hand up and tell that smart thing to the class/teacher.

After couple of years people realize that just having opinion and being vocal about it does not make one a Senior/Manager/Leader. There is much more to it and one learns about it on the job.

Re:Things I’ve learned in my 20 years as a software engineer by jimmyvalmer on Friday October 08, 2021 @08:35AM (#28798479)
Junior dev: Let's use this amazing algo I learned in school!

Senior dev: This won't work but it's no use explaning why since they've made up their minds (as have I).

Re:Things I’ve learned in my 20 years as a software engineer by JackFr on Friday October 08, 2021 @10:11AM (#28799480)
I got dinged in a 360 review by peers for not advocating for my views more.

I feel that if I present what I think we should do, and why I think it's the best alternative, I shouldn't have to get into a shouting match or even a debate. I don't take it personally if people disagree with me.

If I've got the best ideas and my managers are ignoring them for the loudest ideas, that's on them, not me.

Re:Things I’ve learned in my 20 years as a software engineer by noisy_boy on Saturday October 09, 2021 @07:03AM (#28808759)
Maybe they are pissed that they cant drag you in the failures by saying "even X had the same opinion..."
Re:Things I’ve learned in my 20 years as a software engineer by chronofar on Friday October 08, 2021 @10:56AM (#28800037)
Most people mostly care about his/her own opinions, and others opinions only insofar as they reflect on himself/herself (even though of course the others are also thinking about themselves mostly), we're hopelessly self-involved creatures like that. Nonetheless there is inertia and subtle shifts that can come from sharing them, and though it may often feel like coming up against a brick wall if you look in the right way you'll see the bricks may be aligned a bit differently, and you can trace some of those differences to opinions you may have expressed.

As always the wise approach is probably somewhere in the middle, in this case choosing your battles. You don't have to voice every opinion, but you shouldn't be silent if you have a strong and well-formed opinion about something important.

Re:Things I’ve learned in my 20 years as a software engineer by PragmaticPulp on Friday October 08, 2021 @10:34AM (#28799752)
Having opinions is good, but only if they’re genuinely informed opinions and everyone is willing to disagree and commit.

I’ve worked with too many people who think that their opinions are their identity and defended them as such. A difference of opinions shouldn’t become an excuse to go to war with your coworkers or argue endlessly instead of getting things done.

One of my worst work experiences was with a team of developers who were old friends from a college debate team. We could never have any productive discussions because they entered every conversation intent on winning instead of having an honest, productive conversation.

The best engineers I’ve worked with have had strong opinions but have also been happy and willing to go a different way if that’s what the team decides as a whole.

Re:Things I’ve learned in my 20 years as a software engineer by barbazoo on Friday October 08, 2021 @12:16PM (#28800941)
For me it's more a matter of putting those opinions into perspective. Example: I still highly value good API design but I'm not getting into debates anymore if an endpoint isn't RESTful or 100% consistent with every other endpoint. It's often just not that important at the end of the day.
Re:Things I’ve learned in my 20 years as a software engineer by stevage on Saturday October 09, 2021 @08:32PM (#28814671)
I mostly express opinions about things than affect my productivity. I don't care about npm vs yarn. It doesn't affect how I work. But I care a lot about not having excessively firm lint rules because they slow down my coding.
Re:Things I’ve learned in my 20 years as a software engineer by hereforphone on Friday October 08, 2021 @11:25AM (#28800308)
It's the same in any area of life and is called maturity.
Re:Things I’ve learned in my 20 years as a software engineer by dosethree on Friday October 08, 2021 @10:51AM (#28799960)
The longer you are in a career, the more you realize opinions are one of those things that always change (and should). Strong opinions weakly held
Re:Things I’ve learned in my 20 years as a software engineer by TameAntelope on Friday October 08, 2021 @10:05AM (#28799419)
What a depressing reaction to adversity. An alternative reaction is to try and figure out why nobody cared, and get better at expressing yourself in ways that people will care.