• 2 Posts
  • 188 Comments
Joined 1 year ago
cake
Cake day: August 7th, 2023

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

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




  • BehindTheBarriertoProgrammingEhy, why do you program?
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    12 days ago

    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.



  • Unsure if a joke or not, but in the event of a serious question:

    scrum masters are heads of scrum teams, their main purpose is facilitating good work conditions for the workers in the team. This generally means arranging and leading typical scrum meetings, helping workers do their job and shielding them from the Production Owner (the guy that decides what they are to make/deliver during a sprint . (sprints are 2-3 weeks long, where work is done according to a selection done at the start of the sprint and interruptions are kept low during that time.)

    I don’t want to say that it’s an easy roles, but it’s more a management type of role than a worker role. In my team the scrum master is also doing development work, since scrum master tasks alone aren’t that huge with the way we do things.


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


  • 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



  • For me it looped though the same 30 songs out of more than 1000. I much prefer a one time shuffle that guarantee all songs in my playlist, just in a new order. It’s not exactly rocket science, if it’s in the playlist it naturally should be played. That and horrible sync with local music made me just go all “offline” with PowerAmp on mobile and Foobar2000 on pc…



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