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

FiskFisk33 , to memes in The Adversary

to be fair, while the microwave might be collecting your info, it isn’t shaping your children.

TC_209 ,

The current US President is committing genocide and he grew up watching Howdy Doody.

Rocketpoweredgorilla ,
@Rocketpoweredgorilla@lemmy.ca avatar

I dunno, one kid from down the street near me looks pretty rectangular.

yogthos OP ,
@yogthos@lemmy.ml avatar

the capitalist hellscape your children are living in is what’s actually shaping them

Reawake9179 ,

As if the data just lays somewhere and just get collected, obviously it is sold to the highest bidder which knows what to do with it

FiskFisk33 ,

don’t get me wrong, I don’t mean to minimize that side, I just think there’s a fair argument to be made that direct control of peoples eyeballs are potentially, comparatively, much more powerful.

linkhidalgogato ,

i assume u are down for banning all other capitalist controlled social media platforms too then?

SaltyIceteaMaker ,

Well if you put it like that… Yes

uis , to programmerhumor in Asking the important questions

Я гусь и я до тебя доебусь

Lucidlethargy , to memes in The Adversary

PSA: Samsung phones are not made in China. Iphone’s sure are, though.

Steamymoomilk ,

Foxcon

noahimesaka1873 ,
@noahimesaka1873@lemmy.funami.tech avatar

Cheaper (and sold more) A Series are, in fact, made in China (or Vietnam). Expensive S series are made in Korea though.

ParabolicMotion , to cat in A heavily pregnant Willow on the day she moved in

She’s so cute!

Ghyste , to memes in The Adversary

You forgot to label the hat and shirt as also made in China.

yogthos OP ,
@yogthos@lemmy.ml avatar

lol yes!

4am , to memes in The Adversary

Man some of these caricatures… I swear I’ve met this corn-bred Ghostbusters prop redneck before.

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

The USA doesn’t do what the USA does for the USA, the USA does what the USA does because the USA is the USA.

mlg , to linux in Are we Wayland yet or Whats missing?
@mlg@lemmy.world avatar

HDR is only experimental on gnome and kde with weston not having an implementation.

I think 10 bit color depth hasn’t even been worked on much.

VRR I think is about finished although X11 has it too.

And the Nvidia wayland support is slowly improving although still full of bugs and stability issues.

azvasKvklenko ,

VRR on X11 doesn’t work with multi screen setup, so it might be broken for a lot of people

bastonia OP ,

With explicit the protocol and the Nvidia patch for it next July, most Nvidia problems will be solved

nexussapphire ,

10 bit color is supported in wlroots(sway) and hyprland, can’t speak for other desktops.

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.

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!

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.

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.

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

😄

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.

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!

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