programmer_humor

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

agilob, in Yes
@agilob@programming.dev avatar

Before nginx was a thing, I worked with a guy who forked apache httpd and wrote this blog in C, like, literally embedded html and css inside the server, so when he made a tpyo or was adding another post he had to recompile the source code. The performance was out of this world.

Schmeckinger,

There are a lot of solutions like that in rust. You basically compile the template into your code.

bazsalanszky,
@bazsalanszky@lemmy.toldi.eu avatar

This reminds me of one of my older projects. I wanted to learn more about network communications, so I started working on a simple P2P chat app. It wasn’t anything fancy, but I really enjoyed working on it. One challenge I faced was that, at the time, I didn’t know how to listen for user input while handling network communication simultaneously. So, after I had managed to get multiple TCP sockets working on one thread, I thought, why not open another socket for HTTP communication? That way, I could incorporate a fancy web UI instead of just a CLI interface.

So, I wrote a simple HTTP server, which, in hindsight, might not have been necessary.

agilob, in GoOn
@agilob@programming.dev avatar

:00 - :ff

Edit: Just learnt this can be also noted as:

:: - ::f

shootwhatsmyname, in GoOn
@shootwhatsmyname@lemm.ee avatar

one of them has a 7 I’m pretty sure

GammaGames, in GoOn

0.0.0.0/0

wolo, 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.

henfredemars, in The app doth protest too much, methinks

Upon the web, a cipher dance delayed, An SSL error in its code displayed. In cryptic realms, where data ought to flow, A falter in the handshake, whispers woe.

– ChatGPT

From one program to another I suppose.

subignition, in Oh yea, that's the good stuff **huffs glue**
@subignition@fedia.io avatar

Definitely looks unsafe to me.

henfredemars, in Implemented as requested

I don’t hate it. Seems functional.

xusontha, in The app doth protest too much, methinks

The server’s embrace, it turns cold,

An SSL error, its tale is told

Spaghetti_Hitchens,

The server balks, digital hands doth sunder,
Thine client's refused for its handshake blunder.

mateomaui, in Correcting > Helping

This is like putting a $10 price tag on a free sidewalk item so someone will steal it.

GBU_28, in Merge then review

Let the users do the testing

ArmoredThirteen,

Oh hey a fellow game dev, how long you been in the industry?

tetris11, in The classic font size exploit
@tetris11@lemmy.ml avatar

It very well might be a real exploit. Lemmy was briefly taken down by an XS attack using the emoji library… so who knows, maybe a 3000% smiley face is all that is needed

Fogle,

I think there a lot of phone scammers that use font size to hide all the shit they’re doing. Like they make shit so small so that the old people can’t see anything

sar1n, in The classic font size exploit

Dig that color theme though

funkajunk,
@funkajunk@lemm.ee avatar

My guess is Monokai?

backhdlp, in The classic font size exploit
@backhdlp@lemmy.blahaj.zone avatar

Everything looks like hacker with syntax highlighting

xmunk,

Just so long as it’s in dark mode. Light backgrounds burn my eyes after spending so much time in my mom’s basement subsisting only on hotpockets and grits straight off Natalie Portman.

will_a113, in Merge then review

Having a hard time determining whether this is sarcasm or not. Then I see the phrase “JavaScript Engineer” and become doubly confused.

RonSijm,
@RonSijm@programming.dev avatar

I don’t think it’s satire, this guy is actively defending this on Linkedin: i.imgur.com/SlJPG85.png

Blackmist,

I distinguish four types. There are clever, hardworking, stupid, and lazy officers. Usually two characteristics are combined. Some are clever and hardworking; their place is the General Staff. The next ones are stupid and lazy; they make up 90 percent of every army and are suited to routine duties. Anyone who is both clever and lazy is qualified for the highest leadership duties, because he possesses the mental clarity and strength of nerve necessary for difficult decisions. One must beware of anyone who is both stupid and hardworking; he must not be entrusted with any responsibility because he will always only cause damage.

– Kurt von Hammerstein

LinkedIn is Facebook for that last type.

Aviandelight,
@Aviandelight@mander.xyz avatar

That’s a relief because I thought I’d stumbled into LinkedIn Lunatics for a hot second.

BatmanAoD,

Wow, of course he’s pretending the response is a misrepresentation of his opinion instead of defending it in good faith.

Quik,

I think the latter makes clear that this is a joke account, doesn’t it?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #