The Chill Coding Lounge – Telegram
The Chill Coding Lounge
520 subscribers
493 photos
96 videos
11 files
225 links
Welcome to the Coding Lounge, chill and relax as we talk about programming, memes, and the pain of errors.
Download Telegram
Wait???? Since when do li's in lists not need closing tags??? What?
This is legal?

<ul>
<li>
<li>
<li>
<ul/>
Good morning gang. Let's get that bread😤😤
Clair Obscur: Expedition 33 is a beautiful ass game, and the fact that only 30 devs created it is just mind blowing. Unreal Engine is truly unreal
Forwarded from Corax cave
"Nobody cares about men's mental health"
Its you brother, your the one who's supposed to care about men's mental health.
You're the one who's supposed to talk about it.
You're the one who's supposed to create safe space for your friends to talk about their struggles, emotions and mental health.
You're the one who's supposed encourage therapy and getting professional help.
I don't think anyone can disagree with me when I say the idea of men ignoring their issues, emotions, mental health is perpetuated by other men.
Its male influencers who tell other men that their have no value if they don't meet specific criteria.
If you go around downplaying mental health issues but only bring up men's suicide stats when you're arguing with women or on women's day then you're the main problem.

And dont talk about the online misandry, its nothing burger. Nothing ever comes out of it :P

I don't want this to come off as aggressive blaming, Alhamdulilah I have friends I can to about almost anything but I know many don't have that. So be the voice you want to hear in the world.
Gymbro told me I was looking built, and that I can lift more than my current PRs.

Highlight of my day gang
1🔥1😘1
Good morning gang, may you be blessed with opportunities and good health🫡
3
useReducer really reducing the remaining brain cells I have in my mind. RIP
Why should you use useReducer (until my dumb ahh reaches Redux😂)

UseReducer is useful when:

Your component has multiple interrelated state variables.

You need to perform several state updates at once (e.g. starting a game resets time, score, level).

State updates are dependent on previous values or other state properties.

You want to centralize and decouple the state logic from your component’s UI logic.

Here is an example:

//Setting Initial State
const initalState: {count:0, step:1}

//Reducer function
function reducer(state, action) {
//return needed in order to update state
switch (action.type) {
case "inc":
return { ...state, count: state.count + state.step };
case "dec":
return { ...state, count: state.count - state.step };
case "setCount":
return { ...state, count: action.payload };
case "setStep":
return { ...state, step: action.payload };
case "reset":
return intialState;
default:
throw new Error("Nope");
}

}


function Test(){
const [state, dispatch] = useReducer(reducerFunction, initialState);

const dec = function () {

//dispatch is the equivalent of setState for useState

dispatch({ type: "dec" });

};

const defineStep = function (e) {
dispatch({ type: "setStep", payload: Number(e.target.value) });
};

return <>YOUR JSX GANG</>
}


Confused yet?😂😂 I can go more into detail if you guys want, just let me know🙏🏾
👍1
How's everyone's day been so far?
2🥰1
Good morning gang! Let's get our bread😎
Cooking something simple but this taught me so much about about useReducer alongside frontend dev. I'm going to change up format of the quiz to better suit this goofy aah channel tho🗣🗣
🔥2
Gang I think I failed🥲 Why did I manage to hurt myself with these emojis😂

(Disclaimer: This was totally done on purpose)
My first ever mini-side project which I created to learn React (specifically useReducer)

While it may be simple, I feel quite happy as I pushed myself out of my comfort zone and somewhat overcame imposter syndrome for it (Dramatic I know but still😂)

Take a look and let me know what you think (React based questions btw)

Also responsive so it should work well on mobile devices.

https://goofy-react-quiz.vercel.app/

(P.S An Easter egg is available, if someone can find it let me know😂😂)
🔥9
Holy mother of node modules, compressing a project takes forever.

And before you say why not push to github, I was asked to provide the actual file 😂
The Chill Coding Lounge
Holy mother of node modules, compressing a project takes forever. And before you say why not push to github, I was asked to provide the actual file 😂
To the people who read this, I would like to formally apologize for my grave stupidity😂😂 I should have not included the node modules. Rookie mistake🙏🏾
🤣1
Good morning guys🫡
I'm cooking something down right deep. Will release it in a few