There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

FrostyCaveman , in The easiest problem

Single character variable names are my pet peeve. I even name iterator variables a real word instead of “i” now… (although writing the OG low level for loops is kinda rare for me now)

Naming things “x”… shudder. Well, the entire world is getting to see how that idea transpires hahah

Mikelius ,

I hate short variable names in general too, but am okay with them for iterators where i and j represent only indices, and when x/y/z represent coordinates (like a for loop going over x coordinates). In most cases I actually prefer this since it keeps me from having to think about whether I’m looking at an integer iterator or object/dictionary iterator loop, as long as the loop remains short. When it gets to be ridiculous in size, even i and j are annoying. Any other short names are a no go for me though. And my god, the abbreviations… Those are the worst.

FrostyCaveman ,

That’s very reasonable, I can get behind that. (my stance is a partly irrational overreaction and I’m totally aware of it lol)

Abbreviations are definitely annoying. My least favourite thing to do with them is “Hungarian notation”. It’s like… in a statically typed context it’s useless, and in a dynamically typed context it’s like… kind of a sign you need to refactor

Cethin ,

Hungarian notation makes sense in a dynamically typed usage (which I despise, but this essentially makes them notationally typed at least) or where you’re editor/IDE is so simple it can’t give you more information, which I can’t see ever being the case in the modern day.

Redkey ,

Most people use the term “Hungarian Notation” to mean only adding an indicator of type to a variable or function name. While this is one of the ways in which it has been used (and actually made sense in certain old environments, although those days are long, long behind us now), it’s not the only way that it can be used.

We can use the same concept (prepending or appending an indicator from a standard selection) to denote other, more useful categories that the environment won’t keep straight for us, or won’t warn us about in easy-to-understand ways. In my own projects I usually append a single letter to the ends of my variable names to indicate scope, which helps me stay more modular, and also allows me to choose sensible variable names without fear of clashing with something else I’ve forgotten about.

Cethin ,

X, y, and z should only be used when working with things with dimensions larger than 1. Indexing into a 2D array, x and y are great uses. I’m also totally fine with i and j for indexer/iterator when appropriate, but I hate when people try to make short variable names for no good reason. We have auto-complete just about everywhere now. Make the names descriptive. There’s literally no reason not to.

Hazzia ,

We have auto-complete just about everywhere now

vim

sparkle ,

Everywhere CIVILIZED*

Bobbettes ,

Vim can have autocomplete.

PoolloverNathan ,

Press ^X^N, I dare you.

nicky7 ,

Same, except for list comprehension in python, I prefer sinlge character var names there.

SuperSpruce , in Any Volunteers

I’ve had game and software ideas swirling around in my brain, but for the longest time I couldn’t program them. But now, I have enough knowledge to build parts of my grand deckbuilding game idea: An arcade style deckbuilding game with strong meta-progression. It’s playable at superspruce.org.

As for some other ideas, including the simple idea of a weighted shuffle music playlist where each song has its own weight, they are still currently out of reach, mostly due to trying to access the filesystem and whatnot. Better than a month ago, where within the last month I found out how to make the browser play music

mynameisigglepiggle ,

Have you considered making your deck building game an mmorpg?

cordlesslamp ,

But only if there’s multiple endings and my choices matter.

pojankolli ,

Cool game but it is missing a lot of features, most importantly tutorial and art.

On the technical side: Do you self-host or in the cloud?

SuperSpruce ,

It’s hosted on GitHub, but I really want to self host one day.

What other features are missing? I’m still pretty much a beginner so it can be very tricky to implement things.

JoYo , in The easiest problem
@JoYo@lemmy.ml avatar

^- triggered

ICastFist , in Any Volunteers
@ICastFist@programming.dev avatar

Great idea, how about you describe it in so much minute details it bores your goddamn mind? Can’t do it? Sorry, then you’re not cut for being the idea guy, you’re fired.

If the fucker can’t do the above, he’s what programmers call a client: an asshole who thinks too highly of himself and his ideas and will annoy everyone every time he changes the goals.

RIP_Cheems , in Any Volunteers
@RIP_Cheems@lemmy.world avatar

Don’t we all.

chetradley , in Any Volunteers

Y’all remember that post about the “science-based dragon MMO” that topped the gaming page of…that other site…? If not, I’ll include the title and image below, because it’s got the same energy as this post.

Dear internet, I’m a 26 year old lady who’s been developing a science-based, 100% dragon MMO for the last two years. I’m finally making my beta-website now, and using my 3D work as a base to create my 50+ concept images. Wish me luck, Reddit; You’ll be the first to see the site when it’s finished.

https://lemmy.world/pictrs/image/09f7566f-1ee7-48cc-bba7-14a25b02aa03.jpeg

The comments were surprisingly constructive considering she basically pasted zsphere sketches over a generic background and announced she had been solo developing the most ambitious dragon fucking game the world has ever seen. It’s been 12 years, I wonder how she’s doing?

casual_turtle_stew_enjoyer ,

