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.

ohlaph , in ifn't

<span style="color:#323232;">aint (something) {
</span><span style="color:#323232;">    somethingElse()
</span><span style="color:#323232;">}
</span>
Facebones ,

As a Virginian learning coding, this would make my damn day.

Threeme2189 ,

<span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">aint</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x))
</span>
15liam20 ,

Or maybe

taint(condition) {}

HairHeel , in “It’s not that hard”
@HairHeel@programming.dev avatar

I tend to think people shit on Musk more than they should, but holy shit does it bug me when a CEO talks about engineering problems with such bravado.

nucleative ,

The guy was a the senior software dev at his first startup. Not sure if he’s written a line of code since then, but he’s at least spent some time in the trade

rainerloeten ,
@rainerloeten@lemmy.world avatar

He wrote code that was so bad, all that was kept from x.com when it was bought was its name. The actual code was taken from another company acquired at the same time.

phoenixz ,

The guy is an idiot who LITERALLY got fired for incompetence as CEO.in the past. He is a scammer and should be treated as such, so no, people aren’t shitting too much on him. If anything, they aren’t shitting enough, there are still way too many oblivious fan boys out there that think he is a genius. He’s not.

Anything he says that makes sense engineering wise usually comes from someone on his team, anything else is just outrageously stupid, and clearly from his “genius mind” like this blurb/cert/tweet whatever the hell its supposed to be called.

Adalast ,

Don’t forget defrauding the federal and state of California governments to get them to pull funding from vitally needed high-speed rail projects because it would hurt Tesla’s bottom line. Fucking hyperloop.

jasory ,

California HSR has been a zombie project for a while. Even before Musk was a factor, there were annual plans but nothing ever got done, year after year. It’s probably going to take intercity projects to become popular and economical for something as ambitious as long-range passenger rail to actually receive serious attention.

ShaggySnacks ,

He talked about electric cars. I don’t know anything about cars, so when people said he was a genius I figured he must be a genius.

Then he talked about rockets. I don’t know anything about rockets, so when people said he was a genius I figured he must be a genius.

Now he talks about software. I happen to know a lot about software & Elon Musk is saying the stupidest shit I’ve ever heard anyone say, so when people say he’s a genius I figure I should stay the hell away from his cars and rockets.

Rod Hilton about Elon Musk.

Truck_kun , in It's that time of the year again!

That SELECT and WHERE are all caps, but from is not is bugging me.

I don’t care if you choose to uppercase keywords or lowercase, but consistency please.

Also, great, love it.

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

it also implies that naughty or nice is an either or thing and not a weighted thing from an incidents table. the good place lied to us.

ursakhiin ,

It could be a materialized view that is generated off of a weighting where you are nice until you have a certain number of incidents.

marcos , in isEven API

Oh, bummer, my number isn’t supported by the free version:

api.isevenapi.xyz/…/87643895874857367499567729846…

captainjaneway ,
@captainjaneway@lemmy.world avatar

Just divide that number by two until it’s small enough to make the request under the free version.

taaz ,

pretty sure that has to be against their TOS

/s

mormegil ,
@mormegil@programming.dev avatar

That’s against the terms of math :-)

aaaa ,

That’s not even supported by the enterprise version. You’re going to need a special agreement with the iseven people to support numbers like that

fckreddit ,

Easy workaround, just test the last digit. If it is even, the entire number is even, else odd.

marcos ,

That’s preposterous! Next time you’ll tell me the language I’m using has a builtin operator that test if a number can be divided by another!

HurgletOfficial , in emacs

VSCodium > VSCode

Ethab83 ,

It is, but the lack of official Microsoft extensions makes life a little harder

HurgletOfficial ,

You can change the extension repository to the official one.

I don’t need it tho, I only need Pyright, Python and the catppuccin theme

tostiman ,
@tostiman@sh.itjust.works avatar

Some MS addons still don’t work if you do that, last time I tried

skilltheamps ,

The most unfortunate of which for me is remote development. So convenient, nothing compares :(

HurgletOfficial ,

That’s weird, AFAIk VSCodium only strips telemetry and changes branding. It shouldn’t actively break addon.

Unless they check if they’re running inside of the actual MS VSCode, which could explain why they aren’t working

tostiman ,
@tostiman@sh.itjust.works avatar

IIRC VSCode contains some proprietary, closed source binaries and VSCodium does not. So maybe the MS addons need those binaries

skarn ,

You can get e.g. pylance to work if you trick it:

github.com/VSCodium/vscodium/issues/1640

So, at least in that instance, it’s just Microsoft being a little petty.

al177 , in call the doctor, the CS doctor

Ffs. 16, 8, 4, 2, 1.

Lodra ,
@Lodra@programming.dev avatar

I’m glad I’m not the only one. My son is a year and half old. I’ve been teaching to count on his hand in binary since day 0. He goes wild and celebrates when we reach 31 🙂

Tippon ,

I’m in my mid 40s, and I’ve never thought to count in binary on my fingers. I haven’t needed to use binary for about 30 years, and I’m easily the geekiest of my friends, so I’ve never had an excuse to do it for fun.

You’ve just put a huge smile on my face.

Guess what I’m teaching my kid this week 😁

obosob ,
@obosob@feddit.uk avatar

Most of the time it’s not exactly useful and some of the positions are awkward (e.g. 8, 9, 10), counting to 31 on one hand is maybe useful.

More useful IMO is counting in base 6 and treating each hand as a single digit. i.e counting to 35 on 2 hands without awkward fingerings. Better than 10, less awkward than binary.

Tippon ,

We’re about to start learning how to program, probably with Python, so it could be a good way to start thinking about how computers work. I never would have thought to try other systems though, so I’ll look into base 6. Thanks for the suggestion :)

