this post was submitted on 28 Dec 2023
1469 points (99.3% liked)

Programmer Humor

19623 readers
28 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
1469
Good luck web devs (lemmy.world)
submitted 11 months ago* (last edited 11 months ago) by Zangoose@lemmy.world to c/programmer_humor@programming.dev
 

Alt text:Twitter post by Daniel Feldman (@d_feldman): Linux is the only major operating system to support diagonal mode (credit [Twitter] @xssfox). Image shows an untrawide monitor rotated about 45 degrees, with a horizontal IDE window taking up a bottom triangle. A web browser and settings menu above it are organized creating a window shape almost like a stepped pyramid.

Edit: alt text

top 50 comments
sorted by: hot top controversial new old
[–] Zangoose@lemmy.world 244 points 11 months ago (15 children)
[–] QuazarOmega@lemy.lol 166 points 11 months ago (1 children)

Hmm yes, web dev horrors beyond my comprehension!

[–] grue@lemmy.world 38 points 11 months ago (16 children)

That, right there, is a perfect example of why folks need to stop trying to shoehorn web apps everywhere they don't belong. It's a use-case for a proper native mobile app if ever there was one.

[–] owsei@lemmy.world 27 points 11 months ago (1 children)

even if it's just mobile

you already have to handle landscape/portrait mode

now imagine having to handle angled

[–] grue@lemmy.world 30 points 11 months ago* (last edited 11 months ago) (5 children)

That's why you should've just handled arbitrary rotations instead of inventing a finite predefined set of orientation "modes" in the first place.

Things get a lot easier in the long run if you aggressively look for commonalities and genericize the code that handles them instead of writing bunches of one-off special cases.

[–] xmunk@sh.itjust.works 44 points 11 months ago (3 children)

And this is why my webapp only renders properly on circular displays.

[–] WhiskyTangoFoxtrot@lemmy.world 25 points 11 months ago

Mine only renders on moebius strips.

load more comments (2 replies)
load more comments (4 replies)
load more comments (15 replies)
[–] AVincentInSpace@pawb.social 44 points 11 months ago (8 children)

Why does this low key feel like something I would actually want to use

load more comments (8 replies)
load more comments (13 replies)
[–] Plibbert@lemmy.ml 196 points 11 months ago (3 children)
[–] lurch@sh.itjust.works 61 points 11 months ago (1 children)

They put touchscreens on doorstops now? /s

[–] xmunk@sh.itjust.works 65 points 11 months ago

Java truly runs on everything.

[–] LilB0kChoy@midwest.social 25 points 11 months ago (3 children)

Embrace the power of the pyramid.

load more comments (3 replies)
load more comments (1 replies)
[–] grue@lemmy.world 154 points 11 months ago (1 children)

BRB, sticking microcontrollers to the back of my monitors so I can use their accelerometers to report the orientations in real time...

[–] AVincentInSpace@pawb.social 68 points 11 months ago (1 children)

I would love it so much if xrandr was able to keep up with that and didn't blink for 3 seconds every time you changed orientation

[–] baduhai@sopuli.xyz 17 points 11 months ago

Maybe a custom Wayland compositor could keep up

[–] cupcakezealot@lemmy.blahaj.zone 94 points 11 months ago* (last edited 11 months ago) (1 children)

Linux is the only major operating system ~~to support diagonal mode~~

[–] MashedTech@lemmy.world 65 points 11 months ago (10 children)

I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!

[–] brbposting@sh.itjust.works 76 points 11 months ago (15 children)

No, Richard, it's 'Linux', not 'GNU/Linux'. The most important contributions that the FSF made to Linux were the creation of the GPL and the GCC compiler. Those are fine and inspired products. GCC is a monumental achievement and has earned you, RMS, and the Free Software Foundation countless kudos and much appreciation.

Following are some reasons for you to mull over, including some already answered in your FAQ.

