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

sharkfucker420 , to programmerhumor in what u actually signed up for
@sharkfucker420@lemmy.ml avatar

Ive always thought thsoe graphs were bullshit, im a college student and I have no time, energy, or money. I feel like this will not change drastically as i age lmao

Cowbee ,
@Cowbee@lemmy.ml avatar

Depends on Major, I have more time as a Worker than I did in College. More energy, too.

sharkfucker420 ,
@sharkfucker420@lemmy.ml avatar

Im a physics major so it is likely my own doing

https://lemmy.ml/pictrs/image/375e8a62-cdad-4f7e-bab3-4ce0cd45a093.png

Cowbee ,
@Cowbee@lemmy.ml avatar

Keep at it! Physics is cool as hell!

itslilith ,
@itslilith@lemmy.blahaj.zone avatar

I read your first comment and thought “I wonder if they’re studying physics too, this sounds way too relatable”. lo and behold

hang in there!

TootSweet , to linuxmemes in Billy G, you cant stop me. 2024, We are so back.

Can we not with the AI-generated images?

Djtecha , to programmerhumor in Asking the important questions

As an infra guy… What’s backend in this context?

JPAKx4 ,

Backend code, basically what is ran on the server and manages user requests, database interactions, etc… Frontend is the user end, so managing input, displaying information from server requests, etc. and is in the form of an app or website page.

JasonDJ ,

As a network guy…open up your favorite web-managed application and open the developer console. Inspect the transactions you see and compare it to the applications REST API reference, and you’ll likely find a lot of commonality (and maybe some undocumented endpoints!).

Backend made the API and everything that is performed by it. Front end is doing the GUI based off the response and promoting for input.

uis ,

Hah. I get it. Good one.

Lobreeze , to linux in Are we Wayland yet or Whats missing?

I can’t run xscreensaver in wayland :(

UFODivebomb ,

The real problem right here

nexussapphire ,

Write a script that launches a video of flying toaster screensaver before it locks.

HootinNHollerin , to programmerhumor in what u actually signed up for

Software engineers get paid more than any other engineering discipline so that part is wrong AF but yea the rest is valid

Potatos_are_not_friends , (edited )

The post literally above this one is about a manufacturing job with shit hours and pay and I work a 8-4 (sometimes longer) but im paid abnormally high (we start new devs at 70k and average dev is six figures).

But the other stuff like free time can absolutely suffer as even at the senior level, I’m taking so many courses and outside education to stay relevant.

HootinNHollerin ,

Software also gets a plethora of remote work. I have zero sympathy as a mechanical and manufacturing engineer.

chiliedogg ,

I work almost 100% on a computer for a municipality using software that’s already 100% web-based.

But I have to drive 90+ minutes each way every day because a citizen might want to have an in-person meeting once every few weeks instead of an email or Teams meeting.

HootinNHollerin ,

You’re an outlier for sure

chiliedogg ,

Oh, I’m not a programmer. I’m just bitching about how many of us have to go to an office for no reason.

HootinNHollerin ,

Ah my bad

Buttons , (edited )
@Buttons@programming.dev avatar

Programmer pay is so bizarre, it makes me cynical about our entire economy.

If I’m a blue-collar worker maintaining the wires between banks, I get paid little. If I’m a programmer maintaining the banking software that controls everyone’s money and is essential to the entire nation, I’m paid a little more, but not as much as some programmers.

If I’m a young man who creates a webpage that barely works venture capitalists are tripping over themselves trying to shove millions of dollars into my hands.

(Although, creating a webpage was the hot thing last decade, now the hot thing is creating an AI.)

force , (edited )

A lot of the time it’s about being lucky enough be able to have or form connections with rich stupid people. Those kinds are a lot more willing to throw insane amounts of money at someone/some company they vaguely know to do things they know nothing of but hear a lot about.

Or just working at a company that’s well-known in the area and deals with clients very intimately while the product is being created.

Sometimes charging more for the same service makes them want it more, to them it means it’s premium programming (as opposed to the off-brand wish dot com programming). But sometimes they demand disgracefully cheap yet world-class service and throw a tantrum when they can’t pay you $5 an hour for a full rebranded recreation of the Amazon web service.

AngryCommieKender , (edited )

You missed the banks tripping over themselves to find a COBOL programmer. My father makes stupid amounts of money (read, $400-$1600 per hour) maintaining bank COBOL systems. My father is in his 70s.

COBOL is almost as much of a PITA as Lisp, but no one, not even the US Military that developed Lisp will pay the really big bucks to maintain it.

AnarchistArtificer ,

I think people like your father make bank because even though new programmers could learn COBOL, that wouldn’t be enough for them to be able to fulfill the same niche your father and other established COBOL programmers occupy; any programming language has a disparity between “the proper way to do things”, and the kind of kludges you see in the field, but few have the kind of baggage that COBOL does, in terms of how long it’s been around and having things built on top of it.

AngryCommieKender ,

That’s probably true. My father has been developing in COBOL since the '70s. I didn’t bother learning it because I was under the impression that he was being paid more for experience than his basic skills.

brian ,

not sure what you’re talking about with lisp lol, the military may have some dialect they wrote but lisp started as an academic language and there’s plenty of still supported and used dialects outside of that

AngryCommieKender ,

There may be, but as far as I can tell, they won’t pay what the people that still need COBOL are willing to pay

fidodo ,

It’s pretty simple isn’t it? If you want to be paid a lot of money, learn how to do what other people can’t or won’t. In the software industry those opportunities are all over the place. You just need to find it and take it.

phoneymouse ,

Dude, should I learn COBOL?

AngryCommieKender ,

I’d recommend against it. Seems to cause my father no end of headaches

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

buddy there are a lot more reasons to be more than cynical about the economy, take a good look at things and you’ll probably want to bring out the pitchforks.

masterspace ,

Yeah man, me too.

I went to school for electrical engineering, my first job was at an architecture firm designing the electrical stuff for buildings (including making all the electrical drawings for bank branches so we had some professional crossover 😋), and I ended up teaching myself software to automate a bunch of our designs and processes. I was literally directly making building design and construction more efficient … Buuuut… The arch industry pays poorly and I realized they was no way of ever owning a house at the pace I was going so I left for software and doubled my salary in like 2 years. I went from senior electrical engineer to intermediate software engineer and saw a 50% increase… All in a country experiencing a massive potentially existential housing crisis, and the industry pay disparity directly incentivized me to stop working on it and go work doing mostly bullshit software work.

The software industry is grossly overpaid for how hard we work and for how critical our relative contributions are to society, though even in the software industry the pay is incredibly distorted. Orders of magnitude more money goes to random social media bullshit and VC startups that go nowhere than to mission critical teams doing stuff like maintaining security and access control software.

SparrowRanjitScaur ,

I think it really just comes down to scale. Relative to other professions there aren’t that many software engineers, but the work produced by each one has the potential to reach an extremely wide user base. Someone working at Google could write code that gets deployed on a billion devices. This is pretty clear when comparing between different software engineering roles as well. Companies that serve a global market pay significantly better than local companies.

On top of that, there’s no supplies or logistics required for software engineering. It just takes one person and a computer, so expenses are minimal compared to other engineering disciplines.

fidodo ,

I think it makes perfect sense. Those people are building something from scratch. That’s a lot more responsibility and skill needed than to maintain a tiny part of a huge well established system. The people capable of doing an A+ job at building something totally new are very few and far between and the competition to hire them is fierce. The best way to move up in this industry is to build up your skill and jump ship to a new job as soon as your skill has outpaced your salary.

exanime , to linux in Are we Wayland yet or Whats missing?

I’ve been using it for my daily driver for work and casual gaming with no issues for 4 months now (Garuda Linux)

linux4ever07 OP , (edited ) to linux in A Bash script to rip music off CUE/BIN files

I just checked the macOS / FreeBSD man page for ‘stat’, and noticed the syntax differs from the version in GNU coreutils (which is what’s used in Linux). That’s probably the only thing that would need to be changed to make the script work on those other systems. It’s on line 526.

possiblylinux127 ,

Well pretty much no one is using BSD

linux4ever07 OP ,

Fair enough. But macOS has more users than Linux, and is partly based on FreeBSD. The shell and the userland tools are from FreeBSD. I prefer Linux of course and haven’t used a Mac in years, but I still think it’s nice making scripts compatible with all *nix systems.

possiblylinux127 ,

Fair enough, I just don’t pester the developer if you can avoid it. (Foss devs often receive demands)

linux4ever07 OP ,

For sure. If you get something for free then it is what it is. Some of my scripts probably won’t work outside of Linux but I still make an effort to not use external commands if there’s no need to. I try to use the internal features of Bash as much as possible, mostly cause it’s just faster that way. A consequence of that is that the scripts are at least more likely to work on other systems (that have Bash).

Imgonnatrythis , to memes in If the USA saw what the USA is doing in the USA...

Canada really should step in. Shouldnt be allowing this behavior so close to their border.

dubyakay ,

Annex the USA you say?

Reverse-Fallout-plot.

Cowbee ,
@Cowbee@lemmy.ml avatar

It will always be hilarious that Emil decided to “reveal” that Nate was one of the fascist troops on the ground executing unarmed Canadian rebels we see in Fallout 1’s opening scene

GoodStuffEh ,

Not just one of the troops, he was the one laughing his ass off lol

Cowbee ,
@Cowbee@lemmy.ml avatar

(SARCASTIC)

“Woulda been easier if he just handed over the maple syrup, amirite Jim?” laugh track

Alsephina ,

I want to live in the Canada-annexes-US timeline

REEEEvolution ,

Not that Klanada is better.

exanime ,

After 20 years in Canada I can tell you the shit I dislike the most was imported from the USA… The shit I like the most came from Europe

sandman , to programmerhumor in Asking the important questions

Lol. I fucking hate websites that take up half the page with a navbar.

mr_satan ,
@mr_satan@monyet.cc avatar

Or a page that uses only half the screen width in the center. Just use the damn screen!

sandman ,

Yes! Let the user resize the window if they want it take up half their screen!

toastal , to programmerhumor in Asking the important questions

You can write a stateless server. You can’t do stateless front-end since you have to deal with user interaction.

areyouevenreal ,

I would not be so sure. Maybe for a static web page this is possible. Outside of that I think people are kidding themselves. Writing code that might be stateless in isolation but relies on a database isn’t a stateless server imo, it’s just outsourcing state to another service.

yogthos OP ,
@yogthos@lemmy.ml avatar

With the SPA approach, you can have remarkably little state on the server because all the state associated with the user session lives on the frontend. The value of doing this obviously depends on the type application you’re making, but it can be a sensible approach in some cases.

areyouevenreal ,

Doesn’t SPA require polling the web server for more information? I feel like any website which retains information outside of the client device (like anything with a login page) would require state to be stored somewhere on the backend.

yogthos OP ,
@yogthos@lemmy.ml avatar

Typically, you just have a session cookie, and that doesn’t even need to be part of the app as auth can be handled by a separate proxy. The server just provides dumb data pull operations to the client in this setup, with all the session state living clientside.

areyouevenreal ,

That data has to be stored somewhere though. So you would still need some kind of database server to store it all or some other solution. That’s what I mean by outsourcing state. Data is still stored in the backend, just in a database rather than a web server.

yogthos OP ,
@yogthos@lemmy.ml avatar

There is data that gets persisted and needs to be stored somewhere, and then there’s the UI state that’s ephemeral. The amount of data that gets persisted tends to be small, and the logic around it is often trivial.

areyouevenreal ,

So I was right then. Colour me surprised.

yogthos OP ,
@yogthos@lemmy.ml avatar

I mean if you’re going to be aggressively obtuse about this, I guess there’s no point talking.

areyouevenreal ,

How am I being obtuse? You have been trying to trivialise the backend and now frontend as well. Backend isn’t just writing PHP or whatever, it’s setting up database servers, authentication proxies, and all that stuff. Not everything can be stateless.

yogthos OP ,
@yogthos@lemmy.ml avatar

I’m not trivializing anything here. What I actually said was that when all the UI logic lives on the frontend, then the backend just has dumb fetch and store operations along with an auth layer. In this scenario, the backend code can indeed be largely stateless. Specifically, it doesn’t care about the state of the user session or the UI. The only one trivializing things here is you by completely ignoring the nuance of what’s being explained to you.

areyouevenreal ,

The only nuances here seem to be: a) very simple websites need little state (but still aren’t stateless) and b) that you can move the state around to make something look stateless within a narrow view.

