programming.dev

wolo, to programmer_humor in Yes

my website’s backend is made with bash, it calls make for every request and it probably has hundreds of remote arbitrary code execution bugs that will get me pwned someday, it’s great

edit: to clarify, it uses a rust program i made to expose the bash scripts as http endpoints, i’m not crazy enough to implement http in bash

it behaves like a static file server, but if a file has the others-execute permission bit set it executes the file instead of reading it

it’s surprisingly nice for prototyping since you can just write a cli program and it’s automatically available over http too

gandalf_der_12te,

you do realize that you can just use Apache instead of writing your own rust program for this, as this is more or less the CGI standard?

wolo,

I know about the CGI standard, but mine does things a little differently (executable files don’t just render pages but also handle logging, access control, etc. when put in special positions within a directory), so I still think it was worth the afternoon i spent making it.

PupBiru,
@PupBiru@kbin.social avatar

who hurt you?

wolo,

i thought it was neat how php lets you write your website’s logic with the same directory tree pattern that clients consume it from, but i didn’t want to learn php so i made my own, worse version

bdonvr,

I designed a chip architecture that runs bash code on silicon.

I reimplemented x86 assembly in purely bash script.

junfel, to memes in Reddit be like

Byeeeee

dansity, to memes in Reddit be like

Even worse if you take your time, register with 10min mail and the content is not what you are looking for

floofloof, to programmer_humor in Programming: The Horror Game

Makes a change from Visual Studio turning white because it has hung yet again.

victorz, to programmer_humor in Fitbit Clock Face

It’s perfect 🥹

starkzarn, to programmer_humor in My coding skill V/S My GitHub Repositories

I don’t know how you got a picture of me, but I demand it is removed!

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

Nailed it 😜

Sabre363, to memes in not this again

It’s ok, jesus can just get some guy on the street to deal with the cross for him.

prole,

Right? What a lazy bum, couldn’t even carry his own cross through the streets. Pussy.

scytale, to memes in Appreciate all the content though

There’s also the cheese_greater guy who always posts on asklemmy.

fraydabson, to programmer_humor in We're not the same! (period)

Lol is it bad this is the reason I setup a self hosted gitea instead of GitHub

beefsquatch, to programmer_humor in GitHub Desktop or Git CLI?
@beefsquatch@programming.dev avatar

Sublime Merge, for most items in the UI it tells you the git command it will use

paul, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?

do git commit -v and then just summarize the diff you have in your editor in a human readable form.

ethd, to memes in 6÷2(1+2)

I don’t have much to say on this, other than that I appreciate how well-written this deep dive is and I appreciate you for writing it. People get so polarized with these viral math problems and it baffles me.

kubica, to programmer_humor in 1 follower on GitHub = 1000 followers on other platforms 😅
@kubica@kbin.social avatar

I want to follow commits not tweets.

Adkml, to memes in 6÷2(1+2)

The ambiguous ones at least have some discussion around it. The ones I’ve seen thenxouple times I had the misfortune of seeing them on Facebook were just straight up basic order of operations questions. They weren’t ambiguous, they were about a 4th grade math level, and all thenpeople from my high-school that complain that school never taught them anything were completely failing to get it.

I’m talking like 4+1x2 and a bunch of people were saying it was 10.

hamburglar26,
@hamburglar26@wilbo.tech avatar

Oof, even my smooth brain can get that one right.

Brak,
@Brak@hexbear.net avatar

I’m talking like 4+1x2 and a bunch of people were saying it was 10.

agony-shivering

the answer is 6 though, right?

fallingcats,

No, the aswer clearly is 2x+4.

Brak,
@Brak@hexbear.net avatar

my brain hurts again

fallingcats,

I refuse to accept x as a multiplication sign. Multiplication ist either or maybe * but never x and certainly not ×, because that’s a cross product

RickyRigatoni, to memes in 6÷2(1+2)
@RickyRigatoni@lemmy.ml avatar

My years out of school has made me forget about how division notation is actually supposed to work and how genuinely useless the ÷ and / symbols are outside the most basic two-number problems. And it’s entirely me being dumb because I’ve already written problems as 6÷(2(1+2)) to account for it before. Me brain dun work right ;~;

olafurp,

There’s no forms consensus on which one is correct. To avoid misunderstanding mathematicians use a horizontal bar.

RickyRigatoni,
@RickyRigatoni@lemmy.ml avatar

The one that is least ambiguous is objectively more correcter.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #