programmer_humor

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

Zangoose, in Good luck web devs
@Zangoose@lemmy.world avatar
QuazarOmega,

Hmm yes, web dev horrors beyond my comprehension!

grue,

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,

even if it’s just mobile

you already have to handle landscape/portrait mode

now imagine having to handle angled

grue, (edited )

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,

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

flambonkscious,

Peak evil - well done. How much is the extra fee to wrap a letterbox around the circle on a conventional aspect ratio?

There’s good money in this idea!

WhiskyTangoFoxtrot,

Mine only renders on moebius strips.

CallumWells,

Personally I went for the globe display, because I figured that was a more globally applicable format.

owsei,

true

however

everything would be fluid in the layout and you would need to set what should go on top of what. And having this feature doesn’t seem worth the hassle of making if work, or even using it.

Imagine trying to type in a ‘fluid’ keyboard

TBH tho, seems like a cool gimmick for some apps.

rambaroo,

That’s called over-engineering for use cases that don’t and won’t exist. Please lecture us some more though.

hex,

And that’s called Responsive web design

MonkderZweite, (edited )

You mean the browser handles alignment instead of every single web dev?

TrickDacy,
@TrickDacy@lemmy.world avatar

shoehorn web apps everywhere they don’t belong

Who is doing that? In my experience, “web apps” are on the web or occasionally on desktop and are fine. Slack for example, is a fabulous desktop app and has used web tech from day one to great success

Zangoose,
@Zangoose@lemmy.world avatar

VS code is an electron app, there are a few others that have a simple enough purpose that they shouldn’t be using a whole dedicated chrome engine to function.

TrickDacy,
@TrickDacy@lemmy.world avatar

Vs code is an exemplary app and supports what I’m saying. As far as others…what’s the right amount of complexity for using electron? Imo the maintenance advantages alone almost justify using it. It’s not appropriate for every app but slack and vs code are pretty stellar examples of how well it can work.

Zangoose, (edited )
@Zangoose@lemmy.world avatar

VS code is a good app in spite of using electron, not because of it. There’s no reason a simple plaintext editor needs to allocate 300MB of ram even without extensions just to launch, and there is definitely no reason a plaintext editor should require compiling chromium to build from source.

Slack is fine, but only when you exclusively use slack. Throw in an actual browser, discord, VS Code, Whatsapp, teams (?), etc. each with their own chromium instance and now your 16GB of ram are being eaten up at idle.

TrickDacy,
@TrickDacy@lemmy.world avatar

I mean yeah it’s a little heavy. Same trade off everyone makes every time they load a web app of any kind.

I run a lot of those apps concurrently and I don’t have issues with not having enough ram.

bdonvr,

Huh? How’s this an example of web apps being bad?

rambaroo,

The thread OP has an axe to grind against web devs because he thinks they’ve ruined the Internet.

CanadaPlus,

Yeah, but I don’t want to have an app on my phone for a store I go to once. I don’t give a fuck if the page is ugly.

grue, (edited )

That just means it shouldn’t be a native app or a web app, but instead should be a plain ol’ webpage that doesn’t try to do app-y things in the first place. The notion that web pages have any legitimate reason to know your viewport size (let alone anything at all about the screen hardware itself) is like one of those “statements dreamed up by the utterly deranged” memes, except not satirical.

Seriously: literally the entire defining principle of HTML (well, aside from the concept of “hyperlinks”) is that the client has the freedom to decide how the page should be rendered, but misguided – or megalomaniacal – graphic designers webmasters front-end web “devs” have been trying to break it ever since.

rambaroo,

Lol - in your other comment you suggested that web devs key off of screen rotation to resize the page, but now you’re saying the client shouldn’t know anything about the viewport at all? Which is it? And why would the rotation angle be useful if I don’t know the aspect ratio of the screen? Or are we now assuming that widescreen will be a thing forever? I thought your ingenius idea was to be able to handle any use case.

grue,

Lol - in your other comment you suggested that web devs key off of screen rotation to resize the page, but now you’re saying the client shouldn’t know anything about the viewport at all? Which is it?

Legitimate apps key off screen rotation do fancy stuff. Web pages let the browser render them and don’t try to do fancy stuff. It’s not that fucking hard.

CanadaPlus,

Follow up question, would it ideally work like the old Java Applets then, where you have to explicitly ask to launch a web app?

CanadaPlus,

or a web app, but instead should be a plain ol’ webpage

I did not know about that distinction.

Hmm, so are there actual inadequacies in the browser-rendered standards that lead people to do this? I’d buy that it’s purely webpage sponsors wanting to be an all-powerful decider that controls what everyone sees and possibly thinks, but on the other hand I don’t know enough about browser rendering and page design to be sure. All my webpages are pretty spartan and scream “backend guy”.

