2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions
comment 3y ago · link · parent
https://softwarefoundations.cis.upenn.edu/
With the added bonus that you learn how to prove software correct.
comment 3y ago · link · parent
So “infinity A is bigger than infinity B” could be translated to:
For all N, N > c => countA(N) > countB(N)
where c is a constant and countA/countB is a lower bound of the “size” of A/B.
comment 3y ago · link · parent
I don’t care about the details of your API. I have worked with API’s that triggered a WTF every 5 secs. But I don’t care. I figure it out, build an abstraction on top that makes sense to me, and move on with far more important things.
So do what Linus does with Linux. Don’t f* break clients! Add a separate new API instead or expand the old API with additional entry points. Never ever deprecate anything in your API!
API developers that think it makes sense to break all clients, and force those clients to make changes, just because they wake up one day thinking that renaming FooBar to BarXk is a good idea, makes me want to throw my PC out of the window.
And who actually thought that marking things “deprecated” is a good idea? It is still an API change. With annoying warnings/errors added as a bonus.
Don’t. Do. It.
Use your brain to figure out how to accomplish the same task without breaking clients. The Linux guys can do it. So can you.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
It is quite simple though:
1. Decide on an architecture that scales well.
2. Redesign the architecture to maximise opportunities for auto generating code/schemas/protocols/client/server/DB etc.
3. Define your actual application in a declarative language. I use my own custom language but you can use JSON/YAML/…
4. Write a generator that reads the declarative files and generates as much of the code needed as possible to implement the application.
5. Hand code what remains (basically the core biz logic).
That’s pretty much it. I have done this exercise more than 9 times and I learned a lot doing it. I highly recommend giving it a go yourself. You learn a true super power and it is great fun.