Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions

Submissions

comment 2y ago · link · parent

I read railroad diagrams just fine learning Pascal as a 12 year old.

comment 2y ago · link · parent

I read "Rich Dad Poor Dad" and follow the advise. It works.

comment 2y ago · link · parent

Python is mostly used as an API for interacting with high-performance libraries written in other languages. It is the BASIC of today.

comment 2y ago · link · parent

You are right. It should be called Computation.

comment 2y ago · link · parent

I am managing (among other things) a very large C++ library solving a very hard problem used by large scale enterprise software. The library has 9000+ tests. I haven’t had a bug in production for 5+ years. Despite making massive changes to the implementation details. I make changes and dump into production with zero worries. The productivity benefits of tests done well are amazing.

comment 2y ago · link · parent

Couldn’t agree more! Test the system from the outside. Don’t test the internals. It’s a waste of time.

comment 2y ago · link · parent

If you can’t build a high performance monolith with clean modular components then you will make an even worse job building a micro-services system.

The worst pile of garbage software I have seen in my 30+ years career is a micro-services system. With 150+ services making it nearly impossible to figure out why the software blows up in production.

The easiest to maintain almost-never-a-bug-in-production software I have ever worked with is a massive but well-designed million+ line C++ monolith.

No architecture pattern or programming language will guarantee a well designed system. Only a good team of experienced developers, who truly understand how to design software well, will create great software.

It’s a people problem not an architecture pattern problem.

There is no silver bullet.

comment 2y ago · link · parent

Everybody should already know this! Look at CMake, Ant, most Linux tools etc.

All starting out as simple DSL’s and then evolving into really badly designed obscure and WTF generating programming languages.

C++ templates is another great example of this. It is the worse functional programming language ever invented. An absolute pile of garbage that every new standard is trying and failing to fix.

comment 2y ago · link · parent

Violence or the believable threat of violence is unfortunately the only way to resolve a conflict between A and B when there is no third party C that can enforce a decision between A and B.

For example, national laws only work when backed by a credible threat of violence. Arresting people and forcing them to live in a prison or getting executed for breaking a law is an act of violence carried out by all governments.

comment 2y ago · link · parent

There is software that is profitable, and there is software that isn't. That's all I care about. The best developers think like biz people.

Software with "technical debt" that makes $millions is highly valuable. Software with no "technical debt" not making $ is sunk cost.

Assuming you are a pro and not a hobby/OSS developer of course.

comment 2y ago · link · parent

I am spending time educating myself. That is super valuable for me and opens up new career opportunities.

And yes it might also happen to benefit the job I do currently. But that is not the #1 priority.

comment 2y ago · link · parent

I love cold-blooded software and avoid unstable-ever-changing software as much as possible. Why? Because I can then focus 99% on delivering customer value instead of constantly rewriting code that used to work just fine but now doesn’t because some inexperienced snowflake narcissistic developer decide to make arbitrary changes to an API that worked perfectly fine for years!

Sorry a bit of a rant there. Unstable software makes me want to throw my PC out of the nearest window.

comment 2y ago · link · parent

If you deprecate an API used by other developers, then you should not work on API’s used by other developers. It’s that simple.

Yes it might save a bit of time for you, but it also potentially waste orders of magnitude more time for other developers. Developers who will positively hate you for forcing them to fix something that is not a problem for them!

Instead keep the old API working and make the path to upgrade easy and smooth. Your API users will love you for it.

comment 2y ago · link · parent

The worst WTF garbage software I have seen in my 30+ years career is an old micro-services system maintained by a team at work.

It uses more than 100 micro-services to implement a system that would have been so much simpler if implemented as a monolith. With hundreds of scripts to try and manage the complexity. With frequent timing bugs (a single micro-service delay causing a cascade of timed out micro-services bringing the system down) and almost impossible to fix complex error scenarios that will make experienced developer heads spin.

In contrast, the systems I work on are million+ lines C/C++ monoliths that are orders of magnitudes simpler to maintain. With orders of magnitude fewer bugs in production. All implemented as a collection of well designed libraries.

IMHO the moment you split a monolith into 100+ micro-services, the number of failure scenarios dramatically increase because of the added complexity of message exchanges, message failures, queuing delays, circular dependencies etc.

In other words, if you don’t even have the skills to implement a monolith successfully, then stay the hell away from micro-services.