It’d sure be nice if we could go back to circa-2012 with no popups or stupid bloat.

CallumWells,

I sort of agree with you to a degree, but I also think that the browser having knowledge of the size of your viewport actually has some use. Now, I would probably like it more if all webpages were just made with the restriction of not knowing the viewport size since that would dictate some design choices. Cellphones can just scroll around the page anyways. They should be second class citizens on the internet anyway in my opinion. The smartphone has been one of the worst inventions for the human race with how much it seems to isolate a lot of people more than connecting them.

gregorum, (edited )

This could totally be adapted into a game for a very interesting immersive experience. Imagine entire worlds of gameplay that adapted to the orientation of your viewport.

AVincentInSpace,

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

CanadaPlus, (edited )

Yeah, I actually miss this sometimes, when I’m lounging in some weird position. The question is how much the keyboard would suck.

Honytawk,

Like all of it.

I’d be awkward to hold at that angle.

CanadaPlus,

No, holding it would be fine in some situations. It’s probably resting on a chair arm or something while my head is on the seat.

christophski,

It’s okay, I’ll hold you at any angle x

casual_turtle_stew_enjoyer,

Because you are not immune to propaganda.

Pregnenolone,

The diagonal agenda is coming for your kids!!!

AVincentInSpace,

ah yes, i’ve been propagandized into… wanting my phone to have a diagonal mode

there are very few things more politically neutral than this.

JonEFive,

I hear that anti-geometrists are trying to get the pythagorean theorem banned in schools now.

mexicancartel,

Well now i wanna use it(probably works in linix phone?)

Chewy7324,

Linux phones aren’t supported because it’s an Xorg feature. Usually Linux phones use Wayland for the better (touch) experience. If someone wanted to they could implement it on a Wayland compositor, but given that no other OS I know of supports diagonal mode, I wouldn’t hold my breath.

blackluster117,
@blackluster117@possumpat.io avatar

Honestly though, I have an iPhone SE and holding it diagonally like that is pretty comfy. Could actually be on to something here.

Trollception,

Not familiar with an iPhone SE, assuming it’s a smallish phone?

blackluster117,
@blackluster117@possumpat.io avatar

Yes, more reasonably sized like iPhones used to be around the 6-7 generations.

gregorum, (edited )

Congratulations. In almost 30 years, this is the first thing that finally made me want to throw my phone when I saw it.

fidodo,

Smart phones haven’t existed for 30 years…

gregorum,

I’ve had cell phones for 30 years. Never mentioned anything about them being smart the whole time.

fidodo,

What would you be able to see on a 30 year old cell phone that would make you throw it? A weird number?

gregorum, (edited )

i’d like to know what hallucinogen you’re on or neurological damage you have, as you keep responding to things i never said-- i never mentioned a 30 year-old cell phone.

fidodo,

So “in 30 years” you never wanted to throw your non existent cell phone. Your original comment just doesn’t make sense.

gregorum, (edited )

It doesn’t make sense to you, because something is very wrong with your brain.

Best of luck with that

Artyom,

I almost want it

M500, in Every goddamn time

Maybe we took it out of context, maybe they mean that they are logged into their own computer 😂

THE_ANON, (edited )

No didnt you see the black and green text and a big acess granted display they hacked everyone even people without computers.

funkless_eck,

I’m the guy who designs those. They pay me the big bucks to make sure a hacker feels at home when violating our Gibson, after all. We’re one big family here.

TragicNotCute, in Guys! Should I accept the offer? 😂
@TragicNotCute@lemmy.world avatar

We goof on this person, but in my experience this kind of shameless begging usually works to some degree.

roofuskit,
@roofuskit@lemmy.world avatar

Which is why it should be reported.

Honytawk,

I’d go out of my way to give a negative review stating that they wanted to bribe me into giving a positive review.

If multiple people did that, you’d see that nobody trusts the reviews anymore.

peter,
@peter@feddit.uk avatar

Upvote my comment and I’ll upvote yours

haui_lemmy,

„Fake it til you make it“

There is a debate to be had about how far this is morally acceptable. If you‘re trying to promote your nonprofit and ask friends to ask their friends to look at it I‘d say thats fine.

But asking bluntly for fake reviews is not ok imo. I‘d report this person immediately. I‘d rather make a nice post on every social media platform that fits my topic and plainly ask folks for feedback. This just seems lazy and uninspired.

But you do you.

gregorum, (edited ) in Bug Thread

“So, how did you two meet?”

“He spent 2 years on a linux support forum helping me fix and nVidia driver issue. we’ve been married for 6 years this March.”

Dicska,

This Arch

FMT99, in Bug Thread

They missed “oh nevermind, I fixed it” without explaining how or ever commenting again.

Artyom,

<mod> marked this as resolved 3 months after last comment

Sibbo,

Here is a fix <broken link>

