TechBlog

Join me as I explore the fascinating world of technology. This TechBlog is where I share my knowledge and insights on topics like Linux, frontend and backend development, and more. Whether you’re a beginner or an experienced tech enthusiast, there’s something here for you.

Things I Think About

Core Stack

Engineering & Leadership

Technical Depth

TechBlog

Building a Decentralized Application (DApp) with Angular and Ethereum

Published: June 25, 2024 Reading Time: 6 min

In recent years, decentralized applications (DApps) have emerged as a groundbreaking paradigm in the world of software development. Unlike traditional applications that run on centralized servers, DApps operate on blockchain technology, which offers enhanced security, transparency, and decentralization. This guide will walk you through the process of creating a DApp using Angular and Ethereum, including smart contract development with Solidity. What is a Decentralized Application (DApp)? A DApp is an application that runs on a decentralized network, typically a blockchain. Unlike conventional applications, DApps leverage the decentralized nature of blockchain to provide a higher level of security and trust. Key features of DApps include: ...

Continue Reading

Building a Real-Time Collaborative Editor with Angular, Firebase, and WebRTC: A Step-by-Step Guide

Published: June 24, 2024 Reading Time: 6 min

Creating a real-time collaborative text editor can be a challenging but rewarding project. In this guide, we’ll walk you through the process of building a real-time collaborative editor using Angular, Firebase, and WebRTC. By the end of this tutorial, you’ll have a working understanding of these technologies and how to integrate them to create a seamless, real-time collaborative experience. Companion resource Companion Project Explore the complete working example on GitHub. github.com/omidfarhang/example-projects/examples/angular-collaborative-editor-firebase-webrtc View on GitHub Introduction Real-time collaborative applications are increasingly popular in today’s digital world. They allow multiple users to work on the same document simultaneously, seeing each other’s changes in real time. Google Docs is a prime example of such an application. In this tutorial, we will build a similar application using modern web technologies. ...

Continue Reading

Optimizing Angular Applications with Web Workers and OffscreenCanvas

Published: June 23, 2024 Reading Time: 9 min

In today’s web development landscape, performance is king. Users expect fast, responsive applications that perform smoothly even under heavy loads. This expectation places a significant burden on developers, especially those working with complex front-end frameworks like Angular. One effective strategy for enhancing the performance of Angular applications is to leverage Web Workers and OffscreenCanvas. In this detailed guide, we will explore how to use these technologies to offload heavy computations and rendering tasks, thus optimizing your Angular applications for better performance. ...

Continue Reading

Yet Another Frontend Framework? The Rise Of Svelte

Published: June 22, 2024 Reading Time: 6 min

As we advance into 2024, the landscape of frontend development continues to evolve at a rapid pace. Developers are always on the lookout for frameworks that offer more efficiency, better performance, and ease of use. Among the numerous frameworks making waves this year, a few stand out due to their unique offerings and growing adoption: React: A robust and flexible library maintained by Facebook, still reigning as the most popular framework for building user interfaces. Vue.js: Known for its simplicity and ease of integration, Vue.js is a favorite for many developers who need to quickly spin up a project. Angular: A powerful framework backed by Google, Angular is widely used for building large-scale enterprise applications. Svelte: A newer but rapidly growing framework that offers a unique approach to building web applications with a focus on performance and simplicity. While React, Vue, and Angular have been the go-to choices for many developers over the past few years, Svelte is increasingly capturing the attention of the development community. Let’s dive deeper into what makes Svelte stand out and why it’s becoming a preferred choice for many. ...

Continue Reading

Advanced Networking in Linux: VLANs, Bonding, and Bridging

Published: June 21, 2024 Reading Time: 11 min

Linux networking becomes much easier to reason about when you treat interfaces as layers. A physical NIC can become part of a bond. A VLAN interface can sit on top of that bond. A bridge can sit on top of the VLAN. The host’s IP address belongs on whichever layer represents the host on that network. This post focuses on three building blocks that often appear together on servers, virtualization hosts, routers, and lab machines: ...

Continue Reading

Choosing the Right Tech Stack for Your Project: A Comprehensive Guide

Published: June 20, 2024 Reading Time: 10 min

In the rapidly evolving world of software development, choosing the right technology stack for your project is a critical decision. The technology stack, or tech stack, refers to the combination of programming languages, frameworks, libraries, tools, and software used to build and run your application. The right stack can streamline development, improve performance, and ensure scalability, while the wrong choice can lead to technical debt, inefficiencies, and even project failure. ...

Continue Reading

Advanced Shell Scripting Techniques: Automating Complex Tasks with Bash

Published: June 19, 2024 Reading Time: 6 min

Bash scripting, a cornerstone of Unix and Linux system administration, offers powerful tools to automate repetitive tasks, streamline workflows, and handle complex operations. For those already comfortable with basic scripting, diving into advanced techniques can unlock new levels of efficiency and capability. This post will explore advanced shell scripting techniques in Bash, focusing on script optimization, robust error handling, and automating complex system administration tasks. Script Optimization Optimization is crucial for ensuring that your scripts run efficiently, especially when dealing with large datasets or intensive tasks. Here are some key techniques to optimize your Bash scripts. ...

Continue Reading

Advanced Angular Change Detection: Strategies for High-Performance Applications

Published: June 19, 2024 Reading Time: 7 min

When it comes to building high-performance applications with Angular, understanding and optimizing change detection is crucial. This blog post will delve into advanced change detection strategies that can help you optimize the performance of your Angular applications. We will cover the OnPush change detection strategy, the importance of immutability, and techniques for manual change detection. Introduction to Angular Change Detection Change detection is a mechanism that Angular uses to keep the view in sync with the underlying model. Whenever a component’s state changes, Angular detects this change and updates the DOM accordingly. This process, while automated and convenient, can become a performance bottleneck if not managed properly, especially in large and complex applications. ...

Continue Reading

Exploring Advanced Functional Programming Techniques in Haskell: Monads, Functors, and Applicatives

Published: June 18, 2024 Reading Time: 6 min

Functional programming offers a powerful paradigm for writing expressive and maintainable code. Haskell, a pure functional programming language, is at the forefront of this paradigm, providing robust tools for handling complex problems with simplicity and elegance. Among these tools, monads, functors, and applicatives stand out as foundational concepts that enable advanced functional programming techniques. In this post, we’ll delve into these concepts, illustrating how they can be utilized to write cleaner, more modular code. We’ll also explore a real-world use case and provide useful resources to further your understanding of Haskell. ...

Continue Reading

Advanced Dependency Injection Techniques in Angular: Tree-Shakable Providers and Injection Tokens

Published: June 17, 2024 Reading Time: 7 min

Dependency Injection (DI) is a fundamental design pattern in Angular that allows for the efficient management of dependencies within an application. By using DI, Angular promotes the principle of Inversion of Control (IoC), where the control of creating and managing dependencies is inverted from the component itself to an external framework. This results in more modular, testable, and maintainable code. In this post, we will explore two advanced DI techniques in Angular: Tree-Shakable Providers and Injection Tokens. ...

Continue Reading