comment 2y ago · link · parent

Nope. 30+ years software developer in industry.

Think about it as a hobby. Most people have time for hobbies. The rest spend way too much time on social media or watching YouTube. Manage your time better.

comment 2y ago · link · parent

Companies that doesn’t offer a flexible WFH policy will simply be less competitive in the jobs market. It’s a big red flag for me. It is a sign that the company has a bloated middle-management layer and does not prioritise the people who actually do the work.

comment 2y ago · link · parent

It’s simple really: write libraries and frameworks yourself and use them for real projects. It will give you a great understanding of what makes a quality library/framework and make you a better programmer.

comment 2y ago · link · parent

According to what evidence? I have worked with developers who later ended up working for Google and they were OK but not great. They didn’t stand out in any way.

comment 2y ago · link · parent

No AI needed. I use a custom code generator to generate 80% to 90% of the code I need in CRUD applications. And I can actually trust the code unlike code written by an AI.

comment 2y ago · link · parent

My experience as well. The more dependencies I remove, the fewer problems I have. It is a massive productivity boost.

Having said that, there are libraries there are high value/cost. So I keep those. But the dirty reality is that most libraries are pretty bad.

comment 2y ago · link · parent

A custom code generator. It generates 90+% of the code I would otherwise have to write by hand at work.

comment 2y ago · link · parent

Claiming that the small amount of $ handed out to people during the pandemic in the US (less than $2000?) enabled millions of people to retire is obviously silly. Which shows that the talking head is ideology driven (anti-government intervention) and not facts driven. Which makes the interview a waste of time. However the comments are spot on and worth a read.

comment 2y ago · link · parent

I just realised that the only game I have played in the last 6 months is Factorio. And I played it a lot. I have played games for 40+ years but never been that deep into a single game.

I have a mega base that I just keep maintaining and expanding. A bit like maintaining a garden I assume? It is super relaxing.

comment 2y ago · link · parent

I can afford to buy a house but it makes more sense economically to buy assets instead. A house is not an asset in my view unless you buy it to rent out.

And buying a house to rent out might not be the best way to invest long term.

I highly recommend actually sitting down and doing a detailed value/cost comparison of what makes most sense over the long term. The result might surprise you. It certainly surprised me when I did it.

comment 2y ago · link · parent

Excellent advise. What works great for you or your team won’t work well for somebody else. So be humble about declaring your way to be “The Way”.

For example, I prefer statically typed languages. It just works well with how my brain works. I am super productive. However I also understand that dynamic languages works better for some developers. That’s great! I will naturally seek out jobs and teams that prefer statically typed languages and they will seek out jobs and teams that prefer dynamic languages. No problem.

656.

Book notes: A Philosophy of Software Design (2021)(danlebrero.com ↗)

1 points · by deterministic · 2y ago · discuss

comment 2y ago · link · parent

A much better approach is outside-in. Start with the protocol a client (command line/browser/desktop) will use to communicate with your system and then implement each req/rpy in logical usage order.

And use auto tests to verify functionality. Having a test program running a full end-to-end req/rpy session checking all functionality makes the bug count approach zero.

I am maintaining large scale mission critical C++ applications using this approach. With zero production bugs for 5+ years.

And yes of course split the implementation into reusable parts as much possible. That is basic Software/System Engineering.

Claims that it can't be done in other languages than Lisp is absolutely BS. Linux (for example) is mostly a huge collection of reusable components written in C.

It works for any language/environment and is therefore a more fundamental technique.

comment 2y ago · link · parent

1. The less code I depend on written by others, the fewer maintenance problems I have.

2. Most developers 10x over-complicate solutions and spend 20x too much time implementing them.

3. Don't ever deprecate API's! An API is a contract that potentially thousands of systems or developers rely on. So find ways to move forward without breaking things. You are a pro right? So act like one. Linus gets it. Most don't.

comment 3y ago · link · parent

Agree. And if you hate going to the gym then I recommend the book “Body by Science”. It shows how to get stronger every week spending less than 30 min in the gym once a week. I have followed it for years now and it works. It won’t turn you into a body builder. But it will make you stronger every week.

comment 3y ago · link · parent

Companies that doesn’t offer WFH will simply be less competitive in the employee market. Which will have a medium to long term negative impact on revenues. The best developers I know refuse to work for companies that aren’t WFH flexible.
1
212223
116