Navigation

Osman Aras

Osman Aras

Hi, I'm Osman. I recently moved to the United States from Turkey. I'm an amateur blogger, and I write about software, travel, and whatever sparks my curiosity. That's why I created this blog — to share the things I explore and discover.

481 Posts
3,410 Views
503 Top Post

Posts by Osman Aras

481 posts
Default post image
Python

Python How to Create Property Getters and Setters

Transform your Python classes with @property decorators - add validation and computed attributes without breaking your c...
Default post image
Python

How to Use Python's slice() Function

Master Python's slice() function to create reusable slicing patterns that make your code cleaner and more maintainable w...
Default post image
Python

How to Handle Mutable Default Arguments

Avoid Python's mutable default argument trap. Use None as default and create new objects inside functions to prevent sha...
Default post image
Go

Working with JSON in Go: Marshaling and Unmarshaling 2025

Master JSON handling in Go with comprehensive guide covering marshaling, unmarshaling, custom types, performance optimiz...
Default post image
Go

Go String Manipulation and the `strings` Package 2025

Master Go string manipulation with comprehensive guide covering the strings package, performance optimization, Unicode h...
Default post image
Go

Go Map Operations and Best Practices for Key-Value Storage 2025

Master Go maps with comprehensive guide covering operations, performance optimization, concurrency safety, and best prac...
Default post image
Node.js

How to Implement Basic Authentication Middleware

Create basic authentication middleware in Express.js to protect routes. Simple username/password authentication for APIs...
Default post image
Node.js

How to Group Routes with Express Router

Organize Express.js routes using Router for better code structure. Group related endpoints, apply middleware to route gr...
Default post image
Node.js

How to Disable X-Powered-By Header in Express

Remove the X-Powered-By header in Express.js for better security. Hide server technology information from potential atta...
Default post image
Node.js

Node.js How to Handle File Uploads with Multer

Handle file uploads in Express.js using Multer middleware. Simple solution for single and multiple file uploads with val...
Default post image
Php

PHP Weak References: Managing Memory in Complex Applications (Complete Guide 2025)

Master PHP weak references for memory-efficient applications. Learn observer patterns, caching strategies, and preventin...
Default post image
Php

[COMPLETE GUIDE] Multi-threading in PHP: Parallel Extension Explained (2025)

Master PHP multi-threading with the Parallel extension. Learn async programming, thread safety, performance optimization...
Default post image
Laravel

How to Write a Raw SQL Query in Laravel

Execute raw SQL queries in Laravel using DB::select(), DB::statement(), and DB::raw(). Perfect for complex queries or da...
Default post image
Laravel

How to Use `when()` for Conditional Queries

Build dynamic Laravel queries with when() method. Add conditions to queries based on request parameters without messy if...
Default post image
Laravel

How to Use `pluck()` to Create a Simple Array from a Collection

Extract specific values from Laravel collections using pluck(). Create simple arrays or key-value pairs from complex dat...