a sane language
JavaScript
Pick one.
a sane language
JavaScript
Pick one.
Thinking about C# and Dapper here 'cause they’re what I’m used to, but, for example…
result = await connection.QueryAsync<ResultType>(QUERY);
(where ResultType
is a statically typed record, class, or struct shaped like the data you want returned.)
Given a query that doesn’t return something that matches any of ResultType
’s constructors, the code’ll throw an exception at runtime complaining it needs a constructor that matches whatever it’s returning, whereupon you’ll notice it isn’t asking for it to have a date
parameter, so the query must not be returning it.
That’s when rubber duck debugging comes in handy.
first time you use it the language automatically makes the variable and default value
Now, that’s just evil. 😨
The difference between experienced devs and non experienced devs is that when seeing “the experience that made me hate programming” and “date” in the same post experienced devs just stop reading (mostly due to the PTSD hit) and assume it must have been some date format issue or shudder timezone shenanigans between the database and the programming language…
It’s scary as fuck, yeah, but, to be fair, it’s only intended to be used by code generators, and it’s quite awkward to use outside of them.
Huh. Maybe it’s NoScript, then.
Looks fine on Firefox on Android with uBlock Origin. 🤷♂️
But that’s how you learn!
implemented in the real world
They never were intended to. They were specifically designed to torment Powell and Donovan in amusing ways. They intentionally have as many loopholes as possible.
first three
No, only the first one (supposing they haven’t invented the zeroth law, and that they have an adequate definition of human); the other two are to make sure robots are useful and that they don’t have to be repaired or replaced more often than necessary…
Lisp?