Tagged articles
50 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 22, 2026 · Fundamentals

Mastering Java Selection Statements: If, Else‑If, and Switch Explained

This tutorial walks through Java's selection structures—including if, if‑else, if‑else‑if, nested if, and switch—detailing their syntax, execution flow, example code, output results, and key differences, helping beginners write correct and portable conditional logic.

Control FlowJavaif statement
0 likes · 16 min read
Mastering Java Selection Statements: If, Else‑If, and Switch Explained
Raymond Ops
Raymond Ops
Dec 12, 2025 · Operations

Mastering Network Device Operations: Switches, Routers, and Firewalls Explained

This comprehensive guide walks operations engineers through the fundamentals, configuration, monitoring, troubleshooting, and automation of switches, routers, and firewalls, providing practical commands, best‑practice scripts, and security hardening steps for reliable network infrastructure.

ConfigurationRouterfirewall
0 likes · 24 min read
Mastering Network Device Operations: Switches, Routers, and Firewalls Explained
Linux Tech Enthusiast
Linux Tech Enthusiast
Sep 29, 2025 · Fundamentals

A Brief History of Network Hardware: From Cables to Modern Switches

The article traces the evolution of network hardware—from early PCs without networking, through cables, NICs, repeaters, hubs, bridges, and switches, to routers, wireless APs, firewalls and traffic‑control devices—explaining each device's role, limitations, and how they solve specific networking problems.

Routeraccess pointethernet
0 likes · 10 min read
A Brief History of Network Hardware: From Cables to Modern Switches
php Courses
php Courses
Jul 14, 2025 · Fundamentals

Master C++ Conditional Statements: if, else, switch, and Ternary Operator

This tutorial explains C++ conditional control structures—including if, if-else, else-if, switch, and the ternary ?: operator—detailing their syntax, usage, and providing clear code examples that demonstrate how to implement each construct for decision-making in programs.

Cconditional statementsif-else
0 likes · 5 min read
Master C++ Conditional Statements: if, else, switch, and Ternary Operator
php Courses
php Courses
May 26, 2025 · Backend Development

Flow Control in Go (Golang): if/else, for, switch, break, continue, and goto

This article explains Go's flow‑control constructs—including conditional statements, loops, switch branches, and special statements like break, continue, and goto—provides syntax details, highlights key characteristics, and offers multiple code examples to help developers write clear and efficient Go code.

Flow ControlGoGolang
0 likes · 9 min read
Flow Control in Go (Golang): if/else, for, switch, break, continue, and goto
ITPUB
ITPUB
May 19, 2025 · Fundamentals

Why Developers Prefer if…else Over switch: Pros, Cons, and Performance

The article examines why many programmers favor if...else over switch statements, outlining switch's intended clarity, its limitations such as lack of range support and fall‑through pitfalls, performance considerations across languages, and scenarios where each construct shines.

Control FlowJavacoding best practices
0 likes · 8 min read
Why Developers Prefer if…else Over switch: Pros, Cons, and Performance
JavaScript
JavaScript
May 5, 2025 · Frontend Development

Replace Switch Statements with Object Maps and ES6 Map for Cleaner JavaScript

Modern JavaScript offers more elegant alternatives to traditional if‑else and switch statements, such as using object literals for simple mappings and the ES6 Map structure for complex or dynamic key‑value logic, resulting in shorter, less error‑prone, and more maintainable code.

Code OptimizationJavaScriptMAP
0 likes · 4 min read
Replace Switch Statements with Object Maps and ES6 Map for Cleaner JavaScript
JavaScript
JavaScript
Apr 29, 2025 · Frontend Development

Replace Switch Statements with Object Maps for Cleaner JavaScript

Learn how modern JavaScript lets you replace verbose if‑else and switch statements with concise object literal mappings and the powerful ES6 Map structure, improving readability, reducing errors, and simplifying maintenance for both simple and complex branching logic.

JavaScriptMAPobject literal
0 likes · 4 min read
Replace Switch Statements with Object Maps for Cleaner JavaScript
Raymond Ops
Raymond Ops
Jan 1, 2025 · Backend Development

Unlocking Go’s Switch‑True Trick: Efficient Service Status Checks Explained

This article explores an unconventional Go switch‑true pattern used for checking systemd service status, compares it with equivalent if‑else logic, examines the generated assembly, and discusses when this style is advantageous for handling multiple string‑prefix conditions.

Backendcode-generationperformance
0 likes · 10 min read
Unlocking Go’s Switch‑True Trick: Efficient Service Status Checks Explained
The Dominant Programmer
The Dominant Programmer
Jul 19, 2024 · Backend Development

Java Switch Performance: Should You Use String or int?

Using JMH, this article benchmarks Java switch statements, comparing the traditional int‑based switch (via String hashCode) against the newer String‑based switch, showing that the int version runs roughly twice as fast while warning about hashCode collisions.

hashcodeperformanceswitch
0 likes · 6 min read
Java Switch Performance: Should You Use String or int?
Open Source Linux
Open Source Linux
Jul 11, 2024 · Fundamentals

