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.

Arghblarg , in i are programmer
@Arghblarg@lemmy.ca avatar

Order link? I can haz mug pleez

nils OP ,

Closest I could find is this mug and of course it’s on Etsy.

TheWinged7 ,
Zikeji ,
@Zikeji@programming.dev avatar

Use extreme caution ordering from this link. The account recommending it is sketchy.

The domain of the website itself was registered just over a year ago.

If you look at the descriptions and reviews they all are obviously fake.

The address on the contact us page is for a printing company, which suggests this site itself is likely dropshipping (this isn’t inherently wrong).

You’ll probably receive your order, but you’re trusting your info to an a website that is sketchy at best, and isn’t paying the original artist.

TheWinged7 ,

I guess I get why my account seems sketchy, I generally lurk and upvote only and this has been my first comment ^^;

I agree with the website probablybeing a dropshipping company, but it’s the only place that the image shows up in a reverse image search other than this post.

I can’t even find the source image anywhere, just similar versions with different cats and computers

Zikeji ,
@Zikeji@programming.dev avatar

Thanks for the well reasoned reply. Your original comment and no history reminded me of similar stuff on Reddit lol.

Your reply inspired me to try and find it as well.

I managed to find it in poster form, from what may possibly be the original artist: www.redbubble.com/i/…/113977661.UZX4H

I also managed to find dozens of versions of it as tshirts using the search term "i are programmer beep boop cat* on Google images.

ErrorCode0 , in Welcome to Programmer Humor

I might have scrolled down too far lol

GenderNeutralBro , in PlEaSe CeNtEr ThAt DiV

The web killed the Internet.

JavaScript killed the web.

CSS defiled its corpse.

Honestly and without any trace of irony, I wish CSS would die and be replaced by maybe half a dozen new HTML tags to support a few specific responsive design patterns.

CSS runs counter to the concept of HTML. Web design used to be inherently user-centric. The designer was not supposed to have much of a say in how it looked on a client’s system, because that was up to the client. The designer only provided high-level hints like “this is a paragraph” or “this is emphasized”. The browser decided how a paragraph should be displayed, which fonts to use, etc.

Over time, visual designers clawed more and more control from the user, much to the detriment of the entire rest of the world.

99% of web sites would be better if they conformed to basic semantic markup. Low-level design parameters should not exist on the web.

It’s a straight line from CSS to Google’s new trusted web bullshit. It’s all about wresting control away from the user and giving it to the site designer. Fuck you, site designer. My eyeballs do not belong to you.

FreeloadingSponger , in Writing C++ is easy.

MySQL: you have an error near here.

Me: What’s the error?

MySQL: It’s near here.

Me: You’re not going to tell me what the error is? Okay, near where? Here?

MySQL: warmer… warmer…

marcos ,

Oracle: You have this error in line 1

User: Hey, no, there isn’t anything to cause this error in line 1

Oracle: I’m telling you, it’s in line 1

User: Hum… How many lines are in my 10 lines query?

Oracle: 1

CanadaPlus , in Writing C++ is easy.

Haskell errors:

Iä! Iä! Cthulhu (b -> (a -> c)) -> (b -> (c -> c)) -> a fhtagn! Ph’nglui mglw’nfah [[a]] Cthulhu R’lyeh wgah’nagl fhtagn!

[45 lines of scopes]

Once you understand the type system really well and know which 90% of the error information to discard it’s not so bad, I guess.

ihavenopeopleskills , in Writing C++ is easy.
@ihavenopeopleskills@kbin.social avatar

C just shrugs and says "Seg Fault."

frostwhitewolf ,

Probably forgot a semicolon

Hexarei ,
@Hexarei@programming.dev avatar

This joke is never funny; Forgetting a semicolon in c results in compile time errors, not runtime errors

Jedi , in I think I'm switching, I like the new UI
@Jedi@bolha.forum avatar

I’ve made the move a few years ago. I really like the “IDE” experience instead of the “code editor” one.

“Oh, but it takes so much RAM”, yup… So does all those electron apps I have to use alongside VSCode, that are built in webstorm…

NegativeLookBehind , in Some people just can't pace themselves
@NegativeLookBehind@kbin.social avatar

Hello world AI

