Learn. Build. Ship.

Tutorials, guides, and references for developers — from fundamentals to advanced techniques.

Latest

C / C++ Tutorial

C++ for Beginners Part 8: Inheritance and Polymorphism

Inheritance lets you build new classes on top of existing ones, reusing and extending behaviour. Polymorphism lets a single interface work with many different types at runtime. Together they're the core of OOP in C++. This article covers base and derived classes, virtual functions, abstract classes, and when to use each pattern.

w
webencher Editorial
· 18 min read · 501 views
React Tutorial

React Hooks Part 8: Rules, Anti-Patterns, and the ESLint Plugin

Hooks come with two hard rules enforced by the ESLint plugin. This article explains why those rules exist, the most common anti-patterns developers fall into, and how to restructure code when you feel the urge to break them.

w
webencher Editorial
· 7 min read · 173 views
React Tutorial

React Hooks Part 9: Testing Hooks with React Testing Library

Hooks are just functions, but testing them well requires care. This final article covers testing hooks through components (the preferred way), using renderHook for isolated custom hook tests, and common async patterns.

w
webencher Editorial
· 10 min read · 151 views
React Tutorial

React Hooks Part 7: useImperativeHandle and useLayoutEffect

Two escape hatches most tutorials skip: useImperativeHandle for exposing a controlled API from a child component, and useLayoutEffect for DOM measurements that must happen before the browser paints.

w
webencher Editorial
· 8 min read · 197 views
React Tutorial

React Hooks Part 5: Sharing State with useContext

useContext lets any component read shared state without threading props through every layer. This article covers createContext, Provider setup, and the patterns that keep context from becoming a performance trap.

w
webencher Editorial
· 8 min read · 312 views
C / C++ Tutorial

C++ for Beginners Part 7: Classes and Object-Oriented Programming

Object-oriented programming lets you model the real world as objects with data and behavior. This article covers C++ classes from the ground up: member variables, member functions, constructors, destructors, access specifiers, and the principle of encapsulation — with a full BankAccount example.

w
webencher Editorial
· 17 min read · 589 views