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

help-circle


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

    https://handmade-blog.shuttleapp.rs/



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




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


  • I found C# to pretty much be python just with strict types and semicolons. Jumped right into it really on my first job and it worked out pretty fine, granted I got to orient myself in the existing project where I started.

    You are perhaps already familiar, but some things stand out like public/private annotations and other class related things like interfaces which work to create a more organized and controlled use compared to pythons “we are all consenting adults” approach were nothing ever really truly blocked from you. It depends a little on what you want to do/use it for, there’s frameworks and different uses like WPF / .NET for the frontend.

    While it may be too basic for you, ZetCode was useful for me back when learning PyQt in python, so you might find some use with the C# intro: https://zetcode.com/all/#csharp





  • I don’t think the title is that clickbaity, since it’s pointing out that there are places where Rust falls short. As with all tools, you should know when to not use them. If you know you will end up with a lot of unsafe code, then Rust may not be a good choice.

    The TLDR doesn’t say it but the article specifically points out the problem is when trying to use mark-sweep garbage collection in the VM, and talks about the problems that arise when you are forced to use C-like writing to combat the Borrow Checker. Apart from the rewrite in Zig being able to iterate on experiences from the Rust version, I think the points made out were perfectly good arguments about why writing unsafe Rust is far from a good experience. I see that experience reflected in the choice done for the Roc standard library too.


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