Xylight , in Some people just can't pace themselves
@Xylight@lemmy.xylight.dev avatar

Same community reposts are back on Lemmy 😔

ImpossibleRubiksCube , in Some people just can't pace themselves

“AI” means nothing. If you want to learn about machine learning algorithms, neutral network programming (actual programming), heuristic collective intelligence, or path finding, then maybe we can have a conversation.

wischi ,

Of course AI does mean something - but it’s a very broad term. It’s a bit like saying you want to buy a vehicle. Could be a boat, car, truck or even a zeppelin.

Nobug404 , in if else if else if else
julianh , in Javascript is the most popular scripting language in use today

Don’t forget jsfuck

selawdivad , in unrolling loops is efficient, right?

One of the first real programs I wrote was a program to display telemetry data from a CAN bus. I was on the solar car team at uni, and we wanted to be able to view the data from the various systems live during the race. The CAN network was connected to a CAN-ethernet converter, which sent UDP packets over a wireless ethernet link to our lead car. I had no experience with networking, or UDP or CAN at all, but I had some documentation and a lot of free time, so I got to work.

Each device on the CAN network had a bit mask to identify it. For example, the bit mask for the motor controller might have been 0x1200. This meant that any packet starting with 0x12 belonged to the motor controller. For example, 0x1201 was one type of message, and 0x1202 another type, but both belonged to the motor controller.

There was specific logic for each device on the network, so you needed to first figure out which device owned a packet using the bit mask, then apply the relevant logic to decode the packet.

Looking back, I realise the correct way to approach this would be to have a list of bit masks:


<span style="color:#323232;">0x1200
</span><span style="color:#323232;">0x1300
</span><span style="color:#323232;">0x1400
</span>

Then simply bitwise & any incoming packet with 0xff00, and lookup the result in the list of bit masks.

Not knowing better however, what I actually did was create a giant dictionary of every possible packet value, so I could lookup any packet and determine which system it came from. This was so repetitive that I had to make use of my newfound super-power – vim macros – to complete the 8000 line dictionary…

Excerpt from real code below:


<span style="color:#323232;">{
</span><span style="color:#323232;">    0x102:
</span><span style="color:#323232;">    {
</span><span style="color:#323232;">        'name':             'SHUNT_CMU_STATUS_TEMPERATURE_AND_VOLTAGE_1_2',
</span><span style="color:#323232;">        'data':
</span><span style="color:#323232;">        [
</span><span style="color:#323232;">            'cell_0_voltage',
</span><span style="color:#323232;">            'cell_1_voltage',
</span><span style="color:#323232;">            'cell_2_voltage',
</span><span style="color:#323232;">            'cell_3_voltage',
</span><span style="color:#323232;">        ],
</span><span style="color:#323232;">        'unpack_string':    'intle:16, intle:16, intle:16, intle:16'
</span><span style="color:#323232;">    },
</span><span style="color:#323232;">
</span><span style="color:#323232;">    0x103:
</span><span style="color:#323232;">    {
</span><span style="color:#323232;">        'name':             'SHUNT_CMU_STATUS_TEMPERATURE_AND_VOLTAGE_1_3',
</span><span style="color:#323232;">        'data':
</span><span style="color:#323232;">        [
</span><span style="color:#323232;">            'cell_4_voltage',
</span><span style="color:#323232;">            'cell_5_voltage',
</span><span style="color:#323232;">            'cell_6_voltage',
</span><span style="color:#323232;">            'cell_7_voltage',
</span><span style="color:#323232;">        ],
</span><span style="color:#323232;">        'unpack_string':    'intle:16, intle:16, intle:16, intle:16'
</span><span style="color:#323232;">    },
</span><span style="color:#323232;">}
</span>
Karyoplasma ,

If it works, it works. Let your successor worry about maintainabilty.

coloredgrayscale , in unrolling loops is efficient, right?

300 nested if statements, (…) added another 5000 nested if statements.

At this point I want to doubt that they actually wrote it themselves, vs writing a metaprogram to generate the code.

TheSaneWriter , in rule
@TheSaneWriter@lemmy.thesanewriter.com avatar

Honestly, this is a good rule for programming in general. With user input, make sure it’s in its own area where it can’t interact with anything else and make sure to read and process in such a way that it can’t fuck with the operation of the program.

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