| Ko

Go Package Naming Conventions

This article references the official Go blog’s “Package Names,” Go code review comments, and standard library design cases. Go Package Design Philosophy Go’s package system reflects the language’s emphasis on simplicity and clarity. Instead of adopting deep package hierarchies like Java or C++ namespace systems, Go separates package paths from package names so code can stay concise without losing meaning. Go’s package conventions do not enforce strict rules for directory structure or architectural patterns. That is a deliberate design choice. The language’s creators, including Rob Pike and Ken Thompson, favored an approach that gives programmers flexibility while still offering clear guidance. You can see this throughout the standard library. In practice, Go’s package conventions center on the following principles. ...

February 15, 2025 · 7 min · 1400 words · In-Jun

Network Sockets

A socket is a software interface that abstracts network communication endpoints, first appearing in the 4.2BSD Unix operating system developed at UC Berkeley in 1983 and remaining a fundamental technology underlying internet communication to this day. It identifies unique communication points on a network through the combination of IP address and port number, providing a standardized API that enables data exchange between processes. History and Evolution of Sockets The Birth of Berkeley Sockets ...

June 8, 2024 · 7 min · 1449 words · In-Jun

Call by Value vs Call by Reference

Parameter passing determines what a function receives when you call it. The choice affects program behavior, safety, and performance across languages. Call by Value and Call by Reference are the two most familiar models, and understanding how they differ helps you write code that is both safer and more efficient. Overview of Function Parameter Passing What is Parameter Passing Mechanism? A parameter passing mechanism defines how actual parameter values or references are passed to formal parameters during function calls. Various methods exist including Call by Value, Call by Reference, Call by Name, and Call by Need. ...

May 16, 2024 · 10 min · 2097 words · In-Jun

Introduction to Java Programming

Java is an object-oriented programming language created in 1995 at Sun Microsystems by a team led by James Gosling. Under the slogan “Write Once, Run Anywhere,” it provides a platform-independent execution environment. As of 2024, Java consistently ranks among the top languages in the TIOBE index, making it one of the most widely used programming languages in the world. It remains a core language in fields such as enterprise applications, Android apps, big data processing, and web services. Java continues to evolve through its strong type system, rich standard library, and active community. ...

May 16, 2024 · 11 min · 2214 words · In-Jun
[email protected]