Random Memes

Back navigation is broken on this page because of the randomness - it's a feature, not a bug! So save your post before navigating back to this page lol, coz it ain't gonna remember your scroll position.

Useless Thoughts

uselessThoughts | regex-memes | ProgrammerHumor.io
Content "Regex" should be actually named as "Irregex" we always use it to identify something that is not regular! yuva.krishna.memes

Nobody uses flairs anymore. Best practice is to use titles.

Nobody uses flairs anymore. Best practice is to use titles. | ProgrammerHumor.io
Content All reposts on this sub should get a "This meme has been marked as duplicate" flair

I cringe when I see my old code

I cringe when I see my old code | code-memes | ProgrammerHumor.io
Content 2019 ME CODE I WROTE 2 YEARS AGO ProdrammerHumor.io

Visual Studio My Beloved

visualStudioMyBeloved | ide-memes | ProgrammerHumor.io
Content I FUCKING HATE (YOU AND HOPE YOU DIE , I like my IDE it's so convenient

The Redundancy Department Of Redundancy

The Redundancy Department Of Redundancy
Behold, the classic "belt and suspenders" approach to software engineering! Someone decided to publish that config data twice—once inside the conditional and once outside—because why risk it only being published once, right? This is like ordering pizza, then immediately ordering the exact same pizza again just in case the first one doesn't arrive. The second call will always execute regardless of the condition, making the entire if-statement completely pointless. Somewhere in a code review, a senior developer is quietly dying inside.

That One Friend With The App Idea Of The Year

thatOneFriendWithTheAppIdeaOfTheYear | idea-memes, ide-memes | ProgrammerHumor.io
Content Login P EMAI

The AI Adoption Crisis

The AI Adoption Crisis
The cat's face says it all. You spend years mastering development, only to have management add AI to your job requirements. Now you're drowning in Stack Overflow trying to figure out how to make ChatGPT produce code that doesn't look like it was written by a caffeinated monkey with a keyboard. The dog got adopted - your sanity didn't.

Motion Blur

Motion Blur
Oh my gosh, the eternal battle between gamers and devs over motion blur! 😂 Gamers are like "BURN IT WITH FIRE" while developers are just smugly like "Nope, it stays." Motion blur is that graphics setting that makes fast movement look... well, blurry. Gamers hate it with the passion of a thousand suns because it can make competitive gameplay harder and sometimes causes nausea. Meanwhile, devs keep adding it to games because it hides frame rate issues and makes games look more "cinematic." First thing every hardcore gamer does with a new game? Frantically search the settings menu to turn that blur off! The struggle is real!

It Is Optimized Tho

itIsOptimizedTho | ProgrammerHumor.io
Content when you optimize the program to 0(n) from O(mn) but now nmn 0 040( 0 11 89353. 35 B Tehe 0 0 1 0 11 1 on 11 1 g proffknol perogrammer

Yes Linux Is Much Better

Yes Linux Is Much Better
The eternal Linux paradox in three panels. First, we're all high and mighty about how "Linux is superior!" Then reality hits when we need to do something basic like print a document or play a game. Suddenly we're sheepishly booting into Windows like the tech hypocrites we are. Twenty years of Linux evangelism and I still keep that Windows partition for "emergencies" (aka anything requiring normal human functionality). The dirty secret of every Linux purist is that Windows backup they never mention in forum arguments.

I'm getting second thoughts about whether accepting this job was a good idea.

I'm getting second thoughts about whether accepting this job was a good idea. | html-memes, code-memes, php-memes, design-memes, cms-memes, errors-memes, version-memes, django-memes, xml-memes, oracle-memes, function-memes, facebook-memes, warning-memes, error-memes, fix-memes, cli-memes, jar-memes, IT-memes, component-memes, idea-memes, ide-memes, ML-memes, header-memes, vm-memes | ProgrammerHumor.io
Content ?php header ("Content-type: texthtml; charsetutf-8"); This is a warning to any poor soul who may have to deal with this code. I took over this criminal piece of chaos from a monkey named Joel who I assume had been given a typewriter by Mephistopheles himself. For reasons I have yet been unable to fathom, he decided to patch together this thing using a BaseX setup hardwired into an unfixably broken Manjaro VM, queried by a handwritten plate of uncommented PHP spaghetti fit to feed an army of people with a serious death wish, without any framework or CMS. The very long BaseX script, very long PHP presenter and very long XSLT stylesheet mostly perform the same heuristic document structuring for different components and are supposed to produce compatible results, but I bet they have mismatches somewhere. Since Prof. T just wanted a few small functional enhancements, I decided to just patch it and keep the general setup. Unless you were hired to correct some spelling mistakes, DO NOT FOLLOW IN MY STEPS. Putting up with this simulation of how a goldfish would design a system has literally given me CLINICAL DEPRESSION. This is not an exaggeration, I am writing this after a prolonged medical therapy - mostly successful, thanks for asking, but not fun. I wouldn't wish this code on anybody who isn't a manager at Oracle or Facebook, and therefore give you this sincere advice: Nuke this. Take the XSLT if you must, and then nuke the app and recreate it in Django or whatever works for you. I would do it myself, but I risked a relapse simply by opening this file again to write this comment. Dear brother or sister, I wish you all the luck and strength in the world and hope it will be enough. Farewell. error reporting (E ALL); ini set("display errors" true); print('?yml version"1.0" encodina" TF.8" ?' "n"):?

The joys of StackOverflow

The joys of StackOverflow | stackoverflow-memes, stack-memes, try-memes, random-memes, apple-memes, overflow-memes, IT-memes, mac-memes, feature-memes | ProgrammerHumor.io
Content 2 Answers Active Oldest Votes Use shuf with the -n option as shown below, to get N random lines: 541 shuf -n N input output share improve this answer follow edited Jun 16 '16 at 20:48 DomainsFeatured 1,234 0 1 0 18 29 answered Feb 25 '13 at 11:03 dogbane 226k 69 351 388 35 This should be the accepted answer. Wow, shuf is sooo fast. - picking 10000 random lines from a textile with 40000 lines is instant. Trying to use 'sort -R' took so long I just CTRL-C it - carpii Jul 3 '15 at 20:10 2 If you just need a random set of lines, not in a random order, then shuf is very inefficient (for big file): better is to do reservoir sampling, as in this answer. - petrelharp Sep 6 '15 at 23:24 4 neither shuf nor sort -R are available for mac OSX. any suggestions? - Tom Smith Oct 6 '15 at 10:06 33 TomSmith On Mac OSX, if you are using Homebrew, you can get shuf or GNU sort by installing coreutils . More info here: apple.stackexchange.comquestions142860install-shuf-on-os-x - nofinator Oct 8 '15 at 13:11 7 shuf is fantastic. I tried in on a 78 Billion line text file and it did the job in less than 1 minute. - Ash Jan 19 '16 at 812 7 shuf is fantastic. I tried in on a 78 Billion line text file and it did the job in less than 1 minute. - Ash Jan 19 '16 at 8:13 78 Billion line text file The WHAT