You know what’s ironic about all this is, as someone who has seen game dev pitches (not good ones), they arguably had their shit together more than most aspiring game devs. Looking back at the skeletals, ya know they actually may have had a chance of getting somewhere. They knew absolutely nothing about the technical side, but hardly any game devs actually do. They probably still stand a better chance today of developing this than some game studios asset-mashing in Unity or Unreal. That’s the true state of game dev.

RonSijm ,
@RonSijm@programming.dev avatar

I remember this post like it was yesterday, and she didn’t have her shit together at all.
All she had was a Z-sphere dragon in ZBrush poorly photoshopped on top of a lumion render, and an overambitious idea

casual_turtle_stew_enjoyer ,

Let me reiterate: I have seen worse.

In fact, Disney once paid a lot of money for a game with even less concept art and design. Unsurprisingly, this game was never released and very little record of it remains. And when I say it was worse. For those who think they know: yes, I’m talking about the viking bears.

BarbecueCowboy ,

Not great things, but she did make it.

https://store.steampowered.com/app/305960/Dragon_The_Game/

Not sure if the original dev is still involved, but the team has also renamed their company a few times and released (and abandoned in a somewhat broken state) a few other games.

chetradley ,

No way! You’re sure it’s the same person from the post? If so, what a wild ride.

Melatonin , in Any Volunteers

It could be. Could be.

Probably not.

But could be.

steventhedev , in The easiest problem

Older C compilers would truncate a variable name if it was too long, so VeryLongGlobalConstantInsideALibraryInSeconds might accidentally collide with VeryLongGlobalConstantInsideALibraryInMinutes.

Legend says that they used to do it after a single letter with Dennis declaring “26 variables ought to be enough for anyone”.

olutukko ,

I had this problem in my job as a drafter. I was wondering why the hell Tekla would complain about the same object name already being in use despite everything having its own name. took me way too long to realize there wad some stupidly max name length and the program did nothing to alarm the user about trying to put too long name. it just cut the overflow away.

friendly_ghost , in Any Volunteers

Put it on GitHub and some tryhard will do a bunch of free work on it. Source: am tryhard

Malix , in The easiest problem
@Malix@sopuli.xyz avatar

installing operating system: 15 minutes, give or take.

give a name to the computer: 45 minutes

SturgiesYrFase ,
@SturgiesYrFase@lemmy.ml avatar

I’ve got that shit on lockdown man.
I name all my devices “Fuck0ff” followed by a 3 letter descriptor of what it is. E.g. - my windows install is Fuck0ffDTW for Desktop Windows, my Garuda install is Fuck0ffDTG for Desktop Garuda(it’s a flavour of Arch, btw)

OfficerBribe ,

What if you would have 2 devices of same type with same OS or just with OS that starts with same letter? Will you use numbers, if yes, how much leading zeroes if any you will use? If you don’t use numbers, will you add a room name? But what if there are 2 devices with same OS in the same room?

SturgiesYrFase ,
@SturgiesYrFase@lemmy.ml avatar

Luckily I’m not responsible for naming my wife’s devices, otherwise the whole scheme would be up shit creak. As it stands I have a dual-boot desktop, a daily laptop, a surface pro4, and an old laptop running Ubuntu server for various self hosted stuff. I’ve managed to just use 3 letters, I assume as I amass more tech I’ll need to start adding numbers, if I have to label for rooms I’ll have more than a data hording problem.

ZILtoid1991 , in Any Volunteers

Funny thing is, it’s actually not that hard to get additional volunteers for an ongoing project if you’re competent enough, only recent issues are YanDev messing up a lot of things (both his game and life) which might create some skepticism towards indie devs looking for such volunteering, and people not understanding how solo indie development works and fetishizing successes without truly understanding them.

MonkeMischief , in Any Volunteers

Lol I was legit surprised to find it’s an actually written (satirical) article! The other ones had me rolling too, like John Cena coding “Banjo Threeie” LOL.

https://hard-drive.net/hd/video-games/man-with-really-cool-idea-for-game-just-needs-volunteers-to-do-coding-and-art/

DarkSurferZA , in The easiest problem

Gotten even easier after X became a registered trademark. Now the only choice we have left is i. Or ii if you need more variables

Cethin ,

“j” is what you’re supposed to use if you need another index variable after using “i”.

Bougie_Birdie ,
@Bougie_Birdie@lemmy.blahaj.zone avatar

Okay, say you’ve got four inner loops (a crime on its own, I know), do you use i, j, k, l or i, j, k, ii?

cbazero ,

lIIl, IIIl, lIlI and IllI

DarkSurferZA ,

This is the way

xlash123 ,
@xlash123@sh.itjust.works avatar

To the person who decided I and l should look the same in fonts, I wish you a pleasant eternity in hell.

lars ,

Imagine if your username were iars. Awful.

lars , in The easiest problem

An important professor constantly and frustratingly said

we can call this variable whatever we want, so we’ll call it Fred

Made me panic and irate and focus on the wrong part of the problem. Every. Single. Time.

RandomVideos , in The easiest problem

Since a lot of the english words i know i learned from minecraft, in a farming simulator i named tilled soil"hoed"

I had multiple variables like int isHoed

velvetThunder ,

There’s some hoed in this house If you see 'em, point 'em out

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines