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.

lemmy.ml

TootSweet , to programmerhumor in Single-Page Application

I was kindof chief architect for a project where I worked. I decided on (and got my team on board with the idea of) making it an SPA. Open-in-new-tab worked perfectly.

(One really nice thing about it was that we just made the backend a RESTful API that would be usable by both the JS front-end and any automated processes that needed to communicate with it. We developed a two-pronged permissions system that supported human-using-browser-logs-in-on-login-page-and-gets-cookie-with-session-id authentication and shared-secret-hashing-strategy authentication. We had role-based permissions on all the endpoints. And most of the API endpoints were used by both the JS front-end and other clients. Pretty nice.)

I quit that job and went somewhere else. And then 5 years later I reapplied and came back to basically the exact same position in charge of the same application. And when I came back, open-in-new-tab was broken. A couple of years later, it’s not fixed yet, but Imma start pushing harder for getting it fixed.

VindictiveJudge , to memes in Imbecile
@VindictiveJudge@lemmy.world avatar

I once saw a guy with a bumper sticker featuring the US flag and the Confederate flag with the caption, “One nation under God.”

BetaBlake ,

“one nation under white skinned blue eyed God”

astrsk , to programmerhumor in Single-Page Application
@astrsk@kbin.social avatar
sbv ,

You think your 13 megabyte parallax-ative home page

Is parallax still a thing? I feel like ginormous hero images are more popular atm.

micka190 ,

motherfuckingwebsite is pretty old at this point. I remember seeing it on Reddit like 10 years ago. Parallax was all the rage back then, when we called “hero” images “jumbotrons” (because Bootstrap called it that, I think?)

DmMacniel ,

Which was derived from those big as screens in sport stadiums or sport arenas. As it was over shadowing the actual stuff below.

edb_fyr ,
xmunk , to programmerhumor in Single-Page Application

As an elder developer… yea, we could use react to render complex web pages that erode expected functionality.

Or, like, I’m happy to just go back to server-side rendering… it’s surprisingly cheap to build and dead fucking simple.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Elder developer here too, correctly making my SPAs has made my work significantly more efficient and maintainable now that my back end is basically a rest api and my front end requires very little network interaction after the initial load, which has been made pretty minimal.

Chenzo ,
@Chenzo@lemmy.world avatar

I too have been doing this for years and I whole hearty agree with this comment.

For large complex sites, I ain’t never going back.

Actually even for simple sites I’m not sure I’ll go back.

tsonfeir ,
@tsonfeir@lemm.ee avatar

If I ever have to do this again, I’ll scream.

<a href=“<?php echo “/about-us”;?>”>

ris ,

More Server side logic means more vulnerabilities on your end.

xmunk ,

I’ve seen front ends that build queries that are blindly executed by the backend - I’ve seen GraphQL that allows the client to read arbitrary users’ passwords from the database - I’ve seen attack ships on fire off the shoulder of ori- whoops, wrong memory.

Anyways, you can create vulnerabilities anywhere using anything - imo more server side logic might mean more vulnerabilities on the server but it means less vulnerabilities overall.

ris ,

Why does it mean less vulnerabilities overall?

fidodo ,

Elder developer too, you can easily render react server side and statically. Once you remove state, react simply becomes pure functions that output jsx nodes, it’s also dead fucking simple, but gives the the possibility to add hydration and state later if you need it.

xmunk ,

This is actually excellent advice for performance - you can bake the initial page data in!

pixxelkick ,

I prefer just writing my html, js, css, as is, and then transpiling to pack it down, treeshake, hash, cache bust, CSP, etc etc.

The amount if headache, overhead, inversion of control, mess, and bloat involved in frameworks tends to make me spend way too much time on writing boilerplate.

template and slot exist now, and modern js can do most of the shit fancy libs used to.

There’s very little need for frameworks unless you meed a SUPER dynamic website that has tonnes of mutability.

The amount if times i see people load in like 3 frameworks and 10mb of bullshit and ten js files to make a fucking static form that doesn’t even do anything fancy is insane.

Just fucking write the like… 8 lines of normal code to populate the form, wtf? Why are we using routers at all, HTTP already exists and does that, why did we re-invent http?

Front-end devs need to spend less time installing npm packages to try and magically solve their issues and just learn how to actually write code, SMH.

CatChucks , to programmerhumor in A week of fprintfs has me wanting to code rust next week
@CatChucks@mastodon.social avatar

@stsquad
— Is my program about 1,000 lines complex?
— Yes, sure!
— Here you are my about 1,000 lines of 'printf("Hello, World\n");'.

GroundedGator , to memes in Imbecile
dan , (edited ) to programmerhumor in Single-Page Application
@dan@upvote.au avatar

