Home
Joseph Ng Rong En
Cancel

closures for useEffect hacks

Have you ever gotten into a scenario where you tried to nest a useEffect hook within a useEffect hook? that is not allowed in React as it has to be at the top level of a functional component, it ne...

React composition

by default, usually we would use prop drilling to pass props to nested components for simple cases. however this gets very cluttered if there are many nested components and the drilling gets overly...

IoT board customized

this is a simple Iot board that my team and i customized to enable the raspberrypi to go HAM. we wanted to increase the functionality the raspberrypi could do to support it as an IoT device to comm...

to enum? or not

recently i got into a strange issue when using enum, using an example of a card deck where i would want a deck to have certain suits as params export enum cardSuits { diamond, club, hearts, ...

React and Node backend authentication/authorization

Reading about authentication and authorization got me worried, how am i suppose to properly secure my application to prevent security attacks - XSS and CSRF protection. the plateu of answer on sta...

Types and Interfaces in typescript

types and interfaces are ways to enforce javascript to adher to a certain specification for your code to allow the developer to know what params can be passed both types and interfaces can almost ...

Visual SLAM

my introduction to slam came when i was in A*star and at first it was such a mouthful to understand. the algorithm behind it was so difficult to understand and i was just thrown a book to read. (m...

Humble Beginnings

I guess this would be the start of my blog. items here would mainly include coding, some random thoughts and devotional. would probably start with some old stuff. why humble beginnings you might a...