2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions
comment 1y ago · link · parent
This is how I build large scale biz software (30+ years of experience). And I have never seen a case where it wasn't a good idea.
For example, the largest software system in the world (the internet) operate this way.
However I am always open to learn something new?
comment 1y ago · link · parent
https://leanprover-community.github.io/mathlib-overview.html
comment 1y ago · link · parent
So perhaps we should ask ourselves: What can we learn from the internet architecture?
And no that does not automatically mean micro-services. The core idea of the internet is to agree on API's (protocols like HTTP) and leave the rest as implementation details. You can do the same with modules, libraries, classes, files etc.
comment 1y ago · link · parent
AI's so far haven't been able to beat that.
However I have found AI's to be great when working with unfamiliar tools. Where the effort involve in reading the docs etc. far outweigh the benefits. In my case using AI's to generate JasperReports .jrxml files made me more productive.
comment 1y ago · link · parent
comment 1y ago · link · parent
2. Don't write tests for anything else.
If you are responsible for implementing a server/service, the API is the protocol for the server/service. If you are responsible for implementing a module/library, the API is the public interface to your module/library.
The tests are basically a specification for how any implementation of the API needs to behave. So you can give the tests to another developer, who has never seen your implementation, and they should be able to re-implement everything based on your tests.
comment 1y ago · link · parent
forall s:Source, execute_machine_code(compile(s)) = interpret_source_code(s)
And the compiler will only accept your compiler code as being typed correctly if for all possible source code, running the compiled code gives the same result as interpreting the source code directly.
In other words, you are proving your compiler to be correct. Think about it as having an infinite number of test cases in a single line.
Now that's powerful!
comment 1y ago · link · parent
Hand code everything, including the protocol encoders/decoders, dialogs etc.
Use a framework that is brand new and full of shiny new bugs you can spend months of enjoyable time fixing, until the framework is dropped by the developer(s) and you can recode everything to the next new and full of shiny new bugs framework. Repeat infinitely.
Also pick a shiny new programming language FooBar, to write both the server and client, that "really soon now!" will have all the libraries and bug fixes you need to use it in production. Spend time writing all the missing libraries and contributed it to the 5 other developers using the language. Spend hours complaining on HN that other developers are too stupid to realise the obvious benefits of rewriting everything in FooBar.
comment 1y ago · link · parent
A "Reactive system" is basically a "Transactional system" that in addition takes a system state as input and returns a (updated) system state as output:
reactive_system : (State * Input) -> (State * Output)
Which makes it identical (from a formal point of view) to a "Transactional system".
comment 1y ago · link · parent
The hardest to learn for me was Haskell. Because of how different the thinking behind the language is. But it was great to learn even though I don't use it daily.
I highly recommend learning different programming languages. It's a great way to get exposed to different ways of thinking about how software should be developed.
comment 1y ago · link · parent
1. I use a custom code generator to generate 90%+ of the code I need from a declarative spec.
2. The remaining hand written code is mostly biz logic and it is exhaustively auto tested at the server API level.
3. I maintain and "bring along" a large library of software tools "tested in combat" I can reuse on new projects.
4. I have settled on an architecture that is simple but works and scales well for the small to large biz applications I work on.
5. I constantly work on removing complexity from the code, making it as easy to understand and modify as possible.
comment 1y ago · link · parent