933
True Spaghetti code (lemmy.world)
submitted 6 months ago by Exusia@lemmy.world to c/memes@lemmy.world
all 47 comments
sorted by: hot top controversial new old
[-] manucode@infosec.pub 55 points 6 months ago
[-] wise_pancake@lemmy.ca 36 points 6 months ago

I have a great performance optimization for this

What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.

[-] devfuuu@lemmy.world 10 points 6 months ago

For anyone who controls time travel this is the fastest algorithm ever. Probably gonna change everything when we are traveling through space and passing by some dark holes.

[-] morrowind@lemmy.ml 1 points 6 months ago

Even as a joke, this doesn't avoid anything. The system scheduler just has to do the sorting using a regular algorithm

[-] Omgboom@lemmy.zip 34 points 6 months ago
[-] rockSlayer@lemmy.world 25 points 6 months ago

stay away from the edge cases and everything will be fine

[-] affiliate@lemmy.world 24 points 6 months ago

i am both people in this picture

[-] jubilationtcornpone@sh.itjust.works 23 points 6 months ago
[-] sylver_dragon@lemmy.world 9 points 6 months ago

Perfect, we'll just spin up an image of your machine in EC2, give it a public IP, set the default network rules to "allow any any" and we're good. And I have no idea why the security team just all quit.

[-] partial_accumen@lemmy.world 4 points 6 months ago

The git commit comment when pushing to prod is just: WCGW?

... alternate ending: YOLO!

[-] vrighter@discuss.tchncs.de 2 points 6 months ago

and that's how docker was invented

[-] morrowind@lemmy.ml 1 points 6 months ago

That's why we invented docker! Instead of trying to fix, just copy your whole machine

[-] peto@lemm.ee 18 points 6 months ago

No wonder he was the captain of the Black Perl...

And the dinghy got him all the way to dock. What more could anyone want.

[-] Gigliorananomicom@sh.itjust.works 8 points 6 months ago

I want to learn C# or Python for game dev, but it looks...daunting.

Anyone got advice?

[-] rovingnothing29@lemmy.world 12 points 6 months ago

"Automate the boring stuff with python" to start. As an added bonus you'll have more downtime as you go.

[-] slazer2au@lemmy.world 8 points 6 months ago

Start by using an existing engine like renpy to get flow and math. Then expand to other engines.

[-] kittenzrulz123 6 points 6 months ago* (last edited 6 months ago)

Learn rust for game dev, develop the game in rust, and then brag about how your game is written 100% in rust (nerds will be extremely impressed, for maximum clout release it under GPL V3 with native Linux support).

[-] Valorie12@lemmy.world 7 points 6 months ago
[-] kittenzrulz123 5 points 6 months ago

But first you need to make a custom Risc-V CPU optimized for rust (and minimal memory leaks) and then port a custom Arch fork (completely rewritten in rust ofc) so you can run OxideFetch

[-] vrighter@discuss.tchncs.de 4 points 6 months ago

gameplay doesn't matter. If it's written in rust it will automatically be fun.

[-] Human@lemmy.dbzer0.com 5 points 6 months ago

I would start (if you havent already) with an introduction to CS. You can take CS50 for free online - https://cs50.harvard.edu/x/2025/.

I dont think they cover much C# (I took the 2020 course and they didnt) but they do introduce you to C, C++, Python, html, etc. They provide github codespaces available for anyone for free, so you can complete the weekly labs and problem sets offered in the course. It really is a good jumping off point.

[-] rmuk@feddit.uk 4 points 6 months ago

Be sure to regularly defrag your C: drive or things might slow down.

[-] RandomVideos@programming.dev 2 points 6 months ago

Code looks more terrifying than it actually is

After learning the basics of a programming language, you could try using a game engine like Unity or Godot to not have to code a lot of more complicated things like displaying things and collisions

[-] partial_accumen@lemmy.world 2 points 6 months ago

I know a bit of python and ruby, but doing something similar except I'm writing it in BASIC on a Commodore 64 and am going to attempt to refactor it assembly. I have most of the BASIC version working now.

[-] peoplebeproblems@midwest.social 2 points 6 months ago

Find a different career choice!

Software development is all stress all the time and I don't know what the fuck I'm doing and I really don't think this much stress at 34 is healthy even with the salary

[-] Saleh@feddit.org 4 points 6 months ago

I think your description covers many career choices in a capitalist society.

[-] peoplebeproblems@midwest.social 2 points 6 months ago

This... Is a very good point.

[-] JackbyDev@programming.dev 2 points 6 months ago

I think software development is a good career, but game development specifically is certainly not. It's a fine hobby though. Also, learning development through a hobby is fine.

[-] FunCube@feddit.org 6 points 6 months ago

Minecraft, quintessentially

[-] jatone@lemmy.dbzer0.com 5 points 6 months ago

.... In the wrong direction.

this post was submitted on 30 Jan 2025
933 points (100.0% liked)

memes

16604 readers
2284 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS