Tagged articles
4 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Sep 5, 2024 · Backend Development

Build a Clean, Efficient MySQL Utility Class in Python

This article walks you through designing a lightweight, high‑performance MySQL helper class in Python, covering singleton connection management, robust exception handling, logging, context‑managed connections, and practical query/execute methods with example code and usage scenarios.

Error HandlingPythonSingleton
0 likes · 7 min read
Build a Clean, Efficient MySQL Utility Class in Python
Java Architect Essentials
Java Architect Essentials
Jul 19, 2024 · Backend Development

Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot

This article explains how to create a unified SpringBoot utility class that builds hierarchical structures such as multi‑level menus, comments, departments, and categories, discusses database design choices like the optional tree_path field, provides a detailed ITreeNode interface, implementation of TreeNodeUtil with code examples, and demonstrates testing and filtering scenarios.

Backend DevelopmentJavaMulti-level Menu
0 likes · 12 min read
Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot
ZhiKe AI
ZhiKe AI
May 8, 2021 · Fundamentals

A Reusable Java Utility for Building Tree Structures

This article shares a generic Java utility class that recursively constructs hierarchical tree structures from a flat list by using functional interfaces to identify parent‑child relationships, optionally sorting nodes, and providing a flexible way to set child collections.

CollectionsGenericsJava
0 likes · 4 min read
A Reusable Java Utility for Building Tree Structures