Home
Muhammad Farag
Cancel

How to Make Refactoring a High-Yield, Low-Risk Investment?

A software delivery team (business, development, infrastructure, and QE, if available) should be aligned on why we refactor code. We refactor code to save our employer time and money in three way...

Rust Cheat Sheet

An overview of essential features and concepts in Rust. It delves into unique aspects of Rust like lifetime management and error handling, showcases how generics and traits enhance code reusability...

Akka Scala Cheat Sheet

Hello World An akka application is usually formed of a single “ActorSystem” with a “root” behavior. The ActorSystem controls and coordinate all the Akka magic behind the scene. The root behavior i...

Akka Streams

Sources Source[+Out, +Mat] Out: The type of the elements that the Source produces. Mat: The type of materialized value. val emptySource: Source[String, NotUsed] = Source.empty[String] val s...

Akka Classic Scala Cheat Sheet

Creating your first actor class MyActor extends Actor { def receive: Receive = { case msg => // do something with that message } } object MyActor{ def props():Props = Props(new MyAct...

Hello Ruby: Language Cheat Sheet

The basics Variables Comments Naming Convention Parentheses Multi-Statement Lines Code Blocks Readability… Use Your Judgement Expressions no...

Hello TypeScript, Language Introduction and Cheat Sheet

TypeScript is a superset of JavaScript, that means valid JavaScript code is valid TypeScript code, thus JavaScript libraries can be used in TypeScript. TypeScript introduces optional static typing ...

Hello Python: Syntax Cheat Sheet

A cheat sheet for the basic syntax and constructs of Python 3. It includes basic IO, conditionals, collections, functions, classes, modules and packages. Syntax Python uses indentation to mark ...

Hello Haskell, language introduction and cheat sheet

Haskell is a statically typed pure functional programming language. This is more of a cheat sheet for basic haskell syntax and constructs. I will not describe in any details what is pure functional...

Managing Cross Concerns using Proxy Pattern

Cross concerns such as logging, instrumentation and authorization are like bad contractors. One needs them, but they tend to leave a mess. A cross concern violates the single responsibility princip...