Posts
All the articles I've posted.
Jane Street's Puzzles October 2024: Knights Moves 6
Published: at 01:02 PMThrough a combination of DFS, Sympy, and key optimizations, I enhanced a brute-force approach to find the correct solution to this month’s Jane Street puzzle.
Building a Probability-Based Random Number Generator
Published: at 04:04 PMRecently, I tackled an interesting coding task; the objective was to implement a method, `next_num()`, that generates random numbers based on predefined probabilities.
Functional Programming in C#
Published: at 03:13 PMFunctional programming treats computation as the evaluation of functions, avoiding mutable data and side effects. It emphasizes pure functions, making code more predictable, testable, and composable, contrasting with traditional paradigms like OOP.
Delegates in C#
Published: at 05:53 PMIn C#, delegates are types that represent method references, enabling functional programming within an object-oriented framework. They allow methods to be passed as parameters and invoked dynamically.
Leveraging Expressions in C#
Published: at 03:55 PMThis article shows how to make C# code cleaner and more maintainable by using expressions instead of statements. By embracing these expression-based features, we create more concise and maintainable code.
Design Patterns: Builder
Published: at 01:14 PMThe Builder Design Pattern separates object creation from its representation, enabling flexible and controlled assembly of complex objects. It uses a construction interface and concrete builders to produce different configurations efficiently.
Design Patterns: State
Published: at 02:59 PMThe State Design Pattern manages an object's behavior based on its current state, encapsulating state-specific logic in separate classes. This approach results in cleaner, modular code.