Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

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

Submissions

comment 3y ago · link · parent

Don’t. Measure (income - cost) instead. You are running a business after all.

comment 3y ago · link · parent

“The Goal” is all you need.

comment 3y ago · link · parent

What an excellent answer. Nailed it!

comment 3y ago · link · parent

Legacy means highly valuable and proven. Non-legacy means unreliable and highly unlikely to ever make money. Legacy software runs the world. Without it western civilisation would collapse.

comment 3y ago · link · parent

Most devs use Kanban where I work. It’s simple. It works.

comment 3y ago · link · parent

I used to love Skype. Then Microsoft took it over. And it started falling apart. Now I can’t even remember the last time I used Skype.

comment 3y ago · link · parent

There is no new tech in software. Just rehashings and rebranding of old stuff. Different flavors but the same icecream.

So pick a flavor you like and stick with it.

comment 3y ago · link · parent

Nope. Cryptography code should be written using proof assistents. Proving the correctness of the code.

Like the Everest project.

comment 3y ago · link · parent

C++ is not for everybody. However it is one of the most successful programming languages in history. And there is a reason why. You might not personally be able to understand or appreciate why it is so successful of course. But that doesn’t change the fact that C++ runs the world.

comment 3y ago · link · parent

You are using the word Axiom in a non-standard way.

Can you give an example of how you would state an Axiom in Haskell? Here is an example of how it is done in LEAN:

axiom propext {a b : Prop} : (a <-> b) → a = b

It declares Propositional Extensionality to be true with no evidence/proof.

comment 3y ago · link · parent

The most successful companies I have worked for in my 30+ years career built most of their tools internally. It gave them a huge competitive advantage.

The worst companies I have ever worked for didn’t have the skills to do it.

So yet again it depends on the quality of your developers. Not how you do things.

comment 3y ago · link · parent

A quick summary:

1. You read the source to build a model (theory) of the application in your head.

2. You use the model (theory) to work out a solution.

3. You then translate the abstract solution into actual code.

My experience:

Mastering step 2 makes all the difference when it comes to writing high quality software fast. The best developers I have ever worked with master step 2 and typically spend more time doing step 2 than inexperienced/bad developers. The result is typically much simpler solutions that can be built fast and require less maintenance. Basically the more time you spend on step 2, the faster you write high quality code.

comment 3y ago · link · parent

Haskell isn’t powerful enough to prove your code correct. Agda/Idris/LEAN/… is what you want.

comment 3y ago · link · parent

So is alcohol, cigarettes, cheap credit, factory work, cheap fashion, gambling etc. etc. etc.

comment 3y ago · link · parent

You mean the same way alcohol, drugs, sugar, gambling, cheap credit etc. are marketed?

comment 3y ago · link · parent

I agree. Maintenance work is hard. Writing new code from scratch is easy.

At work we put the smartest most experienced people on maintenance work. Because it is the lifeblood and cash flow of the company. It directly pays the salaries of people working on new software that might never make a profit!

comment 3y ago · link · parent

Great article. Maintenance work is what keeps things working day after day. It is way more important than novelty.

comment 3y ago · link · parent

I like Rust. It adapts a lot of nice features that C++ is lacking.

However it doesn’t solve any problems I have at work. I routinely deploy very large C++ applications to large international companies around the world.

And I haven’t had a memory or multi-threading problem causing any production issues for as long as I remember. I routinely use Valgrind and Helgrind to make sure it stays that way.

However I do have 9000+ auto tests that push the code way beyond any possible real life customer use cases. Enabling me to make major changes and optimizations to the code and drop it into production with confidence. I haven’t had a production bug for 5+ years.

Switching to Rust won’t change that. I would still need those 9000+ tests to make sure my Rust deployment would be error free.

So my point is this: No programming language will magically make your code bug free or eradicate the need for you to use sound software engineering practices like comprehensive auto tests.

There are of course languages more powerful than Rust that will allow you to write proven correct bug free code (Agda/Idris/Coq/..) However those languages won’t prove that your code has the performance and latency needed in a real world environment for example.

So I would rather spend more time polishing and improving my auto test skills rather than investing in switching languages. My ROI will be way higher.

If reading this makes you angry and eager to defend the honour of Rust and discredit what I am saying, please understand that I have nothing against Rust. This is more a summary of my current thinking on Rust and any other new programming language wanting to take over from C++.

I would love to hear the thoughts of other experienced C++ developers who are responsible for very large C++ applications used by real customers.

comment 3y ago · link · parent

I f*** hate it when tech companies try to play the role of moral authorities. Just because some journalist tries to score easy click points talking about porn.

comment 3y ago · link · parent

Wow. Most comments in this thread get it completely wrong. The article is about simplicity of implementation not simplicity of features.

Given two different implementations of software, that gives users the exact same features, you will often find that one implementation is simpler than the other. Using less libraries, a simpler build system, less code etc. That’s the kind of simplicity we should strive for. Not software with less features.

comment 3y ago · link · parent

Yep I completely agree. Languages and tools definitely help. But it only solves a small percentage of the important problems IMHO.

comment 3y ago · link · parent

I routinely deploy very large C++ applications used by international airlines around the world. And I haven't had a single bug in production for 5+ years. Not even one.

The secret is 9000+ auto tests pushing the code way beyond real world usage.

Changing from C++ to another language won't change the fact that those tests are needed. Memory leaks and multi-threading issues are simply non-issues for me. I use tools like Helgrind and Valgrind to find and fix those.

In other words, new languages like Rust doesn't solve any problems I have.

There is no silver bullet.

comment 3y ago · link · parent

> but that doesn't mean you shouldn't try to improve them

Nobody suggests you shouldn’t. Stroustrup has spent most of his career working on improving C++.

You are reading way more into his comment than I think was intended or implied.

C++ is one of the most successful programming languages in history. There is a reason why.

comment 3y ago · link · parent

Java is one of the most successful programming languages ever created. So yep.

comment 3y ago · link · parent

Here is a tip for making your software development organisation 10x more productive:

Fire 50% of middle management. Use the money saved to hire more developers.

You are welcome.

comment 3y ago · link · parent

There is zero correlation between IQ and wealth.

comment 3y ago · link · parent

Badly written C++ will be as slow as well written Java. Absolutely. But there is no way any Java code will perform better than well optimised C++. High performance C++ use custom allocators to completely avoid using malloc (for example).

comment 3y ago · link · parent

There is no universe where well written and optimised C++ code will be out-performed by Java code. You might get similar performance in Java if you create zero objects (except during initialisation) and then manually manage the usage of objects at runtime. However only if the matching C++ code is written naively.

comment 3y ago · link · parent

New large scale C++ projects are started every single day. There are more than 5 million C++ programmers out there. Compared with that Rust is but a drop in the ocean.

comment 3y ago · link · parent

Brand new software made yesterday is full of bugs and will kill or maim you if you try to use it for safety critical systems. I trust 10+ years old code that has been proven in combat. Not crappy new code written by some arrogant young “Ninja” who has no clue on how little he/she/it knows.
1
242526
116