Tagged articles
7 articles
Page 1 of 1
JavaScript
JavaScript
May 28, 2025 · Frontend Development

Simplify JavaScript Resource Management with the New ‘using’ Declaration

This article explains why the traditional try‑finally pattern for resource handling in JavaScript is verbose and error‑prone, and introduces the upcoming ECMAScript ‘using’ declaration that provides automatic, scope‑based cleanup, supports async resources, and makes code cleaner and safer.

ECMAScriptJavaScripttry-finally
0 likes · 2 min read
Simplify JavaScript Resource Management with the New ‘using’ Declaration
MaGe Linux Operations
MaGe Linux Operations
Jul 2, 2018 · Fundamentals

Why Python Behaves Unexpectedly: 10 Surprising Code Quirks Explained

This article explores ten puzzling Python behaviors—from implicit dictionary key conversion and generator timing quirks to list‑iteration deletions, else clause nuances, the difference between is and ==, loop variable leakage, + versus +=, try‑finally returns, mutable True/False assignments, and subtle for‑loop mechanics—providing clear explanations and code examples for each.

/loopPythondict
0 likes · 11 min read
Why Python Behaves Unexpectedly: 10 Surprising Code Quirks Explained
ITPUB
ITPUB
May 17, 2016 · Fundamentals

What Happens to a finally Block When a try Returns in Java?

In Java, a finally block always executes before a method returns, even if the try block contains a return statement, and it can even override the original return value, though it may be skipped when the JVM terminates abruptly with System.exit.

Exception Handlingjavaresource-management
0 likes · 5 min read
What Happens to a finally Block When a try Returns in Java?