• 0 Posts
  • 49 Comments
Joined 2 years ago
cake
Cake day: August 7th, 2023

help-circle

  • It’s the round trips that kill you.

    Oracle drivers for .NET are fun. Have a user client application which uses quite a lot of data, but a few thousand rows are fetched some queries. It’s way too slow for any larger query, turns out for the batch query kind of work we do, the default FetchSize for Oracle is just a performance killer. Just throw it to 128 MB and it doesn’t really hurt at all.

    Worst thing i’ve seen though, apart from the 150 line long dynamic sql stored in our database, was probably a page in our program that loaded about 150 rows from the database. Normally we do create a new connection for each query, but it’s fine since Oracle has a connection pool. Whatever millisecond is trumped by the round trip. But imagine a UI so badly written, it did 4 separate database queries for EACH row it loaded into the UI list. Useless things like fetching a new ID for this row in case it is changed, reading some data for the row i think, and more. Thing took a solid minute to load. There was so many bad patterns in that page that even during the PR for improving the speed it was just dealing with a mess because you couldn’t just rewrite the entire thing, so they had to make it work within the constraints. Horrible thing to work with.




  • My experience with W11 on the work laptop.

    Taskbar sucks, maybe because I’m colorblind but I can te what my selected program is and programs with notifications (Teams) look like the focused program. Apparently notification boxes there are pink now. Can’t find any accessibility setting but fuck the colorblind I guess. It feels wrong to click the highlighted icon I for years have learned will mean that I minimize it…

    And why all the dots? And why is the notification dot the largest, so I can even tell which window is actually focused?

    Outlook doesn’t open with focus, especially the window that is supposed to pop up and warn me of upcoming meetings. Really annoying.

    Teams notifications just don’t show if you are in a meeting and that is focused, they used to do that on W10.

    Might be a Firefox bug, but there’s a lot of new visual bugs. Github diff view is randomly strongly colored, and randomly changes to the old weaker background colors when scrolling/resizing the windows. And a surprising amount of scrollbars in grids that weren’t there before.

    I just wish W11 at least worked with the regular features of W10.




  • 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:

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




  • 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.



  • 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 also liked the slightly more serious Thor in the former movies, even though the second one was shit and I have watched it twice and don’t remember anything from it…

    Ragnarok was OK, good even but it was the first step into making Thor a comedic joke character that occasionally does hero stuff. I could live with Ragnarok, but Love and Thunder showed that they completely lost it and don’t get what made Thor worth watching. There was some funny jokes in that movie, but apart from that the entire thing feels like a parody of Thor to me. It’s all turned too unserious, which removes any weight from the moments in the movie. Feels like the IQ of everyone just keeps dropping every movie at this point.


  • I haven’t read the books, but liked the movies. This is more of a expression of what I liked than anything else… But while JK turned into a mess, the movies generally were good even though

    The first two are okay but the third one in particular is a favorite of mine. It’s less because of Harry Potter and more about just how well it stands as a well made movie. It is darker in the literal sense and movies a lot more away from the magic wonder feeling the former movies had. In particular by adding a horror like element that adds so much more tension then the older ones. When I was a kid it was terrifying how unsettling and discomforting things were made to be.

    And despite it being the movie which used the never-seen-after completely world breaking time turners, it does an amazing job actually using them.There are all these things that go wrong, but just in the right way that the time loop works out without actually changing the first iteration we saw. The books probably do it the same way, but as a visual adaptation it’s right on the mark, down to the sense of time running out when the time travel shenanigans happen.

    Then again, I’m weak for “good feelings” making a difference and similar, so the protection spell that chases the Dementors away at the crucial moments sure makes me giddy. So it’s a thematic bullseye for me, despite how much emotional discomfort the movie played with to get there.



  • How do you view diffs and merges when you say you don’t use git GUIs? External tool or terminal/command line?

    I use Jetbrains IDEs and most of my life has been IDE based git interaction. And I honestly love it, easy access to see my diffs, the most common commit, push and stage(or shelve as Jetbrains does it, which is better than visual studio). Hassle free and available beats writing anything to me.