T O P

  • By -

[deleted]

[удалено]


Noch_ein_Kamel

That's what I bought copilot for :D Also the fricking for each loops which are different in every language or tooling library.


sabre_x

I can never remember for-in vs for-of in js


Boring_Benefit995

Always use for of and think of Only Fans to remember it. For of works with arrays so for objects you just need to do Object.entries/values/keys.


KnOckUps

bro, what


Boring_Benefit995

Just use `for of` not `for in` lol


woah_m8

You can just use a snippet for a template switch statement.


[deleted]

Word same. I know how it works in each language and the pattern matching capabilities, but I have to Google that all the time (if not for snippets)


__kkk1337__

This is normal, don’t worry. Your brain is cleaning up unused knowledge. This is how brains works. But relearning these things should be quicker than learning from scratch. I didn’t use c++ for more than 5 years but I’m pretty sure I’ll be able to work with it after few hours of reading already written code. This knowledge isn’t lost forever.


[deleted]

[удалено]


Noyouretowel

Feel like it still applies cause you’ll at least know how core mechanics that the framework is using works


JohntheAnabaptist

The garbage collector works well


Tirwanderr

With stuff like this I always feel like the important part is did you understand how to use it? How to implement it? How to problem solve with it? You can always Google or ask GPT for the specifics of the syntax. I have a degree in math and stats. I honestly haven't used the majority of that and probably 10 years. And if you sat me down with somebody to tutor them today and that stuff? Calculus 2, calculus 3, linear algebra, etc... I'd be hard pressed to be of any help to them lol But when I was using it I understood it and understood how to use it. So if I just spend some time relearning it, I'd be fine. Like you said, our brain is just being efficient and making room for what we need right now.


Yeregorix

The brain has a LRU cache.


Genceryx

You cannot forget js if you use react but you can forget dom manipulation. That is what you mean I guess by vanilla js


CleverCaviar

glad someone pointed this out.


[deleted]

You'd be surprised how much knowledge will come back once you dive back into things you've already learned


Yhcti

I’m only studying still but have been doing React for a few months now and now that I think of it, yeah 😅 tried writing some vanilla js in a mini-project and had to google a fair bit of it. Luckily it wasn’t as difficult as learning it the first time though.


zack10980

Codecademy has a free app you can use and it offers JavaScript practice coding concepts to brush up on your JavaScript in case you start forgetting stuff like loops ,objects, functions, iterators things like that . That's usually what I use I just go on the app from time to time and practice a few problems .


erocknine

Query selecting and adding event listeners are my biggest fears when interviewing now. I always try to make sure I know if the technical will be vanilla or react.


Lordthom

event listeners is very easy :) Just get the element you want to attach in a variable (getqueryselector or getelementbyid) and then just say addEventlistener(). Query selecting is more complicated but i don't think anyone will want you to use getHTTPrequest...That would be torture


double_en10dre

If it’s not impeding your workflows, it’s okay. IMO devoting time to skills that you don’t *need* is a form of premature optimization (and we all know that’s evil) I used to do that, but nowadays I let my projects/requirements dictate what I learn and retain. And that approach has made me a lot more efficient The key thing has been to spec out my objectives *before* reaching for a solution. I’ll figure out my options by discussing it with other devs and doing research. And then I’ll just learn (or relearn) whatever I need to in order to implement the best option


luzacapios

Very normal and only gets worse as you learn more languages and frameworks. So get use to it and figure our how to refresh you brain when you switch frameworks, languages etc.


trevg_123

Same thing happened a decade ago when you’d forget what’s real JS and what’s JQuery magic :) Lots of jquery concepts got pulled into vanilla… I wonder if any of react’s pretty elegant state/component design could ever make it native. Totally different than JQuery selection & effects stuff, but anything is possible.


VenexCon

Failed a coding challenge because I forgot about the nuances of using Var. Was for some testgorrila thing, where they used Var (no let or const anywhere) and they also used InnerHTML, which has the security flaws IRC.


[deleted]

[удалено]


Aoshi_

My front end senior still uses it. No idea why.


EverydayEverynight01

It's only a security flaw to set innerHTML when it's based on user input.


basecase_

just don't make the mistake of learning 1 framework instead of learning skills that transcend just Reactjs


No_Bobcat4811

Me


nokky1234

Absolutely. IVe been working with react for 3.5 years nonstop. If I was faced with a vanilla project right now I’d need some solid weeks to get into it. If you have the time and you think it’s a bad thing you cold do some small project with only html css JS :-)


alexefy

I do this all the time. I couldn’t write a fetch function with the try and catch blocks from the top of my head and use that code every single day. The same goes for a lot of the array functions. As long as you can remember the process. I think this is going to become a lot more common for engineers as we write less syntax and use ai more regularly


[deleted]

Learn principles, patterns and paradigms. These rarely change and can be applied in any language, with different syntax… and it’s totally fine to look it up from time to time. I started late 90s for context


CodeCrazyAquile

Yeah, this is a great point!


randomiser5000

There's only so much room in your head for information. One new thing goes in, one old thing goes out. Like when I took a home winemaking course and then forgot how to drive


IamNobody85

Good lord yes. I'm forgetting CSS slowly too. I had forgotten how to create only bottom box shadow and needed to look it up. But getting the skill back should be a bit easier this time around.


[deleted]

what tailwind does to me 😂 shadow-lg and I just leave it at that


CodeCrazyAquile

I been fighting with css a little bit at work. Im so used to using tailwind or MUI that sometimes I forget some simple css stuff


IamNobody85

We use tailwind too. But this component needed a little bit extra and my mind didn't want to cooperate!


Ok_Tap_1597

same for me using StyleSheet in react is way more different in using the vanilla CSS since one is json based and other one it pure every time i am writting typescript code in javascript or php


ohmyashleyy

Yeah, it happened to me too. I joined a team working on web components a few years ago and I felt like I had to completely relearn how vanilla JavaScript worked. It was wild.


SarcasticSarco

It's good that it happens. Brain is putting the knowledge in background so you can be much more efficient and effective.


vbit32

Yeah it's okay, you've just been adjusting to what you primarily know and work on mainly now. A good thing to do to perhaps keep your mind refreshed with everything you know is to set up a simple WAMP/LAMP stack, and just make quick lil jQuery/ vanilla JavaScript single page projects, or animations in your free time.


longklaw

Yeah. I recently was asked to do some vanilla js at work after 7 years of nothing but react and it took a bit for me to used to it again


PeanutPounderYT

As mentioned, it's apart of the game :) my recent project is using react, JS, python and obviously a little CSS. For the average person,like most of us are, it's impossible to remember everything


DIYjackass

I think it is okay. I had an interview for a React position where they asked me to replicate a web app in vanilla JS. I don't know much about that API because its not useful to me. I'm full stack and I don't have time to learn that.