One guy, Linus Torvalds, used GCC to make his operating system (yes, Linux is an OS -- more on this later). He named it 'Linux' with a little help from his friends. Why doesn't he call it GNU/Linux? Because he wrote it, with more help from his friends, not you. You named your stuff, I named my stuff -- including the software I wrote using GCC -- and Linus named his stuff. The proper name is Linux because Linus Torvalds says so. Linus has spoken. Accept his authority. To do otherwise is to become a nag. You don't want to be known as a nag, do you?

(An operating system) != (a distribution). Linux is an operating system. By my definition, an operating system is that software which provides and limits access to hardware resources on a computer. That definition applies whereever you see Linux in use. However, Linux is usually distributed with a collection of utilities and applications to make it easily configurable as a desktop system, a server, a development box, or a graphics workstation, or whatever the user needs. In such a configuration, we have a Linux (based) distribution. Therein lies your strongest argument for the unwieldy title 'GNU/Linux' (when said bundled software is largely from the FSF). Go bug the distribution makers on that one. Take your beef to Red Hat, Mandrake, and Slackware. At least there you have an argument. Linux alone is an operating system that can be used in various applications without any GNU software whatsoever. Embedded applications come to mind as an obvious example.

Next, even if we limit the GNU/Linux title to the GNU-based Linux distributions, we run into another obvious problem. XFree86 may well be more important to a particular Linux installation than the sum of all the GNU contributions. More properly, shouldn't the distribution be called XFree86/Linux? Or, at a minimum, XFree86/GNU/Linux? Of course, it would be rather arbitrary to draw the line there when many other fine contributions go unlisted. Yes, I know you've heard this one before. Get used to it. You'll keep hearing it until you can cleanly counter it.

You seem to like the lines-of-code metric. There are many lines of GNU code in a typical Linux distribution. You seem to suggest that (more LOC) == (more important). However, I submit to you that raw LOC numbers do not directly correlate with importance. I would suggest that clock cycles spent on code is a better metric. For example, if my system spends 90% of its time executing XFree86 code, XFree86 is probably the single most important collection of code on my system. Even if I loaded ten times as many lines of useless bloatware on my system and I never excuted that bloatware, it certainly isn't more important code than XFree86. Obviously, this metric isn't perfect either, but LOC really, really sucks. Please refrain from using it ever again in supporting any argument.

Last, I'd like to point out that we Linux and GNU users shouldn't be fighting among ourselves over naming other people's software. But what the heck, I'm in a bad mood now. I think I'm feeling sufficiently obnoxious to make the point that GCC is so very famous and, yes, so very useful only because Linux was developed. In a show of proper respect and gratitude, shouldn't you and everyone refer to GCC as 'the Linux compiler'? Or at least, 'Linux GCC'? Seriously, where would your masterpiece be without Linux? Languishing with the HURD?

If there is a moral buried in this rant, maybe it is this:
Be grateful for your abilities and your incredible success and your considerable fame. Continue to use that success and fame for good, not evil. Also, be especially grateful for Linux' huge contribution to that success. You, RMS, the Free Software Foundation, and GNU software have reached their current high profiles largely on the back of Linux. You have changed the world. Now, go forth and don't be a nag.

Thanks for listening.

load more comments (15 replies)
[–] UdeRecife@literature.cafe 21 points 11 months ago (1 children)

I've been using it for more than 20 years, but I still love when someone pulls the GNU/Linux card.

To me it feels like reading an old plaque in Latin. It reminds me of an important past that shouldn't be forgotten.

[–] MashedTech@lemmy.world 14 points 11 months ago* (last edited 11 months ago) (2 children)

Christians quote the bible, Muslims quote the Quran and we have our own set of sacred texts.

load more comments (2 replies)
[–] ylph@lemmy.world 21 points 11 months ago (5 children)

You can have a Linux distro without GNU -Alpine Linux is a popular example

load more comments (5 replies)
load more comments (7 replies)
[–] redcalcium@lemmy.institute 73 points 11 months ago (1 children)

Not on wayland, right? Time to pester wayland devs to add this important missing features!

[–] nickwitha_k@lemmy.sdf.org 30 points 11 months ago

Probably would fall into scope of a compositer in Wayland, rather than the protocol. I suspect it originated with old CRT displays. Sometimes they can appear scan diagonally.

Even without that usecase, I think it's great to have around in order to support novel displays and display-like devices.

[–] Kolanaki@yiffit.net 53 points 11 months ago (4 children)

How many minor operating systems support it? 🤔

[–] backhdlp@lemmy.blahaj.zone 16 points 11 months ago (1 children)

I'm assuming most that can run Xorg.

load more comments (1 replies)
load more comments (3 replies)
[–] RIP_Cheems@lemmy.world 52 points 11 months ago (12 children)
[–] asterfield@lemmy.world 95 points 11 months ago (3 children)

What if your monitor has a bullet hole you want to avoid looking at?

[–] RIP_Cheems@lemmy.world 44 points 11 months ago (6 children)

Why does your monitor have a bullet hole?

[–] Jerkface@lemmy.world 96 points 11 months ago* (last edited 11 months ago) (1 children)

Why do you ask so many questions? ಠ⁠_⁠ಠ

[–] RIP_Cheems@lemmy.world 23 points 11 months ago (2 children)

Why don't you answer them?

[–] Godnroc@lemmy.world 56 points 11 months ago

Because then words like "evidence" and "premeditated" get thrown around.

[–] nossaquesapao@lemmy.eco.br 37 points 11 months ago* (last edited 11 months ago)

Because asking and answering too many questions was exactly how they ended up with a bullet hole in their monitor.

[–] JJROKCZ@lemmy.world 19 points 11 months ago

American schools

load more comments (4 replies)
load more comments (2 replies)
[–] anarchist@lemmy.ml 94 points 11 months ago (1 children)

to display Java class names on a single line

load more comments (1 replies)
[–] baduhai@sopuli.xyz 18 points 11 months ago (1 children)
load more comments (1 replies)
load more comments (9 replies)
[–] xX_fnord_Xx@lemmy.world 42 points 11 months ago (1 children)

Finally, Peewees Playhouse has found open source representation.

load more comments (1 replies)
[–] lynx@sh.itjust.works 24 points 11 months ago (6 children)

How can you do fractional rotation? Does it only work with x11 or is it also supported in wayland?

[–] Chewy7324@discuss.tchncs.de 31 points 11 months ago (4 children)

Rotating the display by a custom angle is possible through xrandr on X.org.

There's no Wayland protocol for custom angle rotation, and I don't expect anyone to create a protocol extension without a use-case.

My wild guess: Theoretically it should be possible for a compositor to support similar custom rotation, as applications simply draw to their surface (window), without knowing how and where it is displayed on the viewport (display).

But it might require quite a bit of work, depending on the project, so I don't expect to ever see custom rotation on anything besides smaller/niche compositors.

[1] https://unix.stackexchange.com/questions/552138/rotate-a-display-by-custom-angle#552140

[–] nintendiator@feddit.cl 17 points 11 months ago

There’s no Wayland protocol for custom angle rotation, and I don’t expect anyone to create a protocol extension without a use-case.

Puh-lease. It's Wayland; the devs fully and honestly expect every app developer (eg.: calc, Libreoffice, notepad.exe) to implement custom angle rotation on their own.

load more comments (3 replies)
[–] Vilian@lemmy.ca 15 points 11 months ago (1 children)
load more comments (1 replies)
load more comments (4 replies)
[–] gravitas_deficiency@sh.itjust.works 23 points 10 months ago

Who hurt you

[–] Illecors@lemmy.cafe 22 points 11 months ago (2 children)

I remember seeing the video of this. The guy was doing it for shits and giggles, but it ended up looking great!

load more comments (2 replies)
[–] doctorcrimson@lemmy.world 21 points 10 months ago (1 children)

Ha~! WebDevs haven't cared about desktop for years.

load more comments (1 replies)
[–] syd@lemy.lol 16 points 11 months ago (1 children)

I won't try implement something like this even my boss forces me.

load more comments (1 replies)
load more comments
view more: next ›