Tagged articles
6 articles
Page 1 of 1
Architecture Development Notes
Architecture Development Notes
Apr 27, 2024 · Fundamentals

Master Rust Integer Types: When to Use i8, u64, isize and More

This comprehensive guide explores Rust’s signed and unsigned integer types, detailing their ranges, appropriate use cases, performance considerations, and provides practical code examples for type selection, conversions, arithmetic, and bitwise operations to help developers write efficient, safe Rust code.

Integer TypesRustSigned
0 likes · 8 min read
Master Rust Integer Types: When to Use i8, u64, isize and More
IT Services Circle
IT Services Circle
May 29, 2023 · Databases

Storing IPv4 Addresses in MySQL: Choosing the Optimal Data Type

The article explains why storing IPv4 addresses as VARCHAR is suboptimal, demonstrates that a 32‑bit unsigned INT perfectly fits an IPv4 address, compares storage size and query performance, and shows how to use MySQL's inet_aton and inet_ntoa conversion functions.

IP addressdata typeinteger
0 likes · 6 min read
Storing IPv4 Addresses in MySQL: Choosing the Optimal Data Type
Java Architect Essentials
Java Architect Essentials
May 21, 2022 · Fundamentals

How to Compute an Unsigned Integer Average Without Overflow

This article explores why the naïve (a + b) / 2 formula overflows for 32‑bit unsigned integers and presents several safe techniques—including subtraction‑first, bitwise‑based, wide‑type casting, and carry‑rotate instructions—complete with C++ code and assembly examples.

Assemblyaveragebitwise
0 likes · 11 min read
How to Compute an Unsigned Integer Average Without Overflow
Programmer DD
Programmer DD
Mar 14, 2022 · Databases

Does MySQL int(1) Limit Your Data? The Truth About Display Width and ZEROFILL

Although MySQL’s int type always occupies 4 bytes, the number in parentheses (e.g., int(1) or int(10)) does not restrict its range; only when combined with ZEROFILL does it affect display formatting, as demonstrated by inserting the maximum unsigned int value and observing zero‑padded outputs.

ZEROFILLdisplay widthint
0 likes · 6 min read
Does MySQL int(1) Limit Your Data? The Truth About Display Width and ZEROFILL
Su San Talks Tech
Su San Talks Tech
Nov 1, 2020 · Databases

Common MySQL Pitfalls and How to Avoid Them

This article examines common MySQL pitfalls—including signed vs. unsigned integers, auto‑increment key requirements, varchar length versus byte count, case‑insensitive collations, and storing emoji characters—providing concrete SQL examples, error screenshots, and configuration tips to help developers avoid unexpected errors.

Database designauto_incrementcollation
0 likes · 9 min read
Common MySQL Pitfalls and How to Avoid Them
Qunar Tech Salon
Qunar Tech Salon
Mar 30, 2015 · Backend Development

Lesser‑Known but Practical Features of Google Guava

This article explores several under‑used yet useful Google Guava utilities—including unsigned primitive types, 128‑bit MurmurHash, InternetDomainName parsing, class‑path reflection, and CharMatcher string handling—providing code examples and explanations of how they can improve Java development efficiency.

HashingReflectionString
0 likes · 9 min read
Lesser‑Known but Practical Features of Google Guava