without awkward fingerings

Oh, the fun I would have had with that phrasing if we weren’t talking about teaching kids… :D

Lodra ,
@Lodra@programming.dev avatar

It does take s little practice but not too much. The awkward positions are easy enough after a few weeks.

I chose binary for two reasons. First, it is occasionally useful to count that high on one hand. Second, the education when he’s older. I hope this will give him a note intuitive understanding of different bases. And binary is specifically useful for understanding comported and software development. I dont intend to push him toward a career in software but I think there’s a fair chance he chooses that anyways.

Plus we’ve made it into something fun 🙂

radix ,
@radix@lemm.ee avatar

My siblings and I always loved the number 4 because our puritanical mother was so casual about sticking her middle finger out at only that moment. That was just about the most taboo thing we could imagine, and it was as a result hilarious.

daniyyel , in Easy peasy

Arstechnica runs on WordPress on AWS, and they have a really nice series of articles about it. Sure, you could use just one EC2 instance for everything, but on a high traffic website you would need a bit more.

agressivelyPassive ,

But how many sites really are high traffic?

That’s the thing with almost all of the cloud stuff: reasonable at scale, but overcomplicated garbage for 95% of the users.

gornius ,

95%? More like 99.999%, considering how many Wordpress sites are there.

And in many of these 0.001% cases, simple horizontal scaling would do the trick.

And if you need more than that, just use something that can work on the edge.

thejodie ,

There’s a big chunk of sites that have WP running but are mostly just static content, confusingly. If you update the content once a month and disable all comments, maybe another tool could fit better there. ¯*(ツ)*/¯

henfredemars ,

I thought the same thing and tried to do a static site generator for a while, but I just liked the WordPress UI too much for composing and editing vs manually placing my images in an assets folder and remembering the file names to add them in my markdown.

Besides, with a good caching solution, isn’t WordPress effectively a static site with extra steps for many use cases?

thejodie ,

I’ve definitely used WP in that manner as well. At that time there were plugins that would render the pages out to static HTML in object storage. I’m sure there still are, but possibly not the same ones I used.

I just prefer not to use or manage WP whenever possible.

dilawar , in Haskell researchers announce new discovery

“I’m kind of surprised I’m the only person on earth who gives a shit about it,” Briars continued. “I’d have thought there would be more people following the press releases closely and then not using Haskell. But they all just skip the press releases and go straight to the not using it part.”

I know right!

rtorlas , in It always gets me

u for undo. vi forever!

Synthead ,

Don’t forget that Vim also keeps every tree of undo history. Wrote someone one way, wanted to try another way, and changed your mind? Switch to the other undo future! Change your mind again? Go back!

And there’s persistent undo, where your undo history is written a file. Quit Vim, power off your machine for 5 years, power it back on, and you can still undo!

Kusimulkku , in Read only friday

I’ll just push the new virus detection files, what’s the worst that could happen

BurningTurtle , in Linus Torvalds to Rewrite the Linux Kernel in PHP
@BurningTurtle@programming.dev avatar

If we are rewriting it, we should use holyc to make it the way god intended.

raman_klogius ,

Ring 0 all the way baybee!!

RickyWars , in I Will Fucking Piledrive You if You mention AI Again

Great read. Even in STEM research as a grad student I’m very tired of every saying “let’s try machine learning on this problem” to get something that works marginally better than some conventional models but requiring huge amounts of computation and data.

xmunk ,

I work professionally with actually useful ML stuff (we parse a lot of weird ass files and it’s extremely powerful in that context) - we’ve looked at integrating gpt3 and it scored much worse on accuracy than the model we trained in-house. We’re also investigating adding front-end AI bullshit to placate the CEO. Even at the good shops, you’ll probably get buried in this bullshit - but there are good opportunities out there!

lazyneet , in this is what peak web traffic looks like

The sad reality is that when you look at the files being requested, it’s usually scrapers looking for exploits.

Kissaki , in I made this
@Kissaki@programming.dev avatar

no no no, this is the wrong way around

because sales and marketing sell it before it even exists

scrubbles OP ,
@scrubbles@poptalk.scrubbles.tech avatar

truth. Why wait for a product at all? Just sell it now, then yell at your engineers for taking so damn long!

jubilationtcornpone ,

Sales: "Can we do this?

Dev: “No, we cannot.”

Sales: “Uhhhh… But I already told the customer we could.”

Dev: “That’s called lying. You lied to the customer.”

Sales: “…So you’ll have it done next week?”

Dev: “I’m going to need at least three weeks.”

Sales: “…But I already told the customer two weeks.”

Dev: Sigh

Emmie , in What it's like to be a developer in 2024

Maybe don’t use google. Kagi, ddg handle it fine

hightrix ,

This is the real answer. Stop using Google search.

force ,

if Kagi were open source sure, but it’s $10 a month and the CEO it is kind of an asshole. And a generative-AI-bro (please don’t make me call them GAI-bros)

I’d rather stick to FOSS solutions

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