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

I disagree. The more dependencies I remove, the less of a maintenance burden the code I maintain is. I am maintaining very large scale C++ code used in production every day by large multi-national companies. And have almost zero maintenance work.

comment 3y ago · link · parent

Yep. This always happens in my experience. Or there is a bug fix or feature you badly need and it will never happen for various BS reasons. So now you either have to rip out the dependency and start all over or start maintaining a massive pile of garbage software that you didn’t even write (assuming you can even get access to the code).

comment 3y ago · link · parent

What makes you think that developers writing Commercial or Open Source libraries that you depend on are any better? Most software code is pretty bad. There aren’t many good developers out there. I would guess one in 20 maybe (30+ years of experience working for software companies in 5 countries).

comment 3y ago · link · parent

> Find the dependencies — and eliminate them

One of the smartest things you can do in software development. In my experience, 99% of problems are caused by dependencies. Code that I wrote 20 years ago still works today. With no drama, no upgrade issues, no political BS, no waiting forever to get a simple bug fixed etc. The more dependencies I remove, the more reliable and maintainable my software is.

For example: I am currently the maintainer of very large scale mission critical software written in C++ used by enterprises around the world. And I have reduced dependencies to almost zero. The result is zero bugs in production the last 5+ years. And zero maintenance pain. The result is that I spend close to 100% of my time adding features, improving performance etc. and close to 0% of my time dealing with dependency bugs/issues/open source politics/BS etc.

It’s a great place to be!

comment 3y ago · link · parent

Any examples of Category Theory being used to implement practical software?

comment 3y ago · link · parent

I use tests all the time when implementing new features I haven’t implemented before. It makes me think about the API before implementing it and gives me a way to auto test it which is excellent.

comment 3y ago · link · parent

Eh? You can’t prototype or explore if you have no idea what you are building. You obviously have some idea (3rd person shooter or accounting system?) but might not be sure how to organize your code.

However well written tests are independent of how you organize your code or any other implementation details. So tests are great even when you are just prototyping or exploring. You can rapidly change your code and have the tests ensure that it still works the same way. And the end result is a fully tested, easy to maintain code base. What’s not to love about that?

comment 3y ago · link · parent

Code style has zero to do with how good a programmer is. Good programmers structure and architect their applications well. Bad programmers doesn’t even have a clue what that means.

comment 3y ago · link · parent

A team at work is maintaining a 30+ years “CRUD” application. The amount of complicated carefully maintained business logic the application contains is breathtaking. Yes it is a “CRUD” app but it would take many many years to recreate it. And look at SAP. It is also a “CRUD” application. But there is nothing simple about SAP.

comment 3y ago · link · parent

Bingo. Welcome to the world of office politics!

comment 3y ago · link · parent

I highly recommend the book “Body by Science”. I have followed it for months and my strength has more than doubled. Spending only 15 minutes a week in the gym. Yes fifteen minutes. Once a week. The book explains why it works. The actual exercises is only a few pages. Perfect for anybody who hates going to the gym and/or can’t do cardio.

comment 3y ago · link · parent

My experience exactly using any untyped programming language. Fun for small throw away projects but not for serious large scale software that large corporations rely on.

comment 3y ago · link · parent

The worst WTF code I have ever seen in my 30+ years career is a 20+ years old micro-services system. More than 150 (!) services creating a level of incomprehensible complexity and crazy failure scenarios that is breath taking to watch. Imagine the worst spaghetti system possible but distributed! I feel very lucky to just be an eye witness and not having to actually work on the project.

Seriously if you don’t know how to write a well structured easy to maintain monolith (using API’s and libraries to clearly separate components) then the worst thing you can do is to choose micro-services. You go from having N problems to having N^M distributed problems with a whole bunch of added failure scenarios you now have to deal with. Crazy!

And it gets even more WTF when different services are written in different programming languages, using different build tools, with service teams not coordinating their development plans or protocols etc.

comment 3y ago · link · parent

The key difference is that with proven correct code you actually have a formal spec you can prove properties about. Without proven correct code you don’t even have a formal spec. Just a bunch of random tests (if you are lucky) that may or may not match your informal spec.

And the argument that if you can’t prove your design correct then there is no point proving your code correct is a strange one. That’s like saying that there is no point writing tests because you can’t prove your design correct or guarantee that all tests needed will be written. Ehhhh nope. I have written and generated more than 9000 tests for a very large scale C++ applications that are used by large corporations around the world. And I haven’t had a bug in production for 5+ years. However I of course can’t prove that those tests cover everything or that my design is correct. But that doesn’t mean it isn’t worth doing.

comment 3y ago · link · parent

That very much depends on the type system you use. With (for example) refinement types and dependent types you can prove your code correct with zero tests needed. Examples are F*, Idris, Agda, Coq etc.

946.

