BehindTheBarrier

joined 2 years ago

Tesla somehow manages to do well(at least prior to the nazi events). Still at a good price in Norway.

But all other manufacturers have dragged their feet with EVs, and that price cost of starting is large enough that they are in trouble. I'm not a huge fan of China, but they did the investment and are ahead exactly because of that (and crazy subsidies). Being left behind is their own fault imo, and I think that applies a lot to EU as well. Eg. WV.

[–] BehindTheBarrier@programming.dev 16 points 2 weeks ago (6 children)

Code normally works fine after you write it and then hopefully at least test by hand. The new guy 5 years later, which do not fully grasp the extent of his actions, and the guy reviewing the code also not being too familiar with it, will not make sure everything does as intended.

Tests are correctness guarantees, and requires the code and/or the test to change to pass. They also explain how something should behave to people that don't know. I work in a area where there are so many businesses rules that there is no one person that knows all of it, and capturing the rules as tests is a great way to make sure that rules remains true after someone else comes to change the code.

[–] BehindTheBarrier@programming.dev 3 points 2 weeks ago* (last edited 2 weeks ago)

In modern games, I think it's fairly common to have a common 3d skeletons share names. So you can make animations like the one above apply to any character even if they have differences. It doesn't mean that dog extends human, but it may mean that a dog model shares a lot of common "bones", that are used for movement, with a human model.

So when a human animation is applied to the dog, you can see it warp to start position of the animation, move, and then then stop at the end position as a standing human, before warping back to idle animation (when it turns back into the dog shape)

Related, weapons in Destiny also share the same components across weapon types, and bugs have caused one weapon type to be used for another weapon, making funny things happen. Like how a hand canon (pistol) stretches like a bow because it's model got used in place of the bow model at the start of this clip:

https://www.youtube.com/watch?v=0YZa9vv5U0M

I know my product managers don't use chatGTP because they end all sentences with ... , every damn time. And I'm fairly sure their habit developed independently, given that one of them is from a relatively recent purchase of a company.

[–] BehindTheBarrier@programming.dev 2 points 1 month ago (1 children)

"".to_string() probably

[–] BehindTheBarrier@programming.dev 3 points 1 month ago* (last edited 1 month ago)

I feel this is related, and hightlight this even further, look at all the ways to initialize something in C++.

https://www.youtube.com/watch?v=7DTlWPgX6zs

If you are really lazy, have a look at making an int at around 7:20. It's not horrible that alone, but it does show how many meanings each thing has with very little difference, added on top of years of legacy compatability accumulation. Then it further goes into detail about the auto use, and how parantheses, bracket, squiggly bracket all can be used and help with the mess.

[–] BehindTheBarrier@programming.dev 5 points 1 month ago* (last edited 1 month ago)

None of those issues for my main IDE, though Rider on some occasions do get stuck marking some spelling errors after they are fixed.

It has stuttered a few times, but pretty rare. But it does have a bug where it think it is building a project, but isn't. And requires a restart to fix... Easy to trigger if you try building a project while it's loading the project...

Visual Stuido with Resharper is the one where things would randomly stop working though. Especially hotkeys would sometimes stop working until I restarted it. Slow and stutter too.

If Reddit back in the day had asked a few dollars for me to stick with using 3rd party apps using the API I would have. But they did the opposite, so here I am. First time actually donating to something, a measily $2 dollars a month, but hopefully a start to fund some of the free stuff I use.