programmer_humor

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

_dev_null, in I don't wanna show mine either
@_dev_null@lemmy.zxcvn.xyz avatar

Here’s my last one, I’m pretty fucking boring:

User:

Please provide a comma separated list of US state and territory postal abbreviations, with each item in single quotes.

ChatGPT:

Sure! Here is a comma-separated list of US state and territory postal abbreviations in single quotes:

‘AL’, ‘AK’, ‘AZ’, ‘AR’, ‘CA’, ‘CO’, ‘CT’, ‘DE’, ‘FL’, ‘GA’, ‘HI’, ‘ID’, ‘IL’, ‘IN’, ‘IA’, ‘KS’, ‘KY’, ‘LA’, ‘ME’, ‘MD’, ‘MA’, ‘MI’, ‘MN’, ‘MS’, ‘MO’, ‘MT’, ‘NE’, ‘NV’, ‘NH’, ‘NJ’, ‘NM’, ‘NY’, ‘NC’, ‘ND’, ‘OH’, ‘OK’, ‘OR’, ‘PA’, ‘RI’, ‘SC’, ‘SD’, ‘TN’, ‘TX’, ‘UT’, ‘VT’, ‘VA’, ‘WA’, ‘WV’, ‘WI’, ‘WY’, ‘AS’, ‘DC’, ‘FM’, ‘GU’, ‘MH’, ‘MP’, ‘PW’, ‘PR’, ‘VI’

Please note that AS refers to American Samoa, DC refers to the District of Columbia, FM refers to Federated States of Micronesia, GU refers to Guam, MH refers to Marshall Islands, MP refers to Northern Mariana Islands, PW refers to Palau, PR refers to Puerto Rico, and VI refers to the U.S. Virgin Islands.

tja, in A lot of YAML
@tja@sh.itjust.works avatar
EmergMemeHologram, in JavaScript's days are numbered

Partitioning by integer secobds is dumb.

Just assign 0 to the start of time, 1 to the end of time, and every point between is represented by a double precision floating point number.

For all those who believe time is infinite please apply a logistic transformation to your dates.

chaorace,
@chaorace@lemmy.sdf.org avatar

Um excuse me time actually already ended in 1991

Speiser0, in What's your most obscure binding?

No way, you met json irl?

cyborganism, in My Journey

Imagine graduating in medecine and your employer respects you to be an expert at everything all at once that is related to the human body and being able to perform open heart and brain surgery and doing x-ray imaging and MRIs and being a gynecologist and an an optometrist and a pharmacist all at once.

That’s what being in IT is like. You’re expected to know how to program microcontrollers to mainframes to fucking VCRs and knowing every programming language ever created since electronic computers exist as well as networking and cloud technology and databases, etc. AND you have to be certified in all these things to prove you know them on top of your degree.

Pigeon, in They tried

Not allowing users to access a service at all unless they accept cookies is often against GDPR. See: Can we use ‘cookie walls’?.

To quote:

In some circumstances, this approach is inappropriate; for example, where the user or subscriber has no genuine choice but to sign up. This is because the UK GDPR says that consent must be freely given.

If your use of a cookie wall is intended to require, or influence, users to agree to their personal data being used by you or any third parties as a condition of accessing your service, then it is unlikely that user consent is considered valid.

The key is that individuals are provided with a genuine free choice; consent should not be bundled up as a condition of the service unless it is necessary for that service.

These cookie banners often violate all sorts of GDPR rules even more explicitly than this example. For example did you know it’s not allowed to have pre-ticked boxes on cookie popups for non-essential cookies?

M68040, in GTA 5 Java Coffee shop
@M68040@hexbear.net avatar

The Simpsons: Hit and Run had a similar gag in one of the maps.

Serpent7776, in ifn't

I can actually define this in TCL:


<span style="color:#323232;">% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}}
</span><span style="color:#323232;">% ifn't false {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">}
</span><span style="color:#323232;">12
</span><span style="color:#323232;">% ifn't true {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">}
</span><span style="color:#323232;">% 
</span>
SomeoneWhoIsntMe, in Programming: The Horror Game

I kinda want this to be real…

BatmanAoD,

It’s not too far off from how ed works!

UndercoverUlrikHD,
@UndercoverUlrikHD@programming.dev avatar

How does ed work?

BatmanAoD,

ed, the “standard editor” (according to its man page) and the predecessor of vi (the “visual editor”), is a terminal editor that doesn’t automatically display any of the text you’re working on; you have to use the p (“print”) command to display the lines your wish to see.

UndercoverUlrikHD,
@UndercoverUlrikHD@programming.dev avatar

ಠ_ಠ

pmjv, (edited )
@pmjv@lemmy.sdf.org avatar
BatmanAoD,

If you have a Linux or Mac handy, you can trying it out! It’s…kinda wild. If you know some Vim commands that start with :, there’s a good chance they’ll work in ed, except you don’t type : itself (effectively you’re always in “command mode”).

There’s also a novelty Twitter account, @ed1conf, that tweets about ed.

Some coworkers told me a story about a previous job candidate who said his preferred editor was ed. They thought it would be really interesting to see someone actually use it. But during the actual interview, when he opened ed, he didn’t recognize or understand it; he was actually accustomed to a graphical editor that he thought was called ed because he apparently did all his work on a system where someone had symlinked or aliased ed to a modern tool.

nickwitha_k, in The Perfect Solution

Quick! Make this a library, then encourage its widespread use. Nothing could go wrong. Who’s that behind me? No, one. No. It’s absolutely not node.js.

luciole, in ifn't
@luciole@beehaw.org avatar

I shan’t!

max, in ifn't

;-;

TankieTanuki, (edited ) in What you are according to you fav language

Can some nerd tell me what the rightmost two on the bottom row are?

Edit: Didn’t notice how old this post was.

sag,
@sag@lemy.lol avatar

Second last on bottom row is swift use to build mac or ios software.

cupcakezealot, in Every goddamn time
@cupcakezealot@lemmy.blahaj.zone avatar

except lex. she took forever to get in and reactivate the door locks.

db2, in The Perfect Solution

f

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