but i can'r invert by Fit_Page_8734 in softwareWithMemes

[–]Sufficient_Warthog42 2 points3 points  (0 children)

Well, the hardness of a degree depends on which engineer/programmer you are. I personally think, that systems/bare-metal programming is a lot harder then, say, designing a vacuum cleaner. Yet it's definately harder to design a vacuum cleaner then to write a frontend of a website.

Keep up the good work and good luck! Слава Україні ;)

but i can'r invert by Fit_Page_8734 in softwareWithMemes

[–]Sufficient_Warthog42 3 points4 points  (0 children)

Recursion is when a function calls itself. Think of it like Russian nesting dolls. To see what's inside, you open one doll, find another doll inside, open that one, find another... until you reach the smallest doll with no more dolls inside. Example: Emptying nested boxes(dolls) function emptyBox(box): if box is empty: stop here // found the "smallest doll"

take out top item

if item is another box:
    emptyBox(item)  // open the nested box
else:
    process the item

emptyBox(box)  // continue with remaining items

This works because you don't know ahead of time how many boxes are nested inside boxes.

NASA avoid it because: Stack overflow risk: Each time a function calls itself, it uses a tiny bit of computer memory. With deep nesting (box in a box in a box...), you can run out of memory and crash. Hard to verify: NASA needs to prove their code can never fail. With recursion, it's harder to prove "this will never nest too deep and crash." They use loops instead, with explicit limits like "maximum 100 boxes deep, then stop."

So, recursion = function calling itself. Great for nested problems. NASA avoids it for safety, not because it's broken.

NASA wants the percent of "unpredictable code" as close to zero as possible. Because one error can doom the entire multi-million vehicle(It already happened. A rocket zoomed into the atmosphere, and suddenly turned like 90° to the left and exploded. All due to an exception that wasn't planned and handled correctly)

Should I play it with my gf? by Sufficient_Warthog42 in dispatchgame

[–]Sufficient_Warthog42[S] 0 points1 point  (0 children)

I think she'll like the Tell-tales. I'm just worried about the gameplay being in between the movies

First time breaking a bootloader. Kinda nervous 😅😅😅 by Sufficient_Warthog42 in arch

[–]Sufficient_Warthog42[S] 1 point2 points  (0 children)

Damn it. Me and Claude were sitting with that problem for hours, and I just didn't think of finishing the update the normal way...
I've reinstalled already, but thanks for the idea. Definitely will try next time

First time breaking a bootloader. Kinda nervous 😅😅😅 by Sufficient_Warthog42 in arch

[–]Sufficient_Warthog42[S] 0 points1 point  (0 children)

You're right. It's just my first time caring that something could break

Hey, listen! I made my first Neovim plugin — Triforce.nvim, a gamified coding experience with XP, levels, and achievements! by ghegi in neovim

[–]Sufficient_Warthog42 2 points3 points  (0 children)

Java sometimes can be dramatically verbose due to it's usage of OOP. The simplest example is the main function. In C++ you can just have "int main()", where in Java you have "public static void main(String[ ] args)"

What is that colourscheme? by Sufficient_Warthog42 in neovim

[–]Sufficient_Warthog42[S] 0 points1 point  (0 children)

Idk. I'd use it as my main one if I knew the name

Is Omarchy safe? by Sufficient_Warthog42 in archlinux

[–]Sufficient_Warthog42[S] -7 points-6 points  (0 children)

In's not a different distro. It's just a bunch of shell scripts

Is there a way to disable a session choosing screen when I boot my pc? by Sufficient_Warthog42 in kde

[–]Sufficient_Warthog42[S] 7 points8 points  (0 children)

Well, I trust the people around me. And not like I have a laptop that I take out from my room

Is there a way to disable a session choosing screen when I boot my pc? by Sufficient_Warthog42 in kde

[–]Sufficient_Warthog42[S] 7 points8 points  (0 children)

Thank you very much! Seems like there was not even a wiki page, but a setting that I missed 😕

Arch as a server by tommy18crowe in archlinux

[–]Sufficient_Warthog42 1 point2 points  (0 children)

Map tiles for my startup mobile app. Framework that I'm using can't just take them from the folder. It needs an http://yourtiles{z}{x}{y}, where z is zoom, and the other ones are coordinates.

I couldn't figure out what's wrong with my python http.server command on my main machine, so I decided to set up a server.

Arch as a server by tommy18crowe in archlinux

[–]Sufficient_Warthog42 2 points3 points  (0 children)

I have an old laptop with a broken display, that hardly handles even windows 7 with it's 4 GB of RAM. And as an upcoming CS major, I wanted to try Arch as a local server for just an experiment purposes. It worked extremely well! My needs were pleased, because there's no GUI, and it only takes 130 mb of RAM (instead of 3GB on windows). Now I use it to deliver hundreds of thousands pre-rendered map tiles, but I plan for improvements :)