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.

Miaou , in Exam Answer

The amount of people nitpicking about the brand of pseudocode or arguing the question is tricky reminds me of some coworkers, and not the good kind.

If you belong to the above category, try to learn some new programming language / read about some algorithm descriptions (not implementation) and go out take some sun. The question is super intuitive if you’re not stuck to a single paradigm or language.

OR3X ,

Exactly. It’s pseudo code. It’s meant to be universally understandable, not language specific.

KillingTimeItself ,

i’m of the belief that pseudocode should be real code that actually runs. I.E. something like bash. A scripting language.

LordCrom ,

Starting off a noob programmer in Bash… Pure evil

KillingTimeItself ,

thats why i hate pseudocode.

I would much rather just learn an actual language, or two even. At that point.

ikka ,

The first language I tried to learn as a kid was Batch scripting…

(edit: and then some VBScript along the way! Eventually worked my way to C++ though)

Socsa , (edited )

So I teach coding to idiots. Confusing or poorly defined abstractions in pseudocode are bad. If you want people to infer useful information from pseudocode, and learn good practices from it, you need to treat it as if there a real underlying class structure written with good practices, or even better, make it comply to some actual language which does that. If you want to imply that this is a member of string, something like string.len_chars is way better imo because it captures the idea of a string being an array<char>. Then the next question can be about string.len_bytes (watch the wheels turn!). That naturally transitions nicely into object oriented paradigms of object containers/storage being at once a templated abstraction with a stride and depth, and also a physical thing in memory.

tsonfeir , in Programming languages personified - leftoversalad
@tsonfeir@lemm.ee avatar

Everyone hates on PHP and JavaScript.

CanadaPlus , (edited )

JS, at least, deserves it.

tsonfeir ,
@tsonfeir@lemm.ee avatar

How do you feel about TypeScript

CanadaPlus , (edited )

Better. Of course, it’s just built over top, so you can still get JavaScript issues in TypeScript, and it’s not necessarily going to be obvious. This is particularly an issue if you call JavaScript libraries, which I’m told is standard practice.

muntedcrocodile ,
@muntedcrocodile@lemm.ee avatar

U can try and polish a turd if ya want.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Well, what TYPE of turd is it? ;)

muntedcrocodile ,
@muntedcrocodile@lemm.ee avatar

any

tsonfeir ,
@tsonfeir@lemm.ee avatar

You better catch that.

MonkderZweite ,

A more polished unholy list of depencies?

xmunk ,

The Javascript reference could be read as how every project ends up with an unholy list of npm dependencies - it’s awful to look at but it works.

I think the PHP reference was just “idk servers or something?”

BurningTurtle , in Gamedev is Easy
@BurningTurtle@programming.dev avatar

Weirdly they often forget to use .EnableCrossplay() and then complain about it being “hard to implement”.

Zagorath ,
@Zagorath@aussie.zone avatar

and then complain about it being “hard to implement”.

Ok but seriously, if a completely new dev team picking up a game 20 years after it was originally written for one platform can port it to a new platform with an entire new custom user experience and support optional cross-play, I have no sympathy for developers of modern games designed from the start to run on multiple platforms not supporting cross-play in their game.

msage ,

You have to take into account that a big company game is going to by much harder to implement than just a small hobby team game simply because of all the people involved.

What can 5 people do in a year may take more for 500 people, just because of the management overhead. And if that management sucks, it will end up doing way more things it was required to do, yet the original request will not be done well.

vox ,
@vox@sopuli.xyz avatar

well if a game heavily relie s on steam networking stack crossplay may be close to impressiblr to implement without ripping the whole stack out

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Just port Steam to the Nintendo PlayStation.

Fades , in Gamedev is Easy

Low effort meme

SmilingSolaris ,

Lower effort reply

shiveyarbles , in Gamedev is Easy

No no release should be executed first

gerryflap , in Machine Learning
@gerryflap@feddit.nl avatar

I like how specifically this relates to my experience with the discount factor gamma in Reinforcement Learning. Like, pretty close to the exact numbers (though missing 0.99 and 0.999)

Haus , in Programming languages personified - leftoversalad
@Haus@kbin.social avatar

My experience in going from C to C++ was different: if you're not converting everything from mallocs with custom addressing systems to the collections framework, you're not living.

Jajcus ,

My experience with C++ was when C++ was a relatively new thing. Practically the only notable feature provided by the standard library, was that unholy abuse of bit shift operators for I/O. No standard collections or any other data types.

And every compiler would consider something else a valid C++ code or interpret the same code differently.

I am little bit prejudiced since then… and that is probably where the author is coming from too.

Then things were just getting more complicated (templates and other new syntax quirks), to fill the holes in attempts to make C a 'high level language'.

AMDIsOurLord ,

C++ from 11 onwards started to really shine and since C++17 it’s got some good shit inside

Adanisi ,
@Adanisi@lemmy.zip avatar

Yeah wtf is up with the overridden bitshifts? Was Stroustroup drunk?

xmunk ,

It’s a syntax sugaring and it reads pretty well in my eyes - it’s really obvious what is meant by that syntax.

leaky_shower_thought , in Gamedev is Easy

<span style="color:#323232;">@platform('engagement')
</span><span style="color:#323232;">game.Release().then(ninjaNFTandMTXDLC);
</span>

are you feeling it Mr. Crabs?

scrubbles , in Gamedev is Easy
@scrubbles@poptalk.scrubbles.tech avatar

Psht No wonder AI is taking all of our jobs

savvywolf , in Gamedev is Easy
@savvywolf@pawb.social avatar

Whoa, you can’t trust people with that code. You gotta put in a few rootkits and drm to stop filthy pirates and cheats.

nieceandtows , in Programming languages personified - leftoversalad

So, what makes Haskell god tier?

Bonehead ,

Nothing...that's just how they perceive themselves.

CanadaPlus ,

I think it’s more the idea of being an abstract ideal. It’s totally pure and often mathematical.

AMDIsOurLord ,

Purely functional programming is a pathway to many abilities OOP devs consider to be… Unnatural

noddy ,

IMO the ackchyually guy would be a better fit for Haskell. “Ackchyually monad is a monoid in the category of endofunctors!”

fckreddit , in Programming languages personified - leftoversalad

I love how JS is just a mutant blob of flesh.

jonesy ,

Kanedaaa

SpaceNoodle ,

Tetsuoooooo

TrickDacy ,

Ah yes JavaScript bad

CanadaPlus ,

Yes.

xmunk ,

I like Javascript… but it is certainly an unholy amalgamation of mismatched parts that, in the end, can get pretty much anything done if you don’t mind 100+ node dependencies.

noddy ,

Should’ve made s typescript one, that is a mutant blob of flesh with a life jacket on it.

LordOfTheChia , (edited ) in Gamedev is Easy

Reminds me of Coffee Stain Studio’s trailer for the release of Goat MMO Simulator:

youtu.be/WAm5yxQA_HY

marcos , in Machine Learning

Your neural network just learned to flawlessly answer any question you send it! Time to put it to good use!

Start asking the important questions!

kernelle ,
Ragdoll_X , in Machine Learning
@Ragdoll_X@lemmy.world avatar

Have you tried some data augmentation?

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