Programming Tips 💡
51.6K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips 💡
Articles 📕
Resources 👾
Design Patterns 💎
Software Principles

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
C# 14 - Extension Members 🚀

C# 14 adds new syntax to define extension members. The new syntax enables you to declare extension properties in addition to extension methods. ✔️

You can also declare extension members that extend the type, rather than an instance of the type. In other words, these new extension members can appear as static members of the type you extend.

The following code example shows an example of the different kinds of extension members you can declare:
public static class Enumerable
{
// Extension block
extension<TSource>(IEnumerable<TSource> source) // extension members for IEnumerable<TSource>
{
// Extension property:
public bool IsEmpty => !source.Any();
// Extension indexer:
public TSource this[int index] => source.Skip(index).First();

// Extension method:
public IEnumerable<TSource> Where(Func<TSource, bool> predicate) { ... }
}

// extension block, with a receiver type only
extension<TSource>(IEnumerable<TSource>) // static extension members for IEnumerable<Source>
{
// static extension method:
public static IEnumerable<TSource> Combine(IEnumerable<TSource> first, IEnumerable<TSource> second) { ... }

// static extension property:
public static IEnumerable<TSource> Identity => yield return default;
}
}


The members in the first extension block are called as though they're instance members of IEnumerable<TSource>, for example sequence.IsEmpty. The members in the second extension block are called as though they're static members of IEnumerable<TSource>, for example IEnumerable<int>.Identity.


[ Blog ] : https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods

〰️〰️〰️〰️〰️〰️
#csharp #dotnet
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
How to use MCP in n8n to scale AI automation? 🤔

We break down exactly what n8n and MCP are and demonstrate why using them together is a game-changer for automating tasks that require AI interaction. Combining the flexibility of n8n's visual automation with the power of MCP (Model Context Protocol) allows you to build incredibly sophisticated, AI-driven processes.

This tutorial is your complete guide to setting up n8n and MCP on a secure and reliable Hostinger VPS.


In this video, you'll learn :

• What n8n is and how it simplifies workflow automation
• What MCP is and why it's key for AI agents
• The benefits of using n8n and MCP together for standardized AI automation
• How to install n8n on a Hostinger VPS
• Setting up the MCP Server Trigger within your n8n instance
• Configuring MCP Client Tools for AI interaction
• Building a practical n8n workflow that utilizes MCP to connect to external services
• How to test and launch your new AI-powered workflow


💡 Use code PROGRAMMINGTIPS to get an extra 10% OFF your Hostinger VPS plan:
👉 https://www.hostg.xyz/SHHOl

📺 [ Watch the tutorial ] : https://www.youtube.com/watch?v=p5B1XHbe3lg
Please open Telegram to view this post
VIEW IN TELEGRAM
Media is too big
VIEW IN TELEGRAM
Cursor can now make to-do lists, search PRs, and queue messages 👾

[ Blog ] :
https://cursor.com/changelog/1-2

〰️〰️〰️〰️〰️〰️
#AI #Agents #Cursor
@ProgrammingTip
💡 Tip

Before expecting an LLM to handle a complex task, use this litmus test:

Could a human expert — who knows all relevant general knowledge by heart — complete the task in a single go without backtracking, editing, or note-taking?

If not, the prompt may exceed what’s reasonable for an LLM today.


📘 From Prompt Engineering for LLMs: The Art and Science of Building Large Language Model–Based Applications


〰️〰️〰️〰️〰️〰️
#AI #LLM #PromptEngineering
@ProgrammingTip
The Hidden Cost of DateTime.Now in .NET 🕰

You're Using DateTime.Now — and It's Breaking Your Code …

Let's be honest: We've all written this:
if (DateTime.Now > token.Expiry)
{
return Unauthorized();
}


It works… until it doesn't.

In production, this little line can wreck your logic due to clock drift, time zone shifts, or mocking nightmares. 🐞


[ Article ]
: https://freedium.cfd/https://medium.com/@yaseer.arafat/the-hidden-cost-of-datetime-now-and-what-every-net-developer-should-use-instead-8859863257a1

〰️〰️〰️〰️〰️〰️
#dotnet #csharp
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
🖼 Gemini’s Nano Banana

Google just introduced Nano Banana, a new image-editing feature powered by Imagen 4. 🍌

🔹 Merge multiple photos seamlessly
🔹 Apply style & texture transfers
🔹 Edit backgrounds and objects with natural prompts
🔹 Generate high-quality visuals in seconds

Why it matters:
For developers and designers, Nano Banana is a fast way to prototype visuals, explore UI ideas, and experiment creatively without heavy tools.

You can use Nano Banana directly inside Gemini. 🚀


[ Read More ] : https://gemini.google/overview/image-generation

〰️〰️〰️〰️〰️〰️
#AI #Gemini #Google
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Jetbrains Grazie: AI writing companion for people in tech 🚀

If you spend more time writing documentation, commit messages, blog posts or support tickets than you’d like, JetBrains just launched something you’ll want to try: Grazie.

It’s an AI writing assistant built for people in tech, helping make all those non-code texts better, faster.

🔍 What Does Grazie Do?
• Instant proofreading (grammar, spelling, punctuation, style)
• Inline text completion
• Summarization
• Translation across several languages
• Rephrasing / tone correction / synonymization
• AI-Chat

🛠 Where It Works & Pricing
• Plugin for JetBrains IDEs
• Browser extension for Chromium-based browsers
• Google Docs, Sheets, Gmail
• GitHub
• Slack
• And many more ...


[ Download ] : https://www.jetbrains.com/grazie

〰️〰️〰️〰️〰️〰️
#AI #Jetbrains #GrammarAI
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub MCP Registry: The fastest way to discover MCP Servers 🔝

If you’ve tried connecting AI agents to your development tools, you know the pain: MCP servers scattered across numerous registries, random repos, buried in community threads — making discovery slow and full of friction without a central place to go. Meanwhile, MCP server creators are worn out from publishing to multiple places and answering the same setup questions again and again.

The GitHub MCP Registry launches as your new home base for discovering MCP servers. Whether you’re building with GitHub Copilot, agents, or any AI tool that speaks MCP, this is the place to find what you need. With GitHub already home to most MCP servers, the MCP Registry makes them dramatically easier to discover, explore, and use — helping developers find the right tools faster and contribute to a more open, interoperable ecosystem. ✔️


[ GitHub MCP Registry ] : https://github.com/mcp

〰️〰️〰️〰️〰️〰️
#LLM #AI #MCP #GitHub
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Announcing ChromeDevTools MCP! 🔥

Connect your AI coding agent to Chrome's powerful automation & debugging capabilities with ease.

Key features:

Reliable automation: It can programmatically handle clicks, form fills, dialogs, and page navigation with ease.

Performance insights: Go beyond simple audits. Instruct your agent to record a performance trace and extract actionable insights to optimize your web apps.

Advanced debugging: Empower your AI to analyze network requests, list console messages, take screenshots, and even evaluate scripts in the browser context.

Browser emulation: Easily test different conditions by emulating CPU slowdowns, network throttling, or various screen sizes.

Works well with modern web apps and believe this will unlock new workflows for automated testing, AI-driven debugging, and interactive web development.


[ Blog ]
: https://developer.chrome.com/blog/chrome-devtools-mcp

〰️〰️〰️〰️〰️〰️
#AI #LLM #MCP
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Preparing for the .NET 10 GC 🔥

In .NET 9 DATAS (Dynamic Adaptation To Application Sizes) got enabled by default, but .NET 9 is not an LTS release, so for many people they will be getting DATAS for the first time when they upgrade to .NET 10.


What does “application size” mean exactly?
This is the LDS (Live Data Size) from GC’s point of view, meaning that if we did the most aggressive GC possible, this is how much memory your application uses. Another way to look at it is this is your long lived data + whatever inflight data you have when a GC occurs.

The goal for DATAS is that you no longer need to do various configurations to try to achieve a heap size proportional to your application usage. The 2 main cases we target with DATAS are:

1) Bursty workloads running in memory constraint environments. DATAS aims to retract the heap size back when the application doesn’t require as much memory and grow it when the app requires more. This is especially important for apps running in containers with memory limits.

2) Small workloads using Server GC — for example, if someone wants to try out a small asp.net core app to see what the experience is like in .NET, DATAS aims provide a heap size much more inline with what the small app actually needs.


[ Article ]
: https://maoni0.medium.com/preparing-for-the-net-10-gc-88718b261ef2

〰️〰️〰️〰️〰️〰️
#dotnet #gc
@ProgrammingTip
Please open Telegram to view this post
VIEW IN TELEGRAM
Media is too big
VIEW IN TELEGRAM
🚀 OpenAI just dropped Sora 2 — and it’s insane.

Every frame of the video you’ll see is fully generated by AI. No cameras, no actors, no sets. Just prompts → video!

[ Blog ] : https://openai.com/index/sora-2

〰️〰️〰️〰️〰️〰️
#AI #OpenAI #Sora
@ProgrammingTip