by 2bor-2n · 4y ago · 0 comments
I primarily use ReactJS.
We used a domain-driven pattern. Although there is still that component parent hierarchy thing going on.
TDD (tech design doc), write the code, linter, unit tests (Jest/Enzyme eg. render part of component take code snapshot, assert stuff) and then WDIO for visual regression testing (image diffs). It is a time consuming thing to setup but when you have like 600tests it's nice/assuring. Then it runs on a pipeline (Jenkins) for about an hour before it gets released to some domain.
Personally I am still in the get it done/MVP stage. The above is ideal case when you're established/dealing with many other people changing code.
I am going with a Selenium/functional test though personally for the thing I'm working on now (2-way real time interactive app).
There's different ways to test stuff depends what your thing is. The TAs I worked with use Eggplant.
The main thing though about separation of concerns is important when possible just to reduce cognitive load for the next stuff you add.
Personally I've started learning since 2013, but I was still in jQuery/PHP days around that time. Didn't pick up React until like 2017. Now everything I do is JS based for the most part except things like Python/C++.
Professional experience about 4 years or so.
If you're just starting there's a developer roadmap (on GitHub) you might find interesting about all the different directions you can take.
Oh if you want to get your feet wet with ReactJS fast, I'd recommend Traversy Media's React JS crash course on YT. They're like an hour long. I say they're because he updates them per year.
Also if you look at the monthly HN who's hiring JS/React/Python are usually always at the top of the list in demand. Does depend where you're looking but yeah.
Right now i am working on a JavaScript/jQuery SPA, a huge app and a lot of bad approaches and coding conventions. I am going to resume with react ecosystem again to update myself with the current industry trends.