I once heard an artist say (can't remember which one), that they loved playing in Europe, since everyone at a festival is there to have fun. While in US, everyone is there to look cool.
I know that many databases can store json, but i often have api's that i would like storing in tables, and feel that 'splitting it out' should be fairly trivial.
Each time i think about making a tool, i am put off by the fact that there is a voice saying 'someone will have done this, in a much better way than you!' :-)
EDIT:
Ignore that, i did that think where i didn't look at the link - this pretty much does what i would need
Because it works at changing their behavior.
Now we can argue the merits of positive reinforcement vs negative reinforcement all day. But when a technique is effective at changing unwanted behavior, then it will be used.
Punishments are absolutely necessary because some kids don't know when their parents disapprove of their behavior otherwise. I'm not talking about beating kids btw, I'm talking about scolding, "go to your room", and timeouts.
I don't think corporal punishment is worthwhile. There's some studies that shows that while effective at changing behavior, it also teaches the kid that violence is sometimes necessary, a lesson that I'm not sure if we should be teaching them.
But punishments in general? You don't want to reach for them as your first tool in your parenting toolbox. But you really can't just positive-reinforcement "you're doing a good job" all day to your kids. Its disingenuous and the kids pick up on that.
----------
> It answers the question in the title mostly by asking what, from today’s perspective, are the rational uses of punishment?
To change a person's behavior. If someone keeps lying, cheating, and stealing in society, we want to make them to stop so that they can reintegrate and become a beneficial member of society.
Perhaps we've gone too far with jail times in the USA, but the foundational theory is quite simple and effective here. Anyone who has ever trained a dog or other animal knows how to use animal psychology / punishments / rewards to change the animal's behavior.
Human psychology is more complex than animal behavior, but it shares a lot of similarities. Positive reinforcement (aka: rewards) and negative reinforcement (aka: punishments) are both useful within the framework.
I think a common criticism of this stance is, that it does not ask why a person does something that others want to punish. Obviously there sometimes are no answers, but often it's poverty and lack of options. So this begs the question, why people come to steal and murder etc.
I personally don't believe that "punishment" is usually well invested in a person. Rehabilitation and support structures are probably the better option.
I am also realising that it gets very interesting for white collar crime "without a victim" such as tax evasion or manipulation of stocks. My intuition is to punish exactly these crimes, but I think that's my bias showing.
People abstract before an abstraction is necessary.
I find single file dense leetcode style code easier to understand and follow the flow. Algorithmic code I can reason around. A large mature codebase is far harder to get to know.
One of the first things I do when I study a new codebase is find all the entry points and follow the flow of code from beginning to the thing I am interested in.
One person's beauty is another person's mess.
It's harder to change an existing codebase than to write a simple program that does the new thing but not in the context of the original program. A reference implementation of the various components is far easier to understand than one big ball of mud. Fitting problems together is hard. You need to understand the old thing before you can introduce the new thing and it ends up being forced or hacked in if the design doesn't support the new thing.
I tend to write reference implementations of everything, then combine them together as a separate project.
I find an empty file far more reassuring than a large codebase.
Refactoring will give them the chance to see what the actually moving parts of code are.
Hoppy is anything but accessible, in my experience, clearly some people love them but most casual drinkers do not. I personally find certain DIPAs to be a near religious experience but others can’t stand them. To each their own.