35 points · by rmanolis · 2y ago · 53 comments
Static constraints like types can also be also good, where types are good.
I applaud anyone who advocates to focus on the unhappy path over the happy path.
On a side note 25 years ago was the end of the dot.com and the height of the y2k scam and I have never seen developers more burnt out than then; but that’s because I was just starting my career then. I don’t know about previous eras like the 89 crash and recession.
I am not sure why the OP has rose coloured glasses of the past. But it’s always good to treat history with a little more interest.
Also in a similar regard your article mentions other things like microservices being the root of all evil so to speak and you need to know multiple services.
When in fact microservices are meant to do the opposite. You are supposed to be able to focus on just your service and what it needs to do and make it do it well. Instead of having to wade through a huge monolithic and probably very interwoven code base. We can of course talk about whether microservices achieved that goal.
They are not fundamentally different from having worked in large enterprises 25 years ago where you would've encountered many many different services making up your application landscape. It was probably using SOA and the services were deployed to a bunch of application servers like an IBM WebSphere and those services might be talking to other services incidentally deployed on some JBoss app servers and they'd talk via message passing via a queue (JMS comes to mind but other ways existed).
today fullstack developers have to pivot between 2-3 languages on the same day
All the SOA back then was JAVA, they had just different types of HTTP servers to run JAVA
Secondly, companies need to realize that they request multiple programming languages because the current programming languages can't parse stack traces, and they push everything to microservices, so they can parse their errors from DevOps services. Which means they don't request only to know multiple languages, but also DevOps services.
I have written about all these in a previous article of mine https://rm4n0s.github.io/posts/5-it-will-take-your-job
Vectorization, more cache levels, branch prediction, multiple cores and processors, gpu, virtual machines, (operating systems, but they didn't change much, I only let the placeholder for the layer), containers, but all that in the cloud, distributed databases, frameworks written in a language that need to be compiled to a language that is actually implemented by a web browser in the client (we are far better on compatibility between browsers, but much libraries or practices keep stuck in the past).
I haven't touched shift in practices that make it far worse.
That make it more unreasonable.
Because the option to parse stack traces from the programming language itself, it will destroy what ever built on or for microservices
php apache mysql linux
it was so small we could put it into an acronym.
Meanwhile in 2024 you could barely begin to even describe any individual layer of the stack with so few words. You'd be out of breath before even beginning to finish describing React.
(btw it's silicon, not silicone).
You thinking in DDD because in CDD there is no domain logic. Everything is part of stack trace tree
For some “can't” statements, you don't need to write any error.
The “can't” statements in CDD are for actions and input that you could take, but the software deliberately prevents you from doing them.
There are no actions or input, requested from the exercise that make it possible to do the list you gave me, so it does not make sense to create an error for them.
Not being able to quickly think of more test cases for whatever you're trying to test at any given moment does not prove anything. You also seem to be very hung up on something about stack traces that I'm really not able to figure out what it really is, even though you keep mentioning it.
It architects the code from the errors by following specific rules
or, #ifndef GONE is more powerful/flexible than #ifdef PRESENT
Of course, sometimes one wants exactly that specific things that positive assertions do. But IMO that's rarely the case, it's just going positive seems simpler/easier to think of.
one may say, in some system of rules, "Dont's" are more usable than "Do's". Think cultures..
From what I understood it seemed like you listed a collection of requirements for TDD failure cases, named them "can't" statements and then did TDD on them. But I believe there is more to it, but I couldn't see it.
Could you list the types test cases you would have created if you had done TDD on this same problem? And how they'd be different?
In CDD, I created first the software design by translating "can't" statements to errors and then iterate over the errors following specific rules to create a tree of stack traces that created the software design and then I TDD over that design to complete the application.