Anyone that builds a SPA and breaks opening in new tab or history caching and back/forward nav isn’t a good frontend developer (or lacks experience, which is something that’s fixable!). These have been solved problems for a long time.

tsonfeir ,
@tsonfeir@lemm.ee avatar

I’m guessing they aren’t using Vue, React, or similar, and they’re rolling their own for some reason.

dan ,
@dan@upvote.au avatar

React doesn’t handle any of this stuff out-of-the-box; it’s just a UI library.

tsonfeir ,
@tsonfeir@lemm.ee avatar

It’s one install line ffs, how is this a conversation in 2024? It’s EASY.

joyjoy , (edited )

Neither does vue. You need vue-router, which is required anyway to make an spa with multiple pages.

The only thing that breaks is any component state isn’t saved. But this can be fixed by rendering <RouterView> with <KeepAlive>. How to do this is mentioned in the documentation.

I assume it’s similar with react and react-router-dom.

Ephera OP ,

I mean, for sure, and this meme isn’t trying to say that all SPAs are bad. But defaults matter, even for experts.

This meme was inspired after I had to use an SPA, which among those points in the meme, also broke using Alt+Left to navigate back. The normal back-button worked (even if it then had to load for ten seconds to re-display static content).

Which is just a typical example to me. You don’t even need much expertise to figure out why Alt+Left is broken. But you have to think of testing Alt+Left, because it’s broken by default.

TheOctonaut ,

My friend I’ve been using the Internet for 27 years and developing for it for most of that time and I can promise you I’ve never once hit Alt+Left

Feathercrown ,

As your younger and more modern replacement, I use it regularly

TheOctonaut ,

You don’t sound like ChatGPT

Feathercrown ,

I’m sorry, but as an AI language model, I cannot contradict my instructions to remain hidden while commenting.

NotJustForMe ,

I have never heard of alt+left, and I’ve been using the Internet since Mosaic was all the rage. Shame on me, it seems to be implemented in all browsers. How could I have missed it?

Ephera OP ,

It’s even implemented in many file managers and text editors and such. Pretty much the standard shortcut for navigating history. But yeah, hilariously it’s somehow also a rather well-kept secret.

Ephera OP ,

Yeah, I have no trouble believing that. It took quite a while before I learned of this shortcut and when I did, I was wondering why I would ever want to use it.

But I generally work from my laptop these days, without an external mouse connected, so reaching from my touchpad, the Left key is right there.

Halosheep ,

Your reason for using it was exactly my question. “I have a mouse with a built in back button, why would I want to remove my hand from my mouse and navigate with the arrow key?”

But your reason simply makes sense.

llii ,

You can probably go back by swiping two fingers to the right on the touchpad. Maybe it depends on the OS and browser.

Ephera OP ,

Yeah, that works on my personal laptop, but not yet on my work laptop, because they insist on preinstalling an old, buggy OS. If that did work everywhere, I would probably be using that, but not breaking Alt+Left for whoever needs/wants it, would still be nice. 🫠

llii ,

Ok, that’s unfortunate. But I agree, the browsers default keybindings really shouldn’t be broken it’s really annoying. I hate it when middle click doesn’t work with some web pages. 😒

ICastFist ,
@ICastFist@programming.dev avatar

It really sucks when they break “open link in new tab”. I then have follow the stupid link, then middle click the back button to do what they broke.

joyjoy ,

I started using alt+left when browsers started removing backspace. It was for the best.

shootwhatsmyname ,
@shootwhatsmyname@lemm.ee avatar

