263
you are viewing a single comment's thread
view the rest of the comments
[-] IDKWhatUsernametoPutHereLolol@lemmy.dbzer0.com 13 points 1 day ago* (last edited 1 day ago)

Idk its my non-programmer's impression of what code looks like, sorry if its incorrect ๐Ÿ˜…

[-] AliasVortex@lemmy.world 21 points 1 day ago* (last edited 1 day ago)

We call that pseudocode and it looks fine to me. No computer will run it natively (AI meat grinders aside), but most devs will be able to pick up on the logic and convert it to actual code.

Disclaimer: am a programmer.

Edit: as an aside, manually dealing with time is its own form of madness and is usually best left to libraries (ie other people's code) whenever possible.

[-] ScrollerBall@lemmy.world 7 points 22 hours ago

My favorite is the fact that Microsoft intentionally left a bug in Excel that treats 1900 as a leap year when it wasn't so they could maintain compatability with Lotus 1-2-3. And at this point fixing it would cause nearly every date value in excel files to display as off by one day and break a bunch of date formulas.

https://learn.microsoft.com/en-us/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year

[-] bamboo@lemmy.blahaj.zone 4 points 21 hours ago

Wow I've seen some really weird backwards compatibility issues, but this takes the cake. I would have imagined that in the move to XLSX they could have addressed this and sorted it out when saving, but nope, I guess having all days off by one and maintaining a support page explaining Lotus123 backwards compatibility for forever is earlier?

[-] weker01@sh.itjust.works 2 points 1 day ago

Can confirm Source: am a grammerpro

[-] b000rg@midwest.social 7 points 1 day ago

This is honestly exactly what programming is: breaking down big problems into step by step simple problems. If you've never considered taking up programming before, I'd suggest you try it sometime and see where it takes you. It's not hard to learn, it just takes time.

[-] vinyl@lemmy.world 6 points 1 day ago

You should program

[-] bandwidthcrisis@lemmy.world 3 points 23 hours ago

COBOL is an old language Internet to make programs look a bit like English descriptions of what was needed.

I don't really know it, but your code reminded me of the idea of it.

Don't worry if your code is incorrect, just make random changes until you hit on something that no longer results in errors :)

this post was submitted on 08 Jan 2025
263 points (97.5% liked)

Lemmy Shitpost

27310 readers
3750 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 2 years ago
MODERATORS