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

flashgnash , to programmerhumor in Asking the important questions

Made the mistake of using react for a mobile app and my god why is it this convoluted, why are the error messages always along the lines of “something went wrong with networking 🤷”

Unfortunately I’m stuck with it now

lowleveldata ,

react is better than the days when we jquery everything

xthexder ,
@xthexder@l.sw0.com avatar

Am I the only one left writing pure JS webpages? I swear for the stuff I’ve done recently, adding React or even jQuery makes things 10x more complicated and bloated. The base JS support browsers have now is actually great. It’s not like the old days trying to support every browser back to IE6

flashgnash ,

I like base JS and I like jQuery. Only reason I’m using React is for native cross platform mobile/web but I’m beginning to regret choosing it for that

Cqrd ,

I assume you mean react native, not react, unless you’re using something like capacitor. React native is a far shot from react and is much more annoying to deal with.

flashgnash ,

Yes I mean react native

Wouldn’t be bothering with it if I were just working with web

Cqrd ,

Using capacitor as a native shell for your web app can be very nice, actually. It lets you hook into native API calls and build native apps while hardly ever having to write native code, unless you want to, which presumably you don’t since you’re writing react native.

flashgnash ,

Honestly doing it again I’d just write in xamarin or something not web orientated because as it turns out the web app is going to need to be separate anyway

I might look into capacitor but is that not basically just electron?

Cqrd ,

I guess you could see it that way, but web views are inherent in mobile operating systems, they don’t need to be bundled into your app, so capacitor apps aren’t big bloated memory consuming applications like electron apps are. There’s a lot of well made apps running on capacitor that you wouldn’t even know, especially if you use something like ionic framework to actually have the look and feel of native mobile apps.

flashgnash ,

Definitely need to look into this for future, would make dev so much easier to just write for web and not have to deal with react native’s bullshit

bitfucker ,

Why not try flutter then?

flashgnash ,

Had a look at it, looked worse than react

bitfucker ,

When you are writing some complex web app, you will wish you used a framework. Some web apps can have more than 50 pages with multiple states that depend on remote data to be locally cached and synced depending if you are online/offline. Framework can handle a lot of the heavy state management for you and even provide a nice UI component library. But I do agree that React is too much, but jQuery is being replaced by vanilla JS. That is why I usually use Vue. But for simple stuff, yes, Vanilla JS is pretty much good enough

uis , (edited )

No framework will make FSM for you. Managing state of web ui is not as hard as managing state of game.

Using TCP for networking? Loss, retransmit, lag, you’re dead. Using UDP for networking? Loss, desync, you’re dead. Sending full game state? Congestion, loss, lag, dead. Doing sync right, but still pushing too much data? Congestion, loss, lag, dead. Also keeping on server you need not only track game state, but what game state client confirmed to receive.

bitfucker ,

Strictly speaking, the original commenter is talking about website but sure there is an FSM JS framework too (XState).

traches ,

The biggest problem frameworks solve is “I need the value of this variable to be on the page and I need it to stay up-to-date.” If you don’t have this problem, or you only have it in a couple of places where hand-writing the necessary event listeners isn’t too arduous, then yeah you don’t really need a front end js framework.

sandman ,

I just have to say: designing a GUI in code in 2024 is asinine.

I feel bad for anyone who got suckered into learning convoluted bullshit like angular or react when they could’ve learned Godot or Qt.

uis ,

Linux has better error messages. “Dazed and confused, but trying to continue”.

flashgnash ,

I am spoiled by dotnet and rust error messages. They tell you exactly what the problem is, where it is, and in rust’s case sometimes even how to fix it

Then there’s C with “segmentation fault”

uis ,

and in rust’s case sometimes even how to fix it

Then there’s C with "segmentation fault"

  1. You are comparing compiler-generated errors and runtime errors
  2. Rust can trigger segmentation fault and bus error too.
  3. GCC’s error messages are very detailed, sometimes can contain suggested solutions.

For example if I will try to compile helloworld without including stdio.h, gcc will warn implicit declaration of function ‘printf’(by default, almost everyone make it error with -Werror=) and will suggest note: include ‘<stdio.h>’ or provide a declaration of ‘printf’. And runtime error reports are as good as programmer makes them, no matter language program was written in.

I am spoiled by core dumps(although rust technically has them too).

Also in context of kernel, it will print stack trace and (if used) will kexec into another kernel that can make core dump or continue working.

flashgnash ,

I do not code in C it was just a throwaway meme lol

onlinepersona ,

Then there’s C with “segmentation fault”

Successfully triggered a sea fan. (not me, another dude in the comments)

Anti Commercial-AI license

Seigest , to programmerhumor in Asking the important questions
@Seigest@lemmy.ca avatar

Often me. I make tools/interactions for learning management systems. So the back end is a thid party I have no controll over. Just take the api and make the magic happen.

You need me to save data somewhere but don’t want to buy server space? Sure we can cram that into places it’s not ment to go within the system. It will slow things down and likly cause issues but it’s free.