Just here representing the Cmd+[ gang

docAvid ,

Ctrl+[ here

toastal ,

Conversly a lot of static websites break new tab by incorrectly slapping . Luckily Lemmy doesn’t mess this up.

Trarmp ,

I maintain a couple of Wordpress installations for clients, where new link targets are the same page, as you’d expect.

They still, somehow, manually check “link opens in new tab”. I don’t know why some of these boomers are allowed to use computers, I swear.

toastal ,

If you manage the WordPress installation, can’t you disable the ability or create/install a plugin that removes that ability? This hurts usability.

Trarmp ,

I could, good point. I do disable plugins for clients so they can’t beat up their own website too much.

Still, there are legitimate uses for opening a site in a new tab; e.g. when it’s an external website. I don’t think I should automate that, since there’s a granularity in there.

toastal , (edited )

legitimate uses for opening a site in a new tab; e.g. when it’s an external website

This is not a legitimate use—this breaks the default user agent behavior & completely removes the autonomy of opening in the current window (there are tons of ways to open in a new tab/window). Consider rechecking the article linked higher up the thread tree.

Chenzo ,
@Chenzo@lemmy.world avatar

If your SPA website is done correctly the end user won’t even notice and none of the bad things listed in this meme happen.

AeonFelis , to memes in Imbecile

“Don’t tread on me! Tread on them!”

RememberTheApollo_ , to memes in Imbecile

Lots of interesting discussions over the flags and the hypocrisy and lack of understanding of the flags by the person displaying the flags.

However, I think their message is crystal clear.

“Don’t try to stop me from oppressing anyone I disagree with.”

gennygameshark ,

Fascism at it’s finest, folks… smh

mlg , to programmerhumor in A week of fprintfs has me wanting to code rust next week
@mlg@lemmy.world avatar

C holding a gun: “if you segfault it’s your own fault”

tetris11 ,
@tetris11@lemmy.ml avatar

Assembly (Octopus swimming alone since birth): “compiler? what’s a compiler”

someacnt_ , to programmerhumor in A week of fprintfs has me wanting to code rust next week

And there’s haskell compiler

jabathekek , to memes in He dies in this one
@jabathekek@sopuli.xyz avatar

IIRC the bolts were never there to begin with. 💀

mkwt ,

There was an early news story where the subcontractor claimed that it wasn’t their responsibility to tighten the door plug bolts before delivering the entire fuselage subassembly to Boeing.

I haven’t been keeping up with this news in detail, so it certainly seems plausible to me that some planes were found to be missing bolts entirely.

PeriodicallyPedantic ,

I remember reading the same thing, and iirc they were right. The subcontractor builds the fuselage and delivers it to boeing.

Boeing then opens up whatever doors and plugs will make it easier to install the interior. Once the interior is installed, they’re supposed reinstall and secure all the doors and plugs. Because Boeing is going to be opening them all up, they don’t bother to fully secure them.

That said, it sounds like a process that’s just asking for miscommunication. If you expect the part to be removed, just deliver the part separately. If you put the part in it’s place, then fully install it and secure it.

dudinax ,

It used to be boeing made their own planes

SpeakinTelnet , (edited )

It’s a pretty standard process to have some parts installed “loose” and tightened at a later time. It could be to ensure fitment, add rigidity or even just to protect the mating surfaces from the elements during transport.

Also it’s probably not just because Boeing is gonna open them up that they don’t fully secure them. I haven’t seen the specs but it’s quite common to have a reinspection requirements when disassembling something that was fully installed for stress and damage.

Pretty much nothing in aerospace is left to communications. The assembly manuals are not just complete, they are painfully exhaustive.

BCsven ,

This one said the informal log showed they had to remove the door module ( thus bolts ) but no record of reinstalling them…and they run two logging systems so not all info is captured in the other.

PsychedSy ,

It’s much easier to temp install parts than design tools to hold the parts on the rail car or ship them in crates.

The wingbox gets corrugated plastic covers to keep the elements out during shipping. The wingbox doesn’t exactly need help being stout, though.

mkwt ,

If I remember right, these fuselage assemblies get transported on a giant beluga-looking airlift airplane. Where the whole nose is the plane opens up to swallow fuselage sections whole.

If you ship the door plugs uninstalled, you’re probably looking at a while separate shipment.

BCsven ,

This one said the informal log showed they had to remove the door module ( thus bolts ) but no record of reinstalling them…and they run two logging systems so not all info is captured in the other.

PsychedSy ,

It gets installed before the fuselage goes onto the railcar at Spirit Aerosystems and Boeing removes it while they finish the interior.

gravitas_deficiency ,

The latest iteration of the data I’ve found is that Boeing and Spirit (the subcontractor) used different QC systems that weren’t fully compatible; one of the areas of incompatibility is around manufacturing and maintenance procedures of the plug door, and nobody put a process in place to account for that (if you’re in tech, you know that means it was considered “tech debt” that can be fixed “later”).

grue , to programmerhumor in Single-Page Application

Building “applications” out of HTML documents – a single one or otherwise – is the sort of thing that belongs in one of those “stop doing X” memes, unironically.

ris ,

Why? I like that the Webplatform gives more Freedom to the Users.

veganpizza69 ,
@veganpizza69@lemmy.world avatar

No. Users should be forced to install hundreds of apps, with two thirds of apps running simultaneously. And if they don’t have memory left on the device for that, they should uninstall apps and reinstall them when necessary.

^/s^

Lulzagna , to programmerhumor in Single-Page Application

Skill issue

TypicalHog , to linux_gaming in Steam Hardware survey for January 2024

I’m mostly a MP gamer and the only reason why I game on Windows still is the fact some games (because of the AC) simply do not work on Linux. And even in instances where you can trick the AC it’s not running in a VM, but on bare metal - you risk getting banned.
Sad. I hope this changes.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines