Tagged articles
Example Code
11 articles · Page 1 of 1
Gin is a high‑performance, lightweight Go web framework that offers fast routing, flexible middleware, route groups, error handling, and built‑in support for JSON, XML and HTML, with simple installation and clear code examples demonstrating a basic server, grouped routes, custom middleware, and parameter handling.
Example CodeGinGo
0 likes · 9 min read

This tutorial walks through the fundamentals of Java objects, covering declaration, instantiation, referencing, practical code examples—including a HelloTest class and a Point/Rectangle demo—and explains Java's automatic garbage collection and manual cleanup techniques.
Example CodeJavaOOP
0 likes · 10 min read

This tutorial explains Python's selection structure by walking through three hands‑on exercises—checking if a number exceeds 16, determining odd or even, and calculating the day of the year (including leap‑year logic)—complete with code snippets and sample output.
Example CodePythoncontrol flow
0 likes · 4 min read

This article walks through a Python solution for testing each username against every password from two separate files, explains why a single nested loop suffices, provides the full code example, and shows the resulting output even when the files have mismatched line counts.
Example Codebrute-forcedata processing
0 likes · 3 min read

This article explores C++ concurrent programming techniques, covering multi‑process fundamentals, process creation with fork(), inter‑process communication methods, multi‑threading using std::thread, synchronization tools like mutexes and condition variables, and efficient I/O handling through select, poll, and epoll multiplexing, with practical code examples.
C++Example CodeIO Multiplexing
0 likes · 26 min read

This article introduces the PyWebIO library, explains how to install it, showcases its output and input functions, and provides several practical example programs—including a BMI calculator, a markdown editor, a chat room, and a Gomoku game—demonstrating how Python can be used to create interactive web front‑ends without writing HTML or JavaScript.
Example CodePyWebIOWeb Frontend
0 likes · 12 min read

This article introduces the lightweight Python search library Whoosh, outlines its features, explains how to define schemas, create indexes, and perform queries with example code, and compares it to larger search engines, making it suitable for small search projects.
Example CodePythonfull-text search
0 likes · 7 min read

Go introduced generics in version 1.18, allowing developers to write reusable, type‑safe code by defining type parameters and constraints in square brackets, instantiating them with concrete type arguments, and using generic functions, types, and collections such as stacks and sets to improve readability, safety, and maintainability.
Example CodeGenericsGo
0 likes · 13 min read

The article explains PHP’s rsort() function, which sorts an array in reverse order, details its parameters and return values, and provides a complete example showing how to sort a fruit list and output the sorted elements with their indices.
Example Codearray sortingbackend development
0 likes · 2 min read

This article explains Python’s double‑underscore special methods such as __len__ and __getitem__, demonstrates their implementation in a FrenchDeck class with example code, shows how they enable built‑in functions like len() and indexing, and further illustrates additional dunder methods using a Vector class.
Example CodeSpecial Methodsdunder
0 likes · 4 min read

This article presents a complete Java shooting‑game source code, explaining how each class—Airplane, Bee, Bullet, Hero, and the main game loop—illustrates object‑oriented programming principles such as inheritance, interfaces, encapsulation, and event‑driven design for a simple desktop game.
Example CodeOOPShooting Game
0 likes · 16 min read