marcos,

That person isn’t welcome on the beach house.

0110010001100010,
@0110010001100010@lemmy.world avatar

That person isn’t welcome on the beach house planet.

FTFY

porgamrer,

Also somewhere in the middle:

“There’s been no report of this for a while so we’re marking it resolved.”

Mango,

Or the “How dare you zombie a post this old!?”

Ashelyn,

But if anyone tries to open a new thread on the issue it gets marked as a duplicate and removed

ChapulinColorado,

Developer1: @developer2: could you take a look, I know u know stuff about this.

Developer2: can’t reproduce. Might be able to if I get the app logs in trace level, the blood of 3 dragons and a signed autograph of Michael Jordan’s third hello world program.

User1: here are some other unrelated logs at info level only and nothing else.

Git bot: clozed y’all.

kamenlady,
@kamenlady@lemmy.world avatar

No contava con tu astúcia

TheGreenGolem,
@TheGreenGolem@lemmy.dbzer0.com avatar

That was Denvercoder9…

SatyrSack,
hakunawazo,
shotgun_crab, (edited ) in TypeScript is Quantum Ready

Schrödinger’s boolean

mrkite,
@mrkite@programming.dev avatar

Known to cause heisenbugs. They’re bugs that disappear when you try to measure them with a debugger or a printf.

jaybone,

So regular bugs then.

docAvid, in TypeScript is Quantum Ready

Weird. Booleanish isn’t a built-in, I’m pretty sure. I’d like to see the definition.

Darken,
@Darken@reddthat.com avatar

<span style="color:#323232;">type Booleanish = true & false
</span>

?

madkarlsson,

This looks like javascript so let me guess the typescript definition

any|unknown

this is a joke, please chill

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.

sovietknuckles, in Bug Thread
@sovietknuckles@hexbear.net avatar

Edit: Nvm, figured it out

keepcarrot,

Haha my first thought

ClamDrinker, in Fitbit Clock Face

Finally. A human readable format. And pretty too.

Dkarma,

Jesus I hope this is a joke. I hate json 🙄

damnfinecoffee,

yeah for real, let’s see an xml one instead

gornius,

Ah yes, perfect data format, where markup takes more space than the actual data.

curiousaur,

Would you prefer Yaml?

makuus, in Fitbit Clock Face

That’s something I think I’d like to use, but I don’t know if could get over the fact that neither the date nor the time are in ISO 8601 format.

dep,
@dep@lemmy.world avatar

Lol I came here to say this

spader312,

The date format isn’t even human readable (at least in American). It should be Sun, Jan 14th

TheGrandNagus, (edited )

Considering it uses day then month, 24hr clock, and distance in km, I’m guessing the reason why it’s not “human readable in American” is because it’s intended to be “human readable for pretty much everybody else”

The date format isn’t incorrect at all

neutron,

I still think YYYY-MM-DD should be more apt for an international release.

MystikIncarnate,

IMO, that format is best for all releases.

You want to talk about sorting releases, ISO 8601 works with sorting and it’s still human readable.

My homies all start their date time stamped files with ISO 8601.

spader312,

I always start my files with iso8601, except on s3 it doesn’t like the colon. Gotta replace the colons lol

tgxn,
@tgxn@lemmy.tgxn.net avatar

They should put it as Unix epoch instead!

dejected_warp_core,

I once worked in a software shop where all release packages had the Unix epoch timestamp in the filename. Yes, these sorted brilliantly making it trivial to find the last one. But good luck finding a build from a specific date/time.

datelmd5sum,

just wildcard for n digits

somegeek, in Fitbit Clock Face

Duude this is so cool. Is there a watch like this for galaxy watch?

PMmeYourPenis,
alphapuggle, in Sydney is very concerned about lost data

A real answer to your question though, as long as you can get it to reconnect, even if you have to close the window first, it should still have your changes to the file ready to save. These will be cached (somewhere?) unless you close the file.

muntedcrocodile, (edited )
@muntedcrocodile@lemmy.world avatar

Nar the remote died died. Clicking hdd died. Then again code is always better the second time u write it.

And nothing cached on the client unfortunatly its all part of the server vscode instance thats on the dead hdd.

alphapuggle,

Damn, when you said remote died I thought you meant lost connection

muntedcrocodile,
@muntedcrocodile@lemmy.world avatar

Nar im fucked i guess code is always better the second time u write it lol

ironcrotch, in Fitbit Clock Face

My god it’s all strings.

petersr, (edited )

Always has been

datelmd5sum,

disgusting

Strawberry,

not uncommon for data to be displayed on UI

sag, in Guys! Should I accept the offer? 😂
@sag@lemy.lol avatar

deleted_by_author

  • Loading...
  • sag,

    Stupid alt don’t tell our secrets

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

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 360448 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 36