• Weekly coding tricks (each Tuesday)
• Daily Software Engineer thoughts & quick tips
• Developing an app to create your own code snippets!quicktricks.dev Check here 👉Joined July 2024
Master C#'s TimeProvider for ultimate time control!
Hardcoding DateTime.Now or DateTimeOffset.UtcNow makes your code impossible to test reliably.
.NET 8 introduced TimeProvider — an injectable abstraction for time that lets you freeze, advance, or mock time in tests without any hacks.
C# 14 introduces extension blocks — a cleaner way to add methods, properties, and operators to existing types.
They unify extension members, reduce boilerplate, and make type extension more expressive without modifying the original type.
C# 11's Raw String Literals simplify multi-line strings embedded in your code.
No more escaping quotes or special characters. Easy interpolation even with curly braces that you want to escape.
Visual Studio and the C# Dev Kit provide some validation and syntax highlighting when raw string literals contain JSON data or regular expressions. You can help this mechanism using a dedicated comment above the literal.
✨ C# 12 introduced Collection Expressions
It's a cleaner, more expressive syntax for initializing arrays, lists, spans, and even ImmutableArrays using simple square brackets `[ ]`.
The spread operator `..` lets you merge existing collections inline.
No more chaining `.Concat()`, `.Append()`, and `.ToArray()` just to combine two arrays.
Did you know C# can automatically capture the text of an argument passed to a method?
No more "Value cannot be null" without knowing which value.
Perfect for validation and assertion utilities.
C# Tip: Ever had a null check that silently lied to you?
In C#, != null can be overloaded by a class to return whatever it wants. is not null bypasses that entirely.
It's a pattern match against the actual reference, not an operator call.
Small difference, big consequences.
🔥 C#: Add new interface members without breaking existing implementations!
With default interface implementations (C# 8+), you can add a method directly to an interface with a default body — classes that already implement the interface don't need to change a thing.
Perfect for evolving library APIs without forcing every consumer to update.
💬 Do you use default interface implementations in your projects, or do you prefer extension methods (or blocks) / abstract base classes for this?
🧠 JavaScript Proxies allow you to wrap an object and intercept operations like property access, assignment, deletion, and even function calls.
You define a handler with traps that customize behavior.
Perfect for logging and validation.
✨ C# Tip
Easily generate sequences of numbers within a specified range using Enumerable.Range().
Define your start & count to get exactly what you need for loops, arrays, or tests. Simplify your code!
768 Followers 4K Following#CryptoEdgeAI
Some posts are auto generate by #AI for educational purposes only!
Do your own research to determine if they make sense for you.
No DMs Please
55 Followers 250 FollowingHello, I'm a problem solver.
I mostly live on my mind palace, at my home, GitHub, YouTube, and X
Does programming. Also known as manfromearth
36K Followers 6K FollowingHuman intuition is linear. The AI transition is exponential. Translating the most important story in human history into signal.
291K Followers 569 FollowingCo-Founder of ByteByteGo | Author of the bestselling book series: ‘System Design Interview’ | YouTube: https://t.co/9gPSJSrtPU
8K Followers 875 FollowingFounder and CEO @Petabridge @getsdkbin @textforgeapp
OSS: @AkkaDotNet and https://t.co/i2Pc96fVg4
Catch me on YouTube: https://t.co/gUNvkaNuAS
22K Followers 6K FollowingCEO @ https://t.co/eLSEioglRz with @StevenBartlett
Work with me: https://t.co/EGcEjiaTC2
Past:
Built & Sold https://t.co/RKNzqPDFGw
Built tools for @MrBeast
85K Followers 6K FollowingMath Hub is a math education channel that shares useful and practical mathematical knowledge in a clear and easy-to-understand way.
69K Followers 2 FollowingUse hashtag #buildinpublic to share what you're working on. – Made by @marckohlbrugge. – Sponsored by https://t.co/vASwn0HF5o ⚡
10K Followers 297 Following• Freelance web developer with 14+ years of experience
• Sharing practical web dev tips regularly
• Access 250+ tips → https://t.co/hmdRmv0cV5