Tag

Example Code

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Oct 25, 2024 · Frontend Development

Introducing PyWebIO: Build Web Frontends with Pure Python

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 CodeInteractive UITutorial
0 likes · 12 min read
Introducing PyWebIO: Build Web Frontends with Pure Python
Python Programming Learning Circle
Python Programming Learning Circle
May 25, 2024 · Backend Development

Introduction to Whoosh: A Lightweight Python Search Library with Example Code

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 CodeFull-Text SearchIndexing
0 likes · 7 min read
Introduction to Whoosh: A Lightweight Python Search Library with Example Code
DeWu Technology
DeWu Technology
Sep 15, 2023 · Backend Development

An Introduction to Generics in Go

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 CodeGogenerics
0 likes · 13 min read
An Introduction to Generics in Go
Laravel Tech Community
Laravel Tech Community
Dec 28, 2020 · Backend Development

PHP rsort() Function – Reverse Sorting an Array

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.

Backend DevelopmentExample Codearray-sorting
0 likes · 2 min read
PHP rsort() Function – Reverse Sorting an Array
Test Development Learning Exchange
Test Development Learning Exchange
Dec 27, 2019 · Fundamentals

Understanding Python's Special Methods __len__ and __getitem__ with Example Code

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.

DunderExample CodePython
0 likes · 4 min read
Understanding Python's Special Methods __len__ and __getitem__ with Example Code
Java Captain
Java Captain
Oct 26, 2017 · Game Development

Java Shooting Game Example Demonstrating OOP Concepts

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 CodeGame developmentJava
0 likes · 16 min read
Java Shooting Game Example Demonstrating OOP Concepts