Motivation The typical Pinia tutorial tells you to write a Load and Store function to manage, well loading and storing your state from and to the server. I have never seen a single one of them mention this approach, they all are some variation of the...
What is NULL? Tony Hoare introduced the concept of thenull reference in 1965 while designing the ALGOL W programming language. A null reference means that a reference variable does not point to any object. He has explicitly stated that the null refer...
FirstN Returns the first N items from a sequence. // FirstN takes an iter.Seq[int] and returns a new iter.Seq[int] that // yields only the first 'limit' items without creating intermediate slices. func FirstN[T any](original iter.Seq[T], limit int) i...
standardizing an idiomatic approach to iterators can now make dealing with large slices and maps much more efficient, this is a much better approach than introducing a streaming specific syntax. These new function definitions are much more flexible t...
History The original ReST idea, which is supposedly spelled out in the abbreviation, gets lost in the abbreviation. It was simple, transfer a typically full representation of the state of your data in its entirety to every system that needs it to ena...
No one programming language is prefect for every situation, but some are perfect for specific situations. Why should you decide to use something? This is more important than any other decision you make in a project. If you pick the incorrect technolo...
No one programming language is prefect for every situation, but some are perfect for specific situations. How do you choose what to know or learn in 2024. What programming languages you need to know. You must know Java! Note that I did not say you mu...
Loose Coupling/High Cohesion The first is easy the second hard that is why everyone ignores it. Group your packages by types and the functions that manipulate those types. More functional organization means looser coupling and high cohesion. This i...
TL;DR Dogmatic Driven Adherence to things is bad. Especially things that are like this idea. Testing is good, more testing is more better, testing everything is all the best. Not! TDD is the ultimate "created by consultants" to sell certificates, co...
Everyone claims to be an "expert" in their thing. The reality is they rarely are. They either honestly think they are, or they know they are not but adhere to the George Costanza philosophy to lies, "It is not a lie, if you believe it". Which is the ...
Note: This is my original answer, if you look through the edits this is the basically the original version that is actually my opinion. The edits that change my opinion to the opposite of what I actually said is one of the main reasons I requested my...
Forty year old Gang of Four patterns, designed to deal with the short comings of “Object Oriented” Design in C++, misunderstood and poorly implemented by Java programmers continue to drag down the world of computing in 2023. Many of these "Patterns" ...
When I was a Java main I would pedantically always used the collection type that was most appropriate semantically correct for the data it was collecting. If I was storing a list that only contained unique items, I would always use a Set, usually a T...
I keep seeing articles that demand the reader "Stop doing" something that is fine practice, if not good/best practices just because they saw some demo on youtube and that person was not doing that thing and it now gospel to never do it again. Stop wi...
before posting an angry comment full of logical fallacies about how they are wrong, stop and seriously consider that they are might be right and if what you were going to post is just going to expose your lack of competence and/or self-awareness. The...