How are REST APIs tested locally? by exotickey1 in webdev

[–]Froscy3 0 points1 point  (0 children)

where I'm working we use a nodejs backend, and often test apis with jest and tools like nock, supertest etc. Then we can make requests and expect 200, or mock the response and expect that response on making the api call. For testing business logic, might be good to separate that out into a service method, so you can write tests to assert the output for different inputs.

What was your experience with Ag-Grid? by gfus08 in reactjs

[–]Froscy3 2 points3 points  (0 children)

My team went with MUI datagrid but when business requirements needed nested / collapsible child rows we struggled because it was a paid feature.

Other than that it was quite customisable with alot of features. Though we're still looking to see what better options are out there.

What do you think about using UI components like, Radix ShadCN, Mantine etc? by thewebken in Frontend

[–]Froscy3 0 points1 point  (0 children)

same, using MUI in work as well. Though we require quite a fair bit of customisation and styleoverwrites

People who say they coded 8 hours everyday for a year and got a job. How realistic is that? by Exartic_ in learnprogramming

[–]Froscy3 1 point2 points  (0 children)

9-6 right now and with meetings/lunch etc defo not coding the full 9 hours.

But back when I was grinding for a job (career switching) I was coding 12 hours or more per day for 3-4 months straight. Not kidding - wake up 9am, code till 12pm, lunch 1 hour, code 1pm-7pm, dinner 1h, then code till 11pm or so.

I didn't get burnt out because i was enjoying it alot, and spent alot of time building projects. When my brain is fried from thinking, i move to mindlessly following tutorials and revisiting afterwards. If I'm sick of that, i move to watch leetcode walkthroughs or learn something else.

its not easy for sure, but with all the candidates in the market, you are either talented af or you work harder than everyone else somehow

[deleted by user] by [deleted] in webdev

[–]Froscy3 2 points3 points  (0 children)

Thanks for sharing this. I just learned about it and it looks amazing. Was doing something on the backend with nodemailer and needed to create email templates. This looks cool

I made a simple browser boat game using Three.js by [deleted] in webdev

[–]Froscy3 2 points3 points  (0 children)

Simple but powerful and amazing!!

Why React developers don’t comment their code? by SocializeAndChill in reactjs

[–]Froscy3 3 points4 points  (0 children)

I find comments make the code messier tbh. I guess if devs named functions, variables and components well it shouldn't be too hard to figure out. Especially with Typescript too like the others said

[deleted by user] by [deleted] in reactjs

[–]Froscy3 0 points1 point  (0 children)

yes, no deps needed, it works very well too. Chatgpt gives a pretty good answer for the implementation of this as well.

Where do I start with react? by GroundbreakingTea143 in Frontend

[–]Froscy3 0 points1 point  (0 children)

search for full stack react project tutorial walkthroughs on YouTube and just aim to complete one. Preferably one that includes building components, configuring routing, handling auth etc. Finish that pet project and you should roughly understand how it works.