2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
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
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
comment 3y ago · link · parent
comment 3y ago · link · parent
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
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.
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
comment 3y ago · link · parent
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
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
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 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