FastVer2: A Provably Correct Monitor for Concurrent, Key-Value Stores (2022) [pdf](fstar-lang.org ↗)

2 points · by deterministic · 3y ago · discuss

comment 3y ago · link · parent

I agree. My conclusion is that he is delusional. There are quite a few crazies on the internet who claims to be just on the brink of a major breakthrough. But they never actually get there. However it is much harder to tell with wolfram because he has actually achieved things in life.

comment 3y ago · link · parent

Agree. I haven’t seen a single practical example of Category Theory being used to come up with a solution that was better than a solution not inferred from Category Theory.

comment 3y ago · link · parent

Removing a layer of middle-managers will almost guaranteed improve the performance of any company.

comment 3y ago · link · parent

It’s all proprietary unfortunately. However the Doom C code available online is nice and clean.

comment 3y ago · link · parent

Yep productivity is a complicated tricky subject. And yes if your work generates zero $ then your productivity is zero by my definition. Or actually negative if you spent money doing it. This is because I am thinking like a business person.

However you can use other definitions of productivity of course. You could define it to be issues fixed per month for example. However that is even more tricky. Because different issues require different skills and effort. And to make it even more complicated, an issue that is easy for Ada to fix might be hard for Bob. Simply because Ada have fixed similar issues before. So Ada using C++ might be way more productive than Bob using Python. But that doesn’t prove that C++ is more productive than Python of course.

Which is why studies using the same people to solve the same problem twice using 2 different languages to “prove” that language A is more productive than language B is non-scientific BS. Obviously solving the same problem the second time gives you a huge advantage. No matter the language you use. And obviously the people involved will know one of the languages better than the other. Which again makes the whole experiment non-scientific BS.

So yes productivity is a complicated slippery tricky thing to nail down. We all think we know what it means but the more objective/precise we try to be the more slippery and complicated it gets :)

comment 3y ago · link · parent

Beautifully written and excellent interactive illustrations. Bravo!

comment 3y ago · link · parent

The productivity I am talking about is $ generated per time/cost. Not what you call “language productivity”.

For example, you will be more productive using C than (say) Python if your Python solution requires more servers to run than your C solution. Even if it took longer to write the C solution. Because the long term cost of the servers will be higher than the development cost. Which is why Google and other companies often rewrite code that already works to C++.

Another example is that you will be more productive using C# and the Unity game engine to write a commercial game than (say) Python. Because the Unity engine takes care of all the hard stuff you would otherwise have to write yourself in Python.

And you will be infinitely more productive using C to write a hard real time kernel than Python. Since Python is too slow unless you pretty much spend all your time calling C code to make it fast enough. Heh I can just imagine somebody trying to convince Linus to rewrite the Linux kernel in Python to be more “language productive”. That would be a very short conversation :)

So your comments might be true or not but that’s besides the point. I simply don’t care about “language productivity”. I care about real measurable productivity. The kind of productivity that the CEO of a company recognises.

comment 3y ago · link · parent

That might be true for some developers in some contexts, but it has nothing to do with the point I am making.

comment 3y ago · link · parent

Some of the cleanest code I have ever seen was written in C/C++. And some of the worst spaghetti-code I have ever seen was written in C/C++.

Bad developers write spaghetti-code. Languages don’t write anything.

comment 3y ago · link · parent

I am always surprised when I read this kind of article. In my mind a good software developer will figure out how to be productive and get things done in any programming language.

I have often worked with programming languages, editors, operating systems etc. that weren’t my #1 choice. However I have usually been happy and productive, using code generation, editor tools or whatever to automate the things I don’t like.

You love Lisp and hate Java? Great! Use it to generate the Java code you don’t want to write. And be smart. Don’t tell management you are using Lisp. If they ask why you are 10x more productive than anybody else, just say you are using a code automation tool to be more productive. Which is true! Or simply shrug your shoulders, and humbly say ”years of experience” :)

The developers I admire and want to hire are the ones that can be thrown into a shitty disaster area where everything is broken, and all the tools are unfamiliar and crappy, and still somehow manage to turn it around and fix it. They are f*** heroes. The software developer equivalent of the Navy Seals.

comment 3y ago · link · parent

I use a stop watch and take a break every hour. I do some light exercises, drink water, go for a short walk etc.

I ended up being more productive doing this. Because it gives me time to take a step back and think about what I are working on. I often find solutions to problems while taking a break.

comment 3y ago · link · parent

I highly recommend reading “Body by Science”. It shows how you can improve your overall muscle strength spending just 15 min in the gym once a week. Perfect for people like me who hate going to the gym. It’s simple. It works. I am 50+ and way stronger now than I was before.

comment 3y ago · link · parent

There is no such thing as “no architecture”. You will always have an architecture no matter what you do. So better think about what you want the architecture to be or you will end up with the “mud pile” architecture most software has.
1
313233
116