yogthos OP ,
@yogthos@lemmy.ml avatar

not what I said at all, but you do you

areyouevenreal ,

Sure

yogthos OP ,
@yogthos@lemmy.ml avatar

Evidently you don’t understand what people mean when they talk about stateless backend, so let me explain. The point there is regarding horizontal scaling. If your backend code is stateful then it has user context in memory, and requests for a particular user session have to be handled by the same instance of the service. With a stateless backend all the context lives on the client, and the requests can be handled by any instance on the backend. So now you can spin up as many instances of the service as you need, and you don’t need to care which one picks up the request. The fact that you might be persisting some data to the db in the process of handling the request is neither here nor there. Hope that helps you.

areyouevenreal ,

Yes that’s a stateless service but not a stateless backend. A backend to me is everything that doesn’t run on the client, including the database. Databases are not stateless, even distributed databases are not stateless. You can’t just spin up more databases without thinking about replication and consistency.

yogthos OP , (edited )
@yogthos@lemmy.ml avatar

I’ve explained to you why the term exists, and why it matters. It refers specifically to application code in the context of horizontal scaling. Meanwhile, many popular databases do in fact allow you to do sharding in automated fashion. If you’re not aware of this, maybe time to learn a bit about databases.

areyouevenreal ,

You still have to consider ACID vs BASE when choosing a database software/provider. It comes from CAP theorem.

yogthos OP ,
@yogthos@lemmy.ml avatar

Again. the goal is not to eliminate the statefullness of the whole stack. That’s just the straw man you keep arguing against. The goal is to remove context from the server. Once you get a bit more experience under your belt, you’ll understand why that’s useful.

areyouevenreal , (edited )

The whole conversation was about backend being similar because you can write a stateless server. Have you forgotten? The issue here is a backend isn’t just one service, you can write a stateless service but you are in fact just moving the statefulness to the database server. The whole backend isn’t simpler than the front-end for that reason. It might be simpler for other reasons, though many popular websites need complex backends.

I am not arguing that a stateless service isn’t a useful concept. I get why people might want that. That’s not what this conversation is about. It’s about the backend vs frontend. Backend to me includes databases and other support services.

yogthos OP ,
@yogthos@lemmy.ml avatar

No, I have not forgotten. This whole conversation was me explaining to you the advantages of keeping the session context on the client. You are not moving statefulness to the database. The fact that you keep repeating this clearly demonstrates that you don’t understand what you’re talking about.

The statefulness lives on the client. Everything I said about the backend application also applies to the database itself. Any node in the db can pick up the work and store the value. The issue being solved is having everything tied to the state in a particular user session.

To explain it to you in a different way. There will be a certain amount of data that will need to be persisted regardless of the architecture. However, moving user state to the client means that the backend doesn’t have to worry about this. The fact that you’re having trouble grasping this really is incredible.

areyouevenreal ,

I don’t write web applications for a living and I especially don’t write front ends. I do have to ask though:

What information are you actually keeping in the front end or web server? Surely you don’t need any ephemeral state that isn’t already stored in the browser and/or for you like the URL or form details. Only thing I can think of is the session ID, and that’s normally a server side thing.

I mean I’ve written web sites where there is no JavaScript at all, and the server is stateless or close to it. It’s not a difficult thing to do even. All the actual information is in the database, the web server fetches it, embedds it into a HTML template, and sends it to the client. Client doesn’t store anything and neither does the server. Unless I really don’t understand what you mean by state. You might keep some of your server fetches data from another server using REST or SOAP but that’s only used once as well.

yogthos OP ,
@yogthos@lemmy.ml avatar

Well, I’ve been writing web apps for a living for the past 20 years or so, and I’ve written lots of full stack apps. There can be plenty of ephemeral state in a non-trivial UI. For example, I worked on a discharge summary app for a hospital at one time. The app had to aggregate data, such as patient demographics, medications, allergies, and so on from a bunch of different services. This data would need to be pulled gradually based on what the user was doing. All of the data that got pulled and entered by the user would represent the session state for the workflow. Maybe don’t trivialize something you admit having no experience with.

areyouevenreal ,

So you do include ephemeral state that’s a copy of database data? If we were including that then every non-static website has plenty of state, but so does every web server. Whatever definition you are using must be quite odd.

yogthos OP ,
@yogthos@lemmy.ml avatar

I don’t know why you have so much difficulty wrapping your head around the concept of UI state to be honest.

bitfucker ,

What kind of polling are we talking about? If you are talking about realtime data, SSE doesn’t solve that either. You need SSE or WebSocket for that (maybe even WebRTC). If what you mean is that every time the page is refreshed then the data is reloaded, it is no different than polling.

uis ,

In many pages application url already bears part of state.

yogthos OP ,
@yogthos@lemmy.ml avatar

Sure, but that only gets you so far. I think it’s important to distinguish between document sites where the users mostly just views content, and actual applications like an email client or a calendar. The former can be easily handled with little to no frontend code, however the latter tend to need non trivial amount of UI state management.

muad_dibber , to programmerhumor in Asking the important questions
@muad_dibber@lemmygrad.ml avatar
yogthos OP ,
@yogthos@lemmy.ml avatar

😄

tsonfeir , to programmerhumor in what u actually signed up for
@tsonfeir@lemm.ee avatar

I have every single one of them except the reason to live.

NigelFrobisher , to programmerhumor in Asking the important questions

The proliferation of libraries that exist only to fix the problems introduced by making everything an SPA is hilarious. Everything in web tech from the last decade is basically “there was an old lady who swallowed a fly”*.

*see also Cloud and container DevOps

bitfucker ,

I do think everything has its place. For example, you can do offline PWA with SPA since a page load doesn’t need a call to the server for rendering it. It also saves processing time/bandwidth by offloading the server from the burden of rendering the page. Once the page has loaded, the web app only needs data, not markup nor style. And last is that it is great since it only requires a browser without needing to write native apps in myriad of languages. Distributing and installing it is also not limited by the Apple/Google tax.

For clouds, there are certain workflows that can surely benefit from it. Maintaining your own infrastructure 24/7 with minimal downtime can be overwhelming for SMALL teams, especially one man show. Even more so when the product/web apps suddenly blows in popularity and now need to scale. Even more so when it is being DDoSed. The point is, many things can go wrong. And when you are deploying it for 24/7 use, down times can be costly. Deploying to cloud early and then slowly building towards on-premise after the team gets bigger is a viable route IMHO

And last is container devops. I think it also solves a lot of problems in multi-tenancy or even when running multiple services. Not everyone will use the latest-and-greatest version of a shared library. If the library is somehow conflicting with other tenants/service, you will have a bad time. Also, developing inside a container or virtual env can make testing and messing around safer since you didn’t affect your system installation.

uis , (edited )

For example, you can do offline PWA with SPA since a page load doesn’t need a call to the server for rendering it.

Client still needs to call the server. How offline PWAs work then? They emulate server in ServiceWorkers.

It also saves processing time/bandwidth by offloading the server from the burden of rendering the page.

  1. Let’s call it page generation to not confuse with actual rendering.
  2. It not always saves bandwidth and processing time, but static resources can allow to hide CDN latency on initial load. Although it is not property of SPAs, just separation of static and dynamyc part and generating dynamic part after static page already shows something.
  3. It will still result in more requests, but may trasfer less data per request. May.

Once the page has loaded, the web app only needs data, not markup nor style.

Static web page after loading will not request more styles. SPAs imply client-side dynamic page, and they may request more data INCLUDING styles. Also client still need to load styles on page load.

And last is that it is great since it only requires a browser without needing to write native apps in myriad of languages.

Write for QT.

And when you are deploying it for 24/7 use, down times can be costly. Deploying to cloud early and then slowly building towards on-premise after the team gets bigger is a viable route IMHO

I guess so. Not everything can be offline-oriented.

bitfucker ,

Client still needs to call the server. How offline PWAs work then? They emulate server in ServiceWorkers.

Yes they do need server for initial resource loading. Usually with PWA, you need to fetch the static resource once from a CDN since every resource is bundled. And no, they don’t need to emulate server in service worker, wtf. You can if you want, but you can also store the data locally using indexeddb and sync periodically baked into the app. Service worker doesn’t emulate server, they just intercept a network call and check their cache. A man in the middle if you will. I think it is debatable if that is called emulating a server or not.

  1. Let’s call it page generation to not confuse with actual rendering.

Yeah, that is fair. Its just the usual web tech shenanigans.

  1. It not always saves bandwidth and processing time, but static resources can allow to hide CDN latency on initial load. Although it is not property of SPAs, just separation of static and dynamic part and generating dynamic part after static page already shows something.

When developing an application, you usually didn’t develop the dynamic and static part separately. Which data can be cached and which needs to be sent to the origin so it can be properly generated. If you fail to configure it correctly the static resource which should go to a CDN get sent to your origin instead. With SPA you just ship the frontend to the cdn and make the backend separately.

  1. It will still result in more requests, but may trasfer less data per request. May.

I mean, if you are making an SPA without splitting the bundle, there should only be a single html, css, and js. A bunch of images and some font too if you want to be complete. But if you are making the page server generated, you always need to transmit the HTML. ALWAYS. So I think it definitely saves requests.

Static web page after loading will not request more styles. SPAs imply client-side dynamic page, and they may request more data INCLUDING styles. Also client still need to load styles on page load.

SPA will not request more style if you are bundling them tho? Wtf are you talking about? Unless you explicitly split the style, once SPA is loaded every page navigation is just JavaScript replacing the whole HTML with the one bundled in the JS file.

Write for QT.

Sure, QT exist as a UI library for cross platform. But that doesn’t solve the iOS mafia. We only got Apple to allow 3rd party store now, we haven’t got sideloading yet. It is a hassle if you want to make an app that can be used in any devices. Especially if the app is just some form filling app.

russjr08 , to linux in Are we Wayland yet or Whats missing?

I’d love to find an alternative to xdotool’s auto type feature (or ClickPaste from Windows).

There is wtype but unfortunately it doesn’t work in KDE nor GNOME because neither of them support the right protocol. I’ve run into the “<DE> hasn’t implemented $PROTOCOL” a few times in the past and it’s certainly a bit annoying.

Aside from when that comes up, I don’t really have any complaints. A tool we used for work was never going to be fully functional on Wayland because of its dependence on Xinerama (I think) but thankfully we’ve moved away from it.

cheet ,

I like ydotool, uses a systemd user service, but fulfills my needs of KB shortcuts to paste text into vnc sessions

russjr08 ,

Oh that is perfect, thank you! Funnily enough, pasting into VNC sessions is exactly what I needed something like this for as well - you’ve taken a lot of future pain out of my workday!

YIj54yALOJxEsY20eU , to programmer_humor in "I want to live forever in AI"

I’ve had this thought and felt it was so profound I should write a short story about it. Now I see this meme and I feel dumb.

morrowind ,
@morrowind@lemmy.ml avatar

I saw a great comic about it once, one sec

morrowind ,
@morrowind@lemmy.ml avatar

Edit: more focused on teleportation, but a lot of the same idea. Here existentialcomics.com/comic/1

ProgrammingSocks ,

This could’ve sent me into an existential crisis if I hadn’t already had several where I thought the exact same things ;)

I will say, the point about murdering the person other people have in their minds of you is certainly an interesting one.

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