What Every Beginner Must Know About Routers, Switches, Modems, and Wi‑Fi

This guide walks you through the essential concepts of home networking, explaining the roles and inner workings of routers, switches, optical modems, IP addressing, and Wi‑Fi standards, while clarifying common misconceptions and showing how these devices interconnect to deliver reliable internet access.

RouterWiFimodem
0 likes · 18 min read
What Every Beginner Must Know About Routers, Switches, Modems, and Wi‑Fi
Senior Brother's Insights
Senior Brother's Insights
Dec 3, 2023 · Fundamentals

Mastering Go's Switch: Advanced Patterns and Common Pitfalls

This guide explores Go's versatile switch statement, covering basic syntax, initializer and value parts, literal true switches, short assignments, multiple case values, fallthrough behavior, default placement nuances, and type switches, all illustrated with clear code examples.

GoGolangTutorial
0 likes · 9 min read
Mastering Go's Switch: Advanced Patterns and Common Pitfalls
Open Source Linux
Open Source Linux
Aug 23, 2022 · Operations

Isolating Users in the Same VLAN and Enabling Partial VLAN Connectivity

This guide walks through three practical scenarios for VLAN isolation: using port isolation to separate users within the same VLAN, employing MUX VLAN to achieve selective inter‑VLAN communication and isolation, and applying ACL‑based flow policies to block specific VLANs or individual users while preserving overall connectivity.

ACLFlow PolicyMUX VLAN
0 likes · 8 min read
Isolating Users in the Same VLAN and Enabling Partial VLAN Connectivity
Architects' Tech Alliance
Architects' Tech Alliance
Aug 14, 2022 · Fundamentals

Components of PCIe Architecture and Their Roles in Processor Systems

This article explains the main components of PCIe architecture—including Root Complex (RC), switches, and PCIe‑to‑PCI bridges—how they are implemented in different processor systems such as x86 and PowerPC, and the mechanisms for QoS, port arbitration, and extended configuration space.

EndpointPCIePort Arbitration
0 likes · 26 min read
Components of PCIe Architecture and Their Roles in Processor Systems
Programmer DD
Programmer DD
May 7, 2022 · Backend Development

How Java 17’s Switch Pattern Matching Simplifies Type Checks

This article demonstrates how Java 17’s enhanced switch statement with pattern matching replaces cumbersome instanceof‑based if‑else chains, providing concise type‑checking and casting for Map values such as String, Integer, and Double, while noting its preview status.

JDK 17Javainstanceof
0 likes · 5 min read
How Java 17’s Switch Pattern Matching Simplifies Type Checks
Programmer DD
Programmer DD
May 6, 2022 · Backend Development

Simplify Java Conditional Logic with Switch Expressions in Java 14

This article shows how to replace verbose if‑else chains with classic switch statements and then demonstrates Java 14's enhanced switch expression using arrow syntax, eliminating the need for break statements and making the code more concise and readable.

Conditionaljava14programming
0 likes · 4 min read
Simplify Java Conditional Logic with Switch Expressions in Java 14
NiuNiu MaTe
NiuNiu MaTe
Feb 12, 2022 · Fundamentals

From Hubs to Routers: How Computers Connect Across Networks

This article explains the evolution from simple hubs to intelligent switches and routers, covering the OSI layers, LAN setup, MAC and IP addressing, ARP, crossover cabling, and the internal structures that enable reliable data transmission in modern networks.

LANRouterhub
0 likes · 23 min read
From Hubs to Routers: How Computers Connect Across Networks
Open Source Linux
Open Source Linux
Jan 5, 2022 · Fundamentals

Essential Network Devices: Repeaters, Hubs, Bridges, Switches, Routers

This article systematically outlines the functions, OSI layer positions, and key differences of common networking hardware—including repeaters, hubs, bridges, switches, routers, and gateways—providing clear explanations and visual illustrations to help readers understand how each device processes signals and facilitates data communication within modern intelligent building networks.

OSI modelRouternetwork devices
0 likes · 12 min read
Essential Network Devices: Repeaters, Hubs, Bridges, Switches, Routers
Open Source Linux
Open Source Linux
Mar 27, 2021 · Operations

Master Huawei Switch Configuration: From VLAN Setup to Link Aggregation

This guide walks you through essential Huawei switch commands, covering user and view modes, VLAN creation, port link types, batch operations, initial login procedures, service activation, link aggregation, DHCP setup, and flow‑control configuration, all illustrated with step‑by‑step screenshots.

HuaweiOperationsVLAN
0 likes · 9 min read
Master Huawei Switch Configuration: From VLAN Setup to Link Aggregation
Liangxu Linux
Liangxu Linux
Feb 8, 2021 · Operations

8 Common Network Faults and Quick Fixes for Switches, Hubs, and IP Conflicts

These eight network troubleshooting cases cover issues such as a newly powered switch failing to forward traffic, a 5‑port switch using only four ports, persistent COL‑light collisions, gigabit upgrade instability, slow link speeds from broadcast storms, Windows file‑sharing permission problems, hub‑router connectivity failures, and IP address conflicts, each with analysis and practical solutions.

