2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions
comment 2y ago · link · parent
1. You should be able to recreate the complete business state from the complete event sequence only. No reaching out to other servers/servies/DB’s to get data.
2. The events should be as small as possible. So only carry the minimum data needed to implement rule #1
That’s it. It works really well in practice.
comment 2y ago · link · parent
I usually just maintain a priority list and work on (or assign) whatever is #1 priority. It’s simple. It works.
It means I never say no. I just negotiate where to put it in the priority list. It’s a great way for people to realise the trade offs of what they are proposing.
comment 2y ago · link · parent
Old typically means fully bug fixed, with known limits and work arounds, and lots of examples to learn from. And a long track record of solutions using it.
New typically means full of bugs, unknown limits and work arounds, and very few examples to learn from. Plus a high chance of being abandoned and not supported 6 months or a year from now.
Given that, why on earth would you ever choose New over Old? Unless it is for fun personal projects.
comment 2y ago · link · parent
New issues are added to the list based on priority. And only “emergency” issues can pause current work to be paused.
Everything else is done face to face as needed without formal meetings.
It’s simple. It works.
comment 2y ago · link · parent
The same way that types work well for most developers but not for others: Different brains and personalities operate differently. We are not all the same.
For that reason, I am sure 50 years from now there will still be Lisp enthusiasts absolutely believing that Lisp is facing a bright future and will be adapted by the majority of developers any time soon :)
And that’s fine. Choose the tool that works for you and make you happy and carry on :)
comment 2y ago · link · parent
The latest example I noticed is a colleague at work who spent more than a year hand converting thousands of SQL scripts from Oracle to Postgress. Instead of simply parsing the Oracle scripts and auto translate them.
Another example I have seen are developers hand coding messages and message protocols and DB schemas etc. instead of auto generating everything from a declarative spec.
Hot tip: Almost 90% of the code you need in a typical biz applications can be auto generated. Yes it does require that you think hard about the architecture you use. But it is worth it!
A third example I have noticed are developers spending years rewriting their code to work in the cloud, followed by years of work rewriting the code away from the cloud because of cost. We are talking years of wasted work.
A fourth example is a developer painstakingly hand converting a Java protocol to C++ instead of using Java reflection to automate it.
I could go on and on and on. It’s crazy.
comment 2y ago · link · parent
It is so expensive and slow that it would be much cheaper, faster, and actually safer to prove the software correct using modern proof assistants.
Projects like seL4, CompCert etc. shows how it should be done.
comment 2y ago · link · parent
There are two types of objects: State objects and Tool objects.
The purpose of a State object is to maintain a state. Think strings, databases, files etc.
The purpose of a Tool object is to operate on State objects. Think loaders, printers, editors, transformers etc.
It’s a simple way to organise OO code. And it works. At very large scale (millions of lines of C++).
It is similar to the functional Data/Function thinking. However it actually works better because State objects can enforce constraints, and Tool objects can cleanly maintain an internal temporary state while operating on State objects.