Former GM Executive: BYD cars are good in terms of design, features, price, quality. If we let BYD into the U.S. market, it could end up destroying american manufacturers
BehindTheBarrier @ BehindTheBarrier @programming.dev Posts 0Comments 136Joined 2 yr. ago
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.
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:
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.
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.
A worthwhile note is also that pretty much all US car manufacturers have dragged their feet doing EVs, excluding Tesla. So naturally US car manufacturers are struggling a lot with the massive costs related to adopting EVs now, and struggle competing with a country that spent this money getting established a good while ago.
The subsidies are still a problem, but the 100% tax is in my view a massive handout to domestic manufacturers that never bothered to try until they were behind. That 100% price increase in Chinese will probably mean high margins on EVs for yet some years before cheap alternatives come along.
Github actually does that too, in some cases at least.
https://trufflesecurity.com/blog/anyone-can-access-deleted-and-private-repo-data-github
My solution to most things, make it a chore.
Like, if you don't buy it, you can't drink it. If you have it, put it in an inconvenient place so you you won't see it or bother getting it.
Try making a list without copying every time you add something. Mutability matters then. Imagine copying 10000 elements, or copying 10000 references to items every time something were to be added or changed.
It probably makes sense if the program they came from is a badcase, but at least ours don't go over board. It's always a "you are probably doing something wrong, but we will allow it if you want to" or a "please confirm you want to do this thing that may have huge consequences". With what they were learning, they were not touching anything related to the latter. So they probably were doing something wrong.
I was on-site for users learning our new program. Watched them do something, a dialog came up, and faster then i could catch what it was, they closed it. Dialogs are warnings or confirmations you know, and they did not know what it was...
So yeah, sometimes I do think there should be a wait time on the OK button.
I'm still a windows pleb, so no Zed for me. Fleet I haven't heard of before.
I'm also very much one that likes a lot of convenience. RustRover is know from experience with both pycharm and Rider. But my main points are convenient functionality, autocomplete, debugger, code navigation, formatting and cleanup and git diff readily available. RustRover might be big and heavy, but it let's me focus on writing and running my code without much issues.
The following isn't any professional advice or anything, I am writing HTML manually for my hobby blog code. I don't have much experience with HTML outside occasionally reading it.
I write a bit by hand, to layout my blog page, which is using HTMX. Generally I use RustRover since that actually gives details for attributes and such along with autocomplete. And apparently yesterday it asked if I wanted to enable HTMX support, which was even more intriguing. The main articles are however converted from markdown to HTML.
I do want a better way to design with preview of my page but I think it's a long shot to find something that does HTMX at the same time. Especially since that often means having segregated pieces of HTML mixed into one document at page loading.
I'm not saying there will be mass deportation, indefinite detainment, and possibly executions of unwanted people, but they sure are lining up for it. For example ramping up execution of sexual predators, while at the same time labelling LGBT and drag as being predators, just for existing near children...
Like if Elon is a nazi, then we may very well see a DOGE squad hunt down "un-American" people in the darkest timeline.
I made a super basic blog by hand using actix-web. Basic processing of markdown into HTML and then present it through handmade (and chatgpt assisted) html+css with htmx to spice things up and try to do mimic a single page application. I don't have much web experience though, so much of it is crude.
I don't host myself yet, I used Shuttle which procides free hosting for hobby rust projects. It also comes with postgres so I have been looking into how to move from storing articles in files to a database for more consistent article support. Shuttle also supports other things than actix-web, so you don't havr to use that specifically.
While I said blog, I don't support new articles without a redeploy yet... And it only has like 3 random articles based on reddit posts. But it works at least.
I guess I should be happy I applied a work discount, which extended my subscription until Oktober 2026 or something.
Because I want to be a God.
It's a bit of hyperbole, but I was using some program on my pc and was frustrated because it didn't do things I wanted it to do. Or it had bugs, and there was no way for me to get that changed, so I was left to pray that somehow the creator would find this small problem and fix it. I was envious of those people that could make these windows with buttons that made things happen. I wanted this power that transcended what I could see on my screen, and change how that world worked.
And so, I learned to program. I took the powers to shaped my own creations and ascended.
Then you have a bit more to do yeah, you should look into object oriented programming and classes. Classes are pretty much everywhere in C#. At the beginner level they aren't as bad as they seem but you need to understand it's basics. The guide I linked in another comment also has short introduction to using a class for example.
In my case, I had local music synced up in a playlist, and the playlist still did shuffle though my music. (which Spotify didn't know the artist of given that it wasn't part of their library.) The broken shuffle was just one of many reasons why I stopped using streaming and went with local music players back in the day.
I sure don't sound helpful saying this, but it's mostly about finding the equivalent to the python action/types, and typing them out when making functions and variables. Though 99% of the time, you are completely fine defining variables as var
to avoid excessive typing.
I assume you dealt a bit with classes in python, if not then you're doing double time with both changing language and learning object oriented classes at the same time.
If there is any specific I can try to give some clarity since I also came from Python to C#.
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.