Tagged articles
10 articles
Page 1 of 1
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.

AssemblyCaverage
0 likes · 11 min read
How to Compute an Unsigned Integer Average Without Overflow
ByteFE
ByteFE
Jan 20, 2021 · Frontend Development

Achieving overflow:hidden Effects Without Using overflow:hidden in CSS

This article explains how to clip overflowing content vertically while keeping horizontal overflow visible by using CSS techniques such as clip‑path and the contain property, providing code examples, demos, and a comparison with the traditional overflow:hidden approach.

CSSclip-pathcontain
0 likes · 10 min read
Achieving overflow:hidden Effects Without Using overflow:hidden in CSS
FunTester
FunTester
Nov 25, 2020 · Fundamentals

Why Math.abs(Integer.MIN_VALUE) Returns a Negative Value in Java

The article explains that Math.abs() can return a negative result when applied to Integer.MIN_VALUE because the absolute value exceeds the int range, detailing the two's‑complement representation, overflow behavior, and how the JLS defines the operation.

buginteger-min-valuemath.abs
0 likes · 4 min read
Why Math.abs(Integer.MIN_VALUE) Returns a Negative Value in Java
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 24, 2017 · Frontend Development

How CSS3 Transform Alters Stacking, Positioning, and Overflow Behaviors

This article explains how applying CSS3 transform—even with neutral values like scale(1) or translate(0,0)—can unexpectedly change element stacking order, break fixed positioning, modify overflow handling for absolute elements, and affect 100% width calculations across browsers, illustrated with code samples and screenshots.

CSSfrontendlayout
0 likes · 7 min read
How CSS3 Transform Alters Stacking, Positioning, and Overflow Behaviors