IP conflictPortFastSTP
0 likes · 14 min read
8 Common Network Faults and Quick Fixes for Switches, Hubs, and IP Conflicts
Architects' Tech Alliance
Architects' Tech Alliance
Aug 26, 2020 · Fundamentals

Fundamentals of Network Switches: Overview, Types, Performance Metrics, Interfaces, VLANs, and Multilayer Switching

This article provides a comprehensive overview of network switches, covering their basic concepts, classifications, performance indicators, interface and link methods, virtual LANs, multilayer switching, and product introductions, while also including promotional information for related technical e‑books.

IT infrastructureVLANmultilayer switching
0 likes · 2 min read
Fundamentals of Network Switches: Overview, Types, Performance Metrics, Interfaces, VLANs, and Multilayer Switching
Architects' Tech Alliance
Architects' Tech Alliance
Jun 11, 2020 · Operations

Understanding Switches: Functions, Types, and Management Techniques

This article provides a comprehensive overview of network switches, covering their definition, core functions, port and distance expansion, classification by manageability and OSI layer, various management methods (Web, CLI, SNMP), key features such as VLAN, ACL, routing, and practical deployment scenarios.

ACLManagementNetworking
0 likes · 10 min read
Understanding Switches: Functions, Types, and Management Techniques
macrozheng
macrozheng
May 29, 2020 · Backend Development

Why Switch Beats If‑Else in Java: Up to 3.7× Faster (JMH Benchmark)

This article benchmarks Java's switch statement against equivalent if‑else chains using JMH, explains the underlying bytecode differences, shows how tableswitch and lookupswitch are generated, and demonstrates that switch can be up to 3.7 times faster as the number of branches grows.

JMHJavabytecode
0 likes · 16 min read
Why Switch Beats If‑Else in Java: Up to 3.7× Faster (JMH Benchmark)
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 19, 2019 · Backend Development

What’s New in the Updated Java Development Handbook? 21 Rules, Lock Pitfalls, and Float Tricks

The latest Java Development Handbook introduces 21 new coding rules, revises over a hundred guidelines, and adds clearer examples on lock handling, switch‑null checks, floating‑point comparisons, collection conversions, and guard statements, while inviting developers to download the free PDF and join a live discussion.

Code ExamplesJavacoding standards
0 likes · 9 min read
What’s New in the Updated Java Development Handbook? 21 Rules, Lock Pitfalls, and Float Tricks
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 17, 2019 · Fundamentals

5 Tricky Java Questions That Reveal Hidden Pitfalls

This article presents five Java code snippets—covering floating‑point comparison, wrapper equality, switch handling of null, BigDecimal construction, and lock usage—and challenges readers to identify the correct outcomes, exposing common misconceptions and best‑practice solutions.

BigDecimalconcurrencyfloating-point
0 likes · 4 min read
5 Tricky Java Questions That Reveal Hidden Pitfalls
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 27, 2018 · Backend Development

10 Paranoid Java Tricks Every Developer Should Know

This article shares a seasoned developer’s top ten obsessive Java programming techniques—ranging from placing string literals first to avoid NullPointerExceptions, never trusting early JDK APIs, treating -1 cautiously, enforcing final modifiers, and rigorously structuring switch statements—to help you write safer, more maintainable code.

best practicesfinalnullpointerexception
0 likes · 9 min read
10 Paranoid Java Tricks Every Developer Should Know
ITPUB
ITPUB
Jul 3, 2017 · Fundamentals

Mastering Finite State Machines in C: From Simple If/Else to Function Pointers

This article explains what a finite state machine (FSM) is, where it is commonly used, and walks through three C implementations—plain if/else, switch‑case, and a function‑pointer table—highlighting their advantages, drawbacks, and providing complete code examples.

CFinite State MachineFunction Pointer
0 likes · 8 min read
Mastering Finite State Machines in C: From Simple If/Else to Function Pointers
Java High-Performance Architecture
Java High-Performance Architecture
Oct 11, 2016 · Frontend Development

Master WeChat Mini Program UI: Picker, Checkbox, Slider, Switch & Form Guide

This article demonstrates how to implement common WeChat Mini Program form controls—including picker, multi-select checkbox, slider, switch, and form submission—by presenting their code structures, event handling, and sample WXML/JS snippets, enabling developers to quickly integrate these interactive components into their apps.

FormSliderWeChat Mini Program
0 likes · 3 min read
Master WeChat Mini Program UI: Picker, Checkbox, Slider, Switch & Form Guide
Java High-Performance Architecture
Java High-Performance Architecture
Feb 1, 2016 · Frontend Development

Is Switch Faster Than a Lookup Table in JavaScript? A 50,000-Iteration Test

After reading 'High-Performance JavaScript', I tested the speed of a switch statement versus a lookup table over 50,000 iterations, finding the switch slightly faster contrary to the book’s claim, and reflecting on the practical benefits of lookup tables such as clearer code and easier maintenance.

Code OptimizationJavaScriptLookup Table
0 likes · 3 min read
Is Switch Faster Than a Lookup Table in JavaScript? A 50,000-Iteration Test