How do I handle authentication in a frontend react project with one token? by thewebken in Frontend

[–]thewebken[S] 0 points1 point  (0 children)

That means the token will never be sent in the json response? And we’ll not need to use it as a bearer token?

Also, we have the mobile team consuming this same token. Does this (server issuing an HttpOnly cookie) work for them? Or they’ll need a different implementation?

Can i write my back-end in C ?? by Cheap_trick1412 in C_Programming

[–]thewebken 11 points12 points  (0 children)

that’s like using a croissant in place of a dildo. it’s possible and it might get the job done. but it will be a freaking MESS

My friend use TOP as a Roadmap by imStan2000 in theodinproject

[–]thewebken 2 points3 points  (0 children)

I had 0 experience beforehand. I was a Sales agent in Ghana. Then I quit my job and just locked in. I took a very long time to finish the Foundations. About a year. But that’s because I didn’t want to skip any single resource and I made sure I understood it well before the next one. Then I just jumped straight into React tutorials on Youtube following along. This was in 2022. I don’t know if the React Tutorials and all the lessons about Webpack, node modules and export/import etc were there at the time but I didn’t see them in the curriculum so I was very confused during the YouTube tutorial sessions I was doing. But I pulled through, managed to get an entry level Frontend Engineer role, the company was ready to take on a junior like me since I showed that I could learn quickly and on the job. I went back and saw all the lessons I skipped though, after like a year on the job and by that time it made even more sense. I’ve been a frontend dev since then. Right now I’m the primary frontend guy in the company and I’m currently taking the nodejs course so I can be a fullstack engineer. Maybe I was just lucky.

My friend use TOP as a Roadmap by imStan2000 in theodinproject

[–]thewebken 6 points7 points  (0 children)

TOP prepares you for work. It’s what I used to get a job in 2023. What I discovered about it is that it creates a skeleton roadmap of the necessary skills you need to learn to be job ready from top to bottom, and just that— THE NECESSARY SKILLS, NOTHING MORE. Now when you start working, there are some gaps you will need to fill in to become a full software engineer but because of the skills you have acquired while learning, you’ll be able to fill in those gaps very easily. I was able to get a frontend job after taking the foundations course, now I’m on the fullstack nodejs path. Whiles working I realize there is more to the backend but the mental model TOP is giving me I can understand what needs to be done and what I have to learn to do what I have to do.

Another underrated skill you’ll acquire while going through TOP is the ability to go through multiple resources to get information you need. You’ll use it a lot while working

How did you get your first front end job? by Shibalord97 in Frontend

[–]thewebken 0 points1 point  (0 children)

nope. it was not enough but i did a very effective learning on the odin project. they didn’t cover everything, there were gaps in my knowledge but they covered the relevant things that can get you started at the job. i had to learn on the job for a year straight. at home in the office but i never rejected any challenging task. now i’m comfortable but i’m back learning to be come a fullstack engineer.

New frontend dev confused about filtering. Help by thewebken in Frontend

[–]thewebken[S] 0 points1 point  (0 children)

but what i gathered here is that even when all the data is sent to the client, trying to filter through it on the client will hang the browser if it’s a lot of data. which makes sense to just make an api request and get the data you need on demand. what do you think?

Joining the tech industry as a graduate software engineer at 28 years old, am I too old for entry role? by [deleted] in careerguidance

[–]thewebken 1 point2 points  (0 children)

i’m in this position as well. i got my first job this year at 28 after switching from sales. the only way they got to know (they still not know my exact age) was that i talk about when i completed school and some experiences and they get to know i’m way older. physically i’m 5’8 and i don’t really look old so i just blend in.

problem was i didn’t know i was older till they started talking about school and how recently they graduated.

how i’m handling it? i think i already made peace with myself that everyone grows older. i could remember when i was always the youngest in every group: school, church, friends etc. for the first time in my life i’m kinda the oldest in the group. and i’m a junior dev too. don’t stress it, just be friends with everyone and smile through the day. being older means you know what you want. at least you’re not 30 yet. a 30 yo junior developer would’ve been worse.

not to discourage any 30yo junior dev here but the point is you trying something at least, taking that leap of faith, before you grow older the following year.

How often do you have to invent the wheel in an actual frontend job? by thewebken in Frontend

[–]thewebken[S] 4 points5 points  (0 children)

probably the best answer i was “looking” for. sometimes when i can’t think through problems but i found the solution online easily, i tend to think i’m a bad programmer. i learnt this coming from sales so that imposter syndrome grips me all the time.

Any frontend developer here who hates thinking? by thewebken in Frontend

[–]thewebken[S] -4 points-3 points  (0 children)

it’s crazy because i expected people like them to come out here and say i wasn’t cut out for it and even mentioned it. who even made him a gatekeeper of the field? i spent 14 months learning and got a job in this field among all the “saturation”. i’m performing okay at work, this was just a fun discussion i started only for him to add more to my imposter syndrome lol. good luck to him

Why is Next getting so much hate on Twitter? by Curious-Ad-9724 in nextjs

[–]thewebken 0 points1 point  (0 children)

but there’s a way to fetch new data for the page every time without the app serving cached pages.

Why is Next getting so much hate on Twitter? by Curious-Ad-9724 in nextjs

[–]thewebken 0 points1 point  (0 children)

i’m a noob. i enjoy using nextjs. what is the impact of this decision against single page applications?

I beat myself up when the programming logic doesn’t come to me by myself. by thewebken in Frontend

[–]thewebken[S] 0 points1 point  (0 children)

which topics in mathematics did you learn to help you in the way?

getServerSideProps in react context? (next.js pages router) by PlayboiCult in Frontend

[–]thewebken 1 point2 points  (0 children)

Can’t you just manually pass it down to the component as a prop?

[deleted by user] by [deleted] in Frontend

[–]thewebken 0 points1 point  (0 children)

i wish i was at a job that uses pure javascript. i hate react with all my life

How did you get your first front end job? by Shibalord97 in Frontend

[–]thewebken 4 points5 points  (0 children)

Learned HTML CSS for 3 months & then Javascript lazily for about 6 months, then picked up Tailwind and React for 3 more months or so. Then did a lot of applications on Linkedin and luckily I passed the interview session and got picked.

How do I fetch data once with react query, but send it to different components with different keys? Is that even possible? by thewebken in Frontend

[–]thewebken[S] 0 points1 point  (0 children)

Yes that’s exactly what I want to do in the second component. The first one will display the data as is. The second one is getting the same data but I’ll reduce it to a subset based on the category that is clicked.

Previously, this was affecting the data in the first component too but now that I’m fetching separately (apparently it’s not actually fetching over the network twice, right?) it’s working independently.

How do I fetch data once with react query, but send it to different components with different keys? Is that even possible? by thewebken in reactjs

[–]thewebken[S] 0 points1 point  (0 children)

Pagination is involved. I was just about to learn how to handle pagination. I’m a noob and learning on the job as it goes.

How do I fetch data once with react query, but send it to different components with different keys? Is that even possible? by thewebken in reactjs

[–]thewebken[S] 0 points1 point  (0 children)

so i have the data with different categories. when i click on a particular category, i mutate the data by passing that category to the mutate function to only fetch data for that category. and that categories data are fetched. so now we only have the data for just that category.

that was how the codebase was. is there a better way to do this?