MonkderDritte , to linuxmemes in There are only 4 serious consolidated Linux Distros: Fedora, OpenSuse, Debian, Ubuntu

There’s at lest 20 big original from-scratch distros out there. Ubuntu is none of them.

BautAufWasEuchAufbaut , to programmerhumor in Asking the important questions
@BautAufWasEuchAufbaut@lemmy.blahaj.zone avatar

it was me sorry

Aurenkin ,

I don’t know how to React to this.

fossphi ,

Don’t React, just Vue?

grimdeter ,

I think we all just need a different, Angular approach

starman ,

That’s a Solid suggestion

tempest ,

You might say he was very svelte

Ineocla ,

He certainly has a qwik thinking

exocortex , to programmerhumor in "I want to live forever in AI"

Glad that isn’t Rust code or the pass by value function wouldn’t be very nice.

Cornelius ,

Borrow checker intensifies

ulterno , to programmer_humor in "I want to live forever in AI"
@ulterno@lemmy.kde.social avatar

What needs to happen for it to actually work.


<span style="font-weight:bold;color:#a71d5d;">bool </span><span style="font-weight:bold;color:#795da3;">uploadConsciousness</span><span style="color:#323232;">(Consciousness</span><span style="font-weight:bold;color:#a71d5d;">&& </span><span style="color:#323232;">Conscience) {
</span><span style="color:#323232;">
</span>
blind3rdeye , to programmer_humor in "I want to live forever in AI"

There’s a cool computer game that makes this point as part of the story line… I’d recommend it, but I can’t recommend it in this context without it being a spoiler!

trashgirlfriend ,

Guys probably talking about

: :: spoiler Tap for spoiler SOMA :::

call_me_xale ,

Lost the coin flip.

seatwiggy ,

There’s also a book with a similar concept. It’s not the focus until later in the book though. It’s called

Tap for spoilerReady Player Two

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

A program that I use often uses an embedded MPV window for video playing, and Wayland doesn’t support that, and apparently won’t:https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/74

So until something changes with that program, MPV, or Wayland, or I decide to rewrite the program myself, I’m stuck with X11.

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

Last updated: 31 October 2022

A little out of date. But still the best source I know of 👍

Anti Commercial-AI license

xrtxn ,
Strit ,
@Strit@lemmy.linuxuserspace.show avatar

It’s what the site says at the buttom, so that’s when it was last generated.

xrtxn ,

Yeah that looks correct

kevincox ,
@kevincox@lemmy.ml avatar

What do you think you’re doing by putting that link in every comment? Lemmy doesn’t have a terms of service that assigns a license to your text anyways. So if you just say nothing you own your comment and they can’t use it. If they cared about the licence they would already not be able to use it.

onlinepersona ,

What do you think you’re doing caring about me putting a comment in my link? If it bothers you so much, block me so I don’t have to read your inane whining. I do the same with people like you.

Anti Commercial-AI license

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

I am using Wayland and the only issue that is a bit annoying is that I can’t use fractional scaling because it breaks FreeRDP clients. Both Remmina and FreeRDP have issues when scaling is active. For now I just increased the font size in KDE its not perfect but good enough until this is hopefully fixed.

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

I’d switched from i3 to sway, but the click offset in Krita made me switch back.

krimsonbun , to linux in You think Linux is living a Renaissance with Gaming and New Non-Technical Users?
@krimsonbun@lemmy.blahaj.zone avatar

It’s living a naissance.

germanatlas , to linux in Are we Wayland yet or Whats missing?
@germanatlas@lemmy.blahaj.zone avatar

I still can’t stream screens via discord and my autoclicker relies on a lib that only works with X

e8d79 ,

For streaming there is Wayland to X11 bridge. I have been using it regularly with MS Teams and it works great.

png ,

Or Vesktop, which is a client mod that allows streaming (even with audio)

Cornelius ,

The problem is it’s completely unwatchable. Streams are 2 fps no matter how low or high quality you set the stream :c

devfuuu ,

It enters a loop in discord and doesn’t work. There was a bug recently I was reading about it. Makes you go insane. All the other alternatives basically make you lose the krysp and auto microphone sound detection.

o_d ,
@o_d@lemmygrad.ml avatar

Vesktop works for me

Krtek ,

It works fine with Firefox funnily enough

bitwolf ,

Discord would work if they ever updated their electron version.

kevincox ,
@kevincox@lemmy.ml avatar

Or just use it in a web browser. I don’t really want to run their proprietary spyware outside of a sandbox anyways.

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

Related book recommendation!!

Kil’n People by David Brin - it’s a futuristic Murder Mystery Novel about a society where people copy their consciousnesses to temporary clay clones to do mundane tasks for them. Got some really interesting discussions about what constitutes personhood!

evranch ,

Some of the concepts in this book really stuck with me, but I had no idea what the title was! Thanks!

“Some days you’re the original, some days you’re the copy” or something like that

Diana , to technology in In what ways has your use of technology/internet changed in 2023?

As the market for physical discs dwindled, I started using the best dvd ripper for mac to save DVDs to my computer.

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