• 1 Post
  • 141 Comments
Joined 3 年前
cake
Cake day: 2023年6月11日

help-circle




  • I’d bet it’s less simple input sanitizing and more 2 mistakes made separately because they don’t know any better.

    1. The input field converting everything to a string indiscriminately
    2. Because they did 1, converting everything back to the assumed type

    If the front end Dev makes the first mistake, null would be sent in the body as “null”. Then on the backend, somebody might even be binding the variables correctly, but before hand realizing they have to deal with the market and rather than just have a conversation undoes it in their own code.


  • I’m not going to tell you you shouldn’t do that, I think everybody else has done enough telling others what to do. I’ll try to focus more on what you’d need to accomplish and why what you’re asking hasn’t been done.

    Building an OS involves a lot of complex work using very low level calls. The easiest way to think about it, IMO, is that whatever language you use needs to be able to communicate directly with the hardware without any abstraction between the code and the hardware after it’s compiled.

    Basic Python, out of the box, requires multiple levels of abstraction to run.

    (I’m simplifying here) You write code which is run through an interpreter. The interpreter is a compiled application that translates Python into code the operating system can understand. Then the operating system translates that to calls the hardware can understand.

    In that process, the python code is translated to byte code, assembly, and machine code. The Python virtual machine handles memory management for you. It also handles some processing concepts for you.

    You’d need to start by finding (or inventing) a solution that compiles Python to assembly without the need of an interpreter or OS in between you and the hardware. It’s worth noting here that Python itself isn’t even fully written in Python and is instead written largely in C because Python isn’t a compiled language. You’d then need to extend Python with the ability to completely manage memory and processor threads without the VM. You’d need to do that because that’s really the main purpose of an operating system.

    Something we learn in programming is choosing the right tool for the job. Python isn’t a great option for this type of project because the requirements just to get to where you can start are so high that it’s not really considered worth while. Is it possible, yes, in theory. But without the python interpreter and VM, you’d have to ask if you’re really developing Python or something else that just uses pythons syntax.



  • I didn’t actually know about Dave the Driver being a big publisher until just now. I felt that game was kinda under-developed for how hyper it was and now I’m even more disappointed.

    It only has like 6 major areas and the levels didn’t have that much variety. Plus the side content is fairly under polished. I enjoyed it for the first 60ish percent but was kinda forcing myself to finish it by the end.












  • Long time fans of the 2d games really enjoy Wonder as the movement mechanics moved back to a faster feel from pre-New Super Mario Bros. My favorite will probably always be Super Mario World because the movement is the most responsive in that game and I also like to play ROM hacks for it and that community is wild.

    New Super Mario Bros ended up with a sluggish movement by comparison and dominated 2d Mario for decades.

    The big draw for many people in Mario is movement mechanics and that’s why Odyssey is so popular as well. The 3d platforming with Cappy just feels right. Like a missing extension that we never new we didn’t have.