bitcrafter

joined 11 months ago
[–] bitcrafter@programming.dev 2 points 1 month ago (1 children)

NO! Don't make it bad.

[–] bitcrafter@programming.dev -1 points 1 month ago (1 children)

I feel like the modern name for it would be just "Script".

[–] bitcrafter@programming.dev 1 points 2 months ago

My taste buds disagree that this is "unfortunate".

[–] bitcrafter@programming.dev 3 points 2 months ago (1 children)

I did it again. 🫤

[–] bitcrafter@programming.dev 5 points 2 months ago

Censorship sucks and I can’t believe we let an entire country get away with it and still did business with them the whole time.

It is not clear to me that the country would be less censored now and the people there better off if we had refused to do business with them.

(Just to be clear, I am not saying that we handled China as well as we could have over the last few decades, but hindsight is 20-20.)

[–] bitcrafter@programming.dev 8 points 3 months ago

Personally, I like to plant gardens that help out natural pollinators in order to change the bees that I want to see in the world.

[–] bitcrafter@programming.dev 1 points 3 months ago

Ah. In that case, I look forward to there being a new keyword in C++26 or later that you add to enforce that the enumeration really only does take one of the enumerated values, rather than just being a strongly typed number, since that seems to be the way that the language likes to do things...

[–] bitcrafter@programming.dev 11 points 3 months ago

I think that sometimes what happens to people is that they build the life that they implicitly believe they are "supposed" to be living because that is what they see everyone else around them doing, rather than based on an honest self-assessment of whether this really is the what will make them happy. When they realize that this life is not actually making them very unhappy, they look for outside factors to blame because they did everything that they were "supposed" to be doing so it could not have been their own misinformed choices that led them to this point.

And in fairness, no one chooses where they are born and the cultural conditioning that we receive, so this is not entirely their fault. It is really a societal problem that we do not encourage enough people to engage in true self-introspection to figure out for themselves what is important to them and what they want to get out of life so that they make these kinds of decisions with great deliberation and personal self-insight rather than taking the default option.

[–] bitcrafter@programming.dev 2 points 3 months ago (2 children)

Could someone explain to me what the value is in making it really easy to initialize an enum class with a value that is not one of the enumerated values?

[–] bitcrafter@programming.dev 9 points 3 months ago

A Linuxponential curve!

[–] bitcrafter@programming.dev 17 points 4 months ago (2 children)

Choosing to have a child later on generally has fewer negative consequences than unchoosing a child you have already had.

[–] bitcrafter@programming.dev 6 points 4 months ago (1 children)

Unless the C++ code was doing something wrong there’s literally no way you can write pure Python that’s 10x faster than it. Something else is going on there.

Completely agreed, but it can be surprising just how often C++ really is written that inefficiently; I have had multiple successes in my career of rewriting C++ code in Python and making it faster in the process, but never because Python is inherently faster than C++.

view more: ‹ prev next ›