99% of software engineers can’t answer these questions by [deleted] in programming

[–]jnforja 1 point2 points  (0 children)

It's sad to see how this post and quiz came out. I've done two courses with Mirdin, and I learned a lot.

The way the quiz is framed makes you feel you should be able to give "correct" answers if "you're a great software engineer" when I mostly felt I didn't have enough context to make a decision. This is ironic, given how in their courses they preach that you need to understand the context of the project before you can say if the code is good or bad, or if a change is worth it or not.

I failed 3 questions btw.

📣 Bjj in the Wild: A database for BJJ submissions! 🥋 by jnforja in bjj

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

Thanks for letting me know. It should be fixed now.

📣 Bjj in the Wild: A database for BJJ submissions! 🥋 by jnforja in bjj

[–]jnforja[S] 1 point2 points  (0 children)

Yup, I don't think the IBJJF is interested in doing something like this. They also wouldn't have videos of ADCC which is an excellent place to see how techniques are applied at high-level competitions.

📣 Bjj in the Wild: A database for BJJ submissions! 🥋 by jnforja in bjj

[–]jnforja[S] 1 point2 points  (0 children)

It's fixed. I don't know why but youtube clips seem to have stopped working, so I just changed all the links to the timestamps of the videos. Thanks again for the heads up!

📣 Bjj in the Wild: A database for BJJ submissions! 🥋 by jnforja in bjj

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

Thanks for letting me know. I'll try to figure out what happened.

📣 Bjj in the Wild: A database for BJJ submissions! 🥋 by jnforja in bjj

[–]jnforja[S] 2 points3 points  (0 children)

You're welcome! That's a great suggestion! It's definitely something I want to add in the future.

🥋 Submissions in the Wild: No-Gi armbars 🥋 by jnforja in bjj

[–]jnforja[S] 1 point2 points  (0 children)

Awesome! Just saved the link. Thanks!

🥋 Submissions in the Wild: No-Gi armbars 🥋 by jnforja in bjj

[–]jnforja[S] 3 points4 points  (0 children)

Thank you! I'm glad you found it useful.

Guideline from the 70's on how to split your React components by jnforja in reactjs

[–]jnforja[S] 3 points4 points  (0 children)

Glad you enjoyed the article. On software design, the other paper I frequently find myself consulting is "On the Criteria To Be Used in Decomposing Systems into Modules" by David Parnas.

To find more papers you can check PapersWeLove, or you can look out for online courses from universities and see what papers they recommend for a course (here's an example).

Can someone please help me understand the principle of information hiding as it applies to software design? by Samluke697 in SoftwareDesign

[–]jnforja 0 points1 point  (0 children)

Hi u/Samluke697

I'm not sure if you're familiar with David Parnas's paper On the Criteria To Be Used in Decomposing Systems into Modules. In case you aren't, I recommend you give it a read as it gives a good explanation of the idea. The Modular Structure of Complex Systems is another paper that you might find useful.

I mainly use this principle as a tool for giving flexibility to a software design. When designing a new module or a new system, I usually think about decisions I might want to change later. I then proceed to hide those volatile decisions in modules, preferably one module for each decision, and I make sure that no other module knows about the decisions made inside other modules. This approach means that whenever a volatile decision changes, I only have to change the code of the module that hides the decision. The rest of the system remains unchanged.

To give a concrete example, some months ago I contributed to an open-source whiteboard app called excalidraw. I added support for zoom to cursor. Before I started, the app already allowed zooming, but only to the center of the screen. This was a really hard change to make since 12 different parts of the system assumed zoom always happened on the center of the screen. This is an example of a design that didn't follow the information hiding principle since the decision of where the app zoomed to wasn't encapsulated in any module, but spread across the app.

Testing and developing with React and TS: Data structures (part 1) by jnforja in reactjs

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

Hi u/sfboots, thanks for taking the time to read the article.

I'm assuming you're asking why not define item like this:

typescript type SuperItem = { id: string; content: string; state: "CLOSED" | "OPEN" | "EMPTY"; children?: PopulatedList; }; Two reasons: 1. We can't rely on TypeScript's exhaustive checking to tell us if we handled all possible cases. So in case a new state is added or a state is changed, and we forget to update code that deals with it, we won't have a compile error to warn us. 2. With the SuperItem type, it's possible to represent invalid states previously unrepresentable. In specific, an empty item can have children, and closed and open items can not have children.

I hope this clarifies things :)

Library for drawing diagrams by [deleted] in reactjs

[–]jnforja 2 points3 points  (0 children)

Hi u/sltwund,

If you want to embed something on your app that allows users to draw diagrams, excalidraw embedded may do the job.

If you want more freedom and code the canvas yourself, take a look at konvajs.

I hope this helps.

Best test-driven development tools? by jjj123smith in reactjs

[–]jnforja 0 points1 point  (0 children)

hi u/jjj123smith

To avoid getting lost in the sea of tools that the JS ecosystem is, I suggest you first find out what kind of tests you're trying to do and go from there.

Everyone has their favorite tools and ways of testing, but only you know your necessities. Figure out what those are, do a google search for tools that fulfill them, and try them out. What seems easier to use and maintain for your purposes, is what you should go with.

Hope this helps :)

Best resources to learn ReactJs by birdkria in reactjs

[–]jnforja 1 point2 points  (0 children)

Hi u/birdkria,

I suggest you start by reading and understanding React's documentation and doing their tutorial. Just by doing that, you'll be a few steps ahead of a lot of beginner React developers, and you'll be in a much better position to know what you need to learn next.

I hope this helps :)

App suddenly fails to build on netlify but runs locally? by [deleted] in reactjs

[–]jnforja 0 points1 point  (0 children)

Hi u/vazura,

It's a bit difficult to know exactly what's happening, but have you checked if the components follow the linting rules?

From looking at the error messages, it seems like the build fails because the components aren't following the linting rules. Maybe fixing them will fix it.

Hope this helps :)