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.

programmer_humor

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

kucing , in Error 502:

So is the gateway grounded?

nyan ,

Probably locked in its kennel for the night.

1993_toyota_camry , in using gpu with linux experience
@1993_toyota_camry@beehaw.org avatar

Correction: Using NVidia GPU on openSUSE experience

WarmSoda , in I’m not unemployed, I’m doing…

PAYCHECK.
Real movies didn’t want them.

Steeve , in Just a Normal Sprint Planning -_-

Let’s also have you do a master rank codewars kata… on the whiteboard. You have 30 minutes.

RiQuY , in using gpu with linux experience

Never happened to me, yet. Every update ran correctly and if there were any package conflicts it will prompt you several choices.

noddy , in using gpu with linux experience

Analyzing the symptoms, I’m afraid to say, you might have nvidia.

Duke_Nukem_1990 , in using gpu with linux experience

chroot goes brrrr

Notnotmike , in “Hire me”
@Notnotmike@beehaw.org avatar

Probably the hardest part of React, for me, was getting used to the callbacks. Passing data up to the parent component using a function. It’s a little difficult to get used to if you haven’t encountered it already

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

Just shove it in the state! I watched a few react videos over the last TWO WHOLE DAYS, it works!! ;$

traveler ,

You can pass data to top components from the child ones using the useContext. Use it only if you have data where you want to pass data from multiple child components to the parent one, if you just want to use from one component you are good with states.

zorlan ,
@zorlan@aussie.zone avatar

I think you’re being down voted because context should be used sparingly. You can pass data back up the parent chain through prop functions.

traveler ,

Yes I’m aware, was just giving a suggestion. I even linked to its documentation where all that information is available.

To be fair couldn’t care less if Im voted down or not, if I could I’d have an option to just hide that vote bullshit it’s just visual garbage in the UI. Basically a remnant from centralised social networks from the web2 era.

DrQuint ,

If there’s a parent component that has some data that it expects to always receive from its children, then that data should be in the parent’s state and the children should receive it and maybe some relevant methods as props. Even if it’s an unknown number of children. Don’t muck with useContext for basic inheritance stuff, you’ll mess with the render cycle for no good reason.

Now, if we’re talking about a very distant “top” component, that’s fine, it’s what it was made for. Although many people end up using stores if it’s some data with broad impact (like user data)

frezik ,

I had gone through Structure and Interpretation of Computer Programming before, and feel like that gave me all the foundational stuff I needed to understand what React is doing. The new third edition is in JavaScript, and while I haven’t read it, I imagine that would be an even better match.

foxfell , in using gpu with linux experience
LazaroFilm , in More the merrier
@LazaroFilm@lemmy.world avatar

// TODO Add comments

festus , in I know I should... but I just really don't wanna

One rule of thumb I’ve heard and follow is that every time you encounter a bug, you write a unit test that would catch it. I find that does a pretty good job of getting high code coverage, though maybe that’s cause my code is naturally buggy 😅.

bleistift2 ,
  • Writes test to trigger the bug
  • Test is green without fixing the bug.
  • Dafuq?
RGB3x3 , in “Hire me”

React definition: React (also known as React.js or ReactJS) is a free and open-source front-end JavaScript library for building user interfaces based on components.

Guys, I’ve learned React in 1 minute!

nero , in “Hire me”
@nero@lemmy.world avatar

I can use react to build something, but fuck is it inefficient. Still learning though, as i’m just creating my first frontend and it’s for a hobby project anyway, so performance doesn’t matter.

tsonfeir OP ,
@tsonfeir@lemm.ee avatar

Have you tried Vue? I like it more.

traveler ,

I mean, React apps if well developed are quite fast running and give the sense to the user that they instantly load pages. If you can program it you can even control quite nicely the content of the page so waiting for the API calls don’t get too slow.

nero ,
@nero@lemmy.world avatar

I meant more like my code is inefficient hahaha, i’m not really paying attention to any optimization right now, as it’s just a home project

milkjug , in Father material
@milkjug@lemmy.world avatar

Ah, the ol’ Brainfuck, aka the new PHP of 2034.

milkjug , in Would you agree?
@milkjug@lemmy.world avatar

Probably done in jest, but this reads like the 100,000,000th “agree?” bullshit post on LinkedIn.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines