Dunstabzugshaubitze
@Dunstabzugshaubitze@feddit.de
- Comment on Typing is not a programming bottleneck 1 year ago:
Not to aware of how c# works, or interested in defending java, especially ancient java versions, but what does it do better in that regard?
Only records for more or less pure data objects come to mind, but those are also in modern Java.
- Comment on Typing is not a programming bottleneck 1 year ago:
Access control and offering a sound interface.
You don’t need getters and setters if every attribute is public, but you might want to make sure attributes are accessed in a specific way or a change to an object has to trigger something, or the change has to wait until the object is done with something. Java just has tools to enforce a user of your objects to access its attributes through the methods you designed for that. It’s a safeguard against unintended side effects, to only open up inner workings of a class as littles as necessary.
In a language without something like private attributes you’d have to account for far more ways someone might mutate the state of objects created by your code, it opens you up to far more possible mistakes.
- Comment on Typing is not a programming bottleneck 1 year ago:
You let your ide generate simple getters and setters or utilize something that generates them during a compilation process.
Who ever writes them per hand needs to utilize their tooling better or needs better tooling.
- Comment on Microsoft estimated Valve’s revenue in 2021 at $6.5bn Interesting to see another view on the scale of Valve’s business 1 year ago:
Cs:go, dota 2, artifact and underlords i think.
I guess this is estimated revenue through game sales, otherwise i’d think activision-blizzard(candy crush) and valve(steam cut, dota and cs micro transactions, steam market) would be higher.
And of course MS has an interest to undervalue some companies compared to sony and nintendo
- Comment on Microsoft documents leak new Bethesda games, including an Oblivion remaster 1 year ago:
“Schwacher Trank der Lebensenergie-Wiederherstellung.”
Oblivion auto generated potion names based on their effects and the template they used lead to this super long names in german. A proper translation would have been “Schwacher Heiltrank” or “Schwacher Lebensregenerstionstrank”
- Comment on [help]Question regarding Builder design patter. 1 year ago:
If null is a valid value for the field there is no reason why a builder should not construct an object where the field is null.
The only thing i dislike about the pattern is that a class utilizing the builder to retrieve the object has to know a lot about how the object has to be constructed, however it makes for very readable code imho.