quicktricks.dev

1.9K posts

quicktricks.dev banner
quicktricks.dev

quicktricks.dev

@quicktricks_dev

• Weekly coding tricks (each Tuesday) • Daily Software Engineer thoughts & quick tips • Developing an app to create your own code snippets!

Check here 👉 Katılım Temmuz 2024
143 Takip Edilen732 Takipçiler
Sabitlenmiş Tweet
quicktricks.dev
quicktricks.dev@quicktricks_dev·
😮‍💨Tired of writing the same math method multiple times for int, double, and decimal? C# 11 introduced Generic Math — constrain T to INumber and the +, -, *, / operators just work. One method. Any numeric type. Full type safety. 🚀
quicktricks.dev tweet media
English
0
1
1
25
quicktricks.dev
quicktricks.dev@quicktricks_dev·
✨ 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.
quicktricks.dev tweet media
English
0
0
0
12
quicktricks.dev
quicktricks.dev@quicktricks_dev·
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.
quicktricks.dev tweet media
English
0
0
0
22
quicktricks.dev
quicktricks.dev@quicktricks_dev·
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.
quicktricks.dev tweet media
English
1
0
1
33
quicktricks.dev
quicktricks.dev@quicktricks_dev·
🔥 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?
quicktricks.dev tweet media
English
0
0
1
40
Shefali
Shefali@Shefali__J·
As long as you are trying to do better, that’s all that matters. Good morning, everyone 🌞
English
19
1
31
662
Wise
Wise@trikcode·
Nobody talks about this phase. - The phase where nothing is working. - Your product has zero users. - You're questioning every decision. Everyone who made it went through it. Keep building.
English
40
4
69
1.7K
Wise
Wise@trikcode·
Software ate the world. AI ate software. Now AI is eating people who built software.
English
104
12
184
14.8K
quicktricks.dev
quicktricks.dev@quicktricks_dev·
🧠 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.
quicktricks.dev tweet media
English
0
0
1
76
Dhanian 🗯️
Dhanian 🗯️@e_opore·
As developer - Which one do you prefer?
Dhanian 🗯️ tweet media
English
33
4
72
4.2K
• nanou •
• nanou •@NanouuSymeon·
Ultimate CSS Cheat Sheet
• nanou • tweet media
English
4
6
63
1.5K
Shefali
Shefali@Shefali__J·
100+ FREE Resources for Web Developers🔥 Open this🧵 Bookmark for later🔖
English
13
4
52
2.4K
quicktricks.dev
quicktricks.dev@quicktricks_dev·
✨ 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!
quicktricks.dev tweet media
English
0
0
1
41
JNS
JNS@_devJNS·
dude.🤦‍♂️
JNS tweet media
English
11
2
87
2.6K
quicktricks.dev
quicktricks.dev@quicktricks_dev·
@_jaydeepkarale Anyone still using it since Windows can read and write zip files on its own? 😁
English
0
0
0
27
Jaydeep
Jaydeep@_jaydeepkarale·
Seriously blew my mind
Jaydeep tweet media
English
7
1
29
1.4K
Csaba Kissi
Csaba Kissi@csaba_kissi·
Where do you host your front-end?
Csaba Kissi tweet media
English
126
7
115
9.2K
Jaydeep
Jaydeep@_jaydeepkarale·
Interviewer: If horizontal scaling means adding more servers, why do some systems still hit database bottlenecks first?
English
14
11
104
13.6K
JNS
JNS@_devJNS·
backend dev: firstname front-end dev: fitst_name 😂
English
8
12
80
5.7K