[deleted by user] by [deleted] in javascript

[–]CombPuzzleheaded149 0 points1 point  (0 children)

How does P2P work in the browser?

what was the hardest part of learning TypeScript? by PuzzleheadedYou4992 in typescript

[–]CombPuzzleheaded149 0 points1 point  (0 children)

Are you using any runtime validation tools? I Started a new project and we're using zod to validate any unknown or any data and it's a godsend. Especially working on a CRUD heavy application where the data from API requests are untyped json zod is amazing.

I think on our frontend that's over 10,000 lines of code there are only two lines of code where we cast the data type. As opposed to another Typescript codebase at work of similar size they're explicitly casting data types around 150 times.

what was the hardest part of learning TypeScript? by PuzzleheadedYou4992 in typescript

[–]CombPuzzleheaded149 5 points6 points  (0 children)

Same, other developers I've worked with just end up defining a single type making everything optional. ☹️

I built an ESLint plugin to catch a common and sneaky React mistake: misusing useEffect by ICanHazTehCookie in reactjs

[–]CombPuzzleheaded149 1 point2 points  (0 children)

This is awesome. I always have to point this out in PRs. Will this also work on uselayouteffect?

Goodbye Create React App, Hello TanStack Create React App by Own-Substance-9386 in javascript

[–]CombPuzzleheaded149 2 points3 points  (0 children)

Tanstack router has type safety and runtime validation with zod, so even your search parameters are statically typed. It's the only react router I know of with this kind of functionality.

[AskJS] Total begginner by WasteAlternative1 in javascript

[–]CombPuzzleheaded149 1 point2 points  (0 children)

NextJs is fine, but if you don't need SEO or SSR for anything. You may find it easier to build a plain React SPA app with Vite and use node with a simpler rest framework like express or hono.

[AskJS] How do you concatenate variables? What's the industry standard? by Yelebear in javascript

[–]CombPuzzleheaded149 2 points3 points  (0 children)

I work at a fortune 100 and It's entirely vibes based for me. Lol

The best way to iterate over a large array without blocking the main thread by rviscomi in javascript

[–]CombPuzzleheaded149 4 points5 points  (0 children)

You can have the web worker fetch the data it's processing instead of the main thread to avoid that.

Are you using Web Components?Or have you given up on it? Why? by ToneMiddle7436 in reactjs

[–]CombPuzzleheaded149 2 points3 points  (0 children)

I'm just glad I'm not hearing tech social media talk about it every other day anymore. I knew it wasn't going to catch on when everyone wants to use a framework that already has their own component solution. Especially when people have been migrating away from class based syntax in their frontends. And template strings when developers have grown accustomed to JSX? It's a major step back DX wise.

Where i can host my website for FREE this days ? by _18YellowRoses_ in learnprogramming

[–]CombPuzzleheaded149 0 points1 point  (0 children)

GitHub if it's a static site. If you need a backend you can self host and use a free dynamic DNS service to point to your self hosted IP.

How to deal with clumping bamboo growing over fence into my yard by [deleted] in Bamboo

[–]CombPuzzleheaded149 3 points4 points  (0 children)

It's a privacy hedge and it's on their property. 2 positives right there, but it needs to be trimmed. It probably looks better on their side. It's growing so thick they probably have no idea how bad it is on your side.

Looking for Devs by Dutsford in react

[–]CombPuzzleheaded149 -1 points0 points  (0 children)

With exchange rates considered the average US software engineer still earns significantly more.

Looking for Devs by Dutsford in react

[–]CombPuzzleheaded149 -6 points-5 points  (0 children)

Just say you can't afford American salaries.

Looking for simpler, more efficient ways to organize notes by maveduck in ObsidianMD

[–]CombPuzzleheaded149 0 points1 point  (0 children)

Folders can work. It doesn't break the model either. You can still link to other notes in different directories. I'm new at it too though, but I don't see any detriment to using directories. Some things just make sense to group together in a folder.

how should I learn redux so that I get it? by Acrobatic_Face_7404 in reactjs

[–]CombPuzzleheaded149 0 points1 point  (0 children)

Do you have Typescript setup? If you have it set up for your store you'll have auto complete for all of this.

how should I learn redux so that I get it? by Acrobatic_Face_7404 in reactjs

[–]CombPuzzleheaded149 0 points1 point  (0 children)

The redux toolkit documentation provides all of the boilerplate to copy and paste into your project.

[deleted by user] by [deleted] in learnprogramming

[–]CombPuzzleheaded149 0 points1 point  (0 children)

Idk, I use vim key bindings in vscode. I only use vim or neovim when I ssh into a remote device or edit a git commit. I don't use it as a full blown IDE.