I built a working Minimal API with EF Core in 3 files.
You can do the same in 10 minutes.
No solution file.
No csproj.
No project setup.
Just three .cs files and the dotnet CLI.
This is file-based apps in .NET 11 Preview 3.
And it's a complete shift in how you can build internal tools and prototypes.
๐ง๐ต๐ฒ ๐ฏ-๐ณ๐ถ๐น๐ฒ ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ
1. Order.cs
โณ Plain POCO with Id, OrderNumber, CustomerName, Amount, CreatedAt
2. OrdersDbContext.cs
โณ The EF Core DbContext with inline Fluent API mappings
3. main.cs
โณ DI setup, Minimal API endpoints, app[.]Run()
That's it: 3 files in a folder.
๐ง๐ต๐ฒ ๐บ๐ฎ๐ด๐ถ๐ฐ ๐ถ๐ ๐ถ๐ป ๐ฐ ๐ฑ๐ถ๐ฟ๐ฒ๐ฐ๐๐ถ๐๐ฒ๐ ๐ฎ๐ ๐๐ต๐ฒ ๐๐ผ๐ฝ ๐ผ๐ณ ๐บ๐ฎ๐ถ๐ป.๐ฐ๐
#:sdk Microsoft[.]NET[.]Sdk[.]Web
โณ Unlocks WebApplication and ASP .NET Core types
#:package [email protected]
โณ Pulls in the SQLite provider on first run
#:include Order.cs
โณ Brings the entity into the compilation
#:include OrdersDbContext.cs
โณ Brings the DbContext into the compilation
Four lines replace an entire csproj and sln.
Below the directives, it's standard ASP .NET Core code.
I can run it with a single command:
๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐.๐๐
First run restores EF Core.
Every run after that is fast.
You now have a real web API with a real database.
โ When file-based apps win
โ Internal tools without ceremony
โ Prototypes you can share as a single folder
โ Demos that work in a few minutes
โ Replacing Python scripts where you want strong typing
โ Onboarding new devs without csproj confusion
โ When you should NOT use them
โ Multi-project solutions with shared libraries
โ Apps with custom MSBuild logic
โ NuGet package authoring
โ Production apps with full CI/CD and test projects
And when your script outgrows itself, one command converts it:
๐๐๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐.๐๐
You get a full csproj with all directives translated.
I've covered the complete workflow with all code samples in this week's newsletter issue.
๐ Read the full guide:
โณ https://t.co/oenvrHRypH
Inside you'll find:
โ Full HTTP health-check tool walkthrough
โ Complete Minimal API with all 4 endpoints
โ Exact EF Core mappings, DI setup, and migration step
โ The checklist for when to convert to a full project
Where would you try file-based apps first - scripts, prototypes, or internal tools?
โโ
๐ฃ.๐ฆ.: ๐๐๐๐ฟ๐ฒ ๐๐ผ๐ฝ๐ถ๐น๐ผ๐ ๐ ๐ถ๐ด๐ฟ๐ฎ๐๐ถ๐ผ๐ป ๐๐ด๐ฒ๐ป๐ ๐ถ๐ ๐๐ฒ๐ฟ๐ฒ
Microsoft's Azure Copilot Migration Agent can turn complex migration data into clear answers. With natural language prompts, you can evaluate readiness, risk, ROI, and automate landing zone requirements to make confident decisions for you and your team.
Download the free playbook to get started: https://t.co/pPsd2dRg0P
โโ
โป๏ธ Repost to help other .NET developers build faster
โ Follow me ( @AntonMartyniuk ) to improve your .NET and Architecture Skills
๐ฏ ๐ฎ๐ฑ ๐ฉ๐ฆ ๐๐ผ๐ฑ๐ฒ ๐๐ ๐๐ฒ๐ป๐๐ถ๐ผ๐ป๐ ๐๐๐ฒ๐ฟ๐ ๐๐ฒ๐๐ฒ๐น๐ผ๐ฝ๐ฒ๐ฟ ๐ฆ๐ต๐ผ๐๐น๐ฑ ๐ง๐ฟ๐
The right VS Code extensions can save hours of work, improve code quality, and make development way more productive ๐
Here are 25 powerful VS Code extensions every developer should definitely try.
1. Prettier
โฆ Code formatter that enforces consistent style.
2. ESLint
๐น Find and fix problems in your JavaScript code.
3. Live Server
โฆ Launch a local development server with live reload.
4. GitLens
๐น Supercharge Git in VS Code.
5. Auto Rename Tag
โฆ Rename paired HTML/XML tags automatically.
6. IntelliCode
๐น AI-assisted development to boost your productivity.
7. Thunder Client
โฆ Fast, lightweight REST API Client for VS Code.
8. Material Icon Theme
๐น Beautiful material design icons for your files.
9. Bracket Pair Colorizer
โฆ Colorizes matching brackets for easier reading.
10. REST Client
๐น Send HTTP requests and view responses in VS Code.
11. Tailwind CSS IntelliSense
โฆ Intelligent Tailwind CSS class completion.
12. Better Comments
๐น Improve your code with colored comments.
13. Path Intellisense
โฆ Autocomplete filenames and paths in your project.
14. Error Lens
๐น Highlight errors, warnings, and messages in your code.
15. Code Spell Checker
โฆ Spelling checker for source code.
16. Docker
๐น Build, manage, and debug Docker containers.
17. Remote SSH
โฆ Edit and debug code on remote machines via SSH.
18. Tabnine
๐น AI code completions that save you time.
19. Import Cost
โฆ Display import size in your code editor.
20. Markdown All in One
๐น All you need to write Markdown easily.
21. Color Highlight
โฆ Highlight colors in your code.
22. CodeSnap
๐น Take beautiful screenshots of your code.
23. TODO Highlight
โฆ Highlight TODOs, FIXMEs, and other annotations.
24. Inline Fold
๐น Fold code blocks inline to keep your view clean.
25. ChatGPT - CodeGPT
โฆ AI assistant right in your VS Code. Code, explain, refactor, and more.
โค๏ธ Like
๐ Retweet
๐ Bookmark
Follow @sonalshukla3377 for more such posts
System Design Series - Day 30/30
Deployment Strategies That Prevent Disasters
The most dangerous moment in engineering is deploying to production.
Most junior engineers know one strategy: push it and hope.
Here are 5 deployment strategies that separate junior from senior engineers ๐
1. Strategy 1: Rolling Deployment
The most common and safest starting point.
Instead of updating all servers at once, update one server at a time.
- Server 1: Updated and healthy
- Server 2: Updated and healthy
- Server 3: Updated and healthy
If Server 2 fails health check:
Stop deployment.
Only Server 1 and 2 are affected.
Roll back Server 2.
Server 3 stays on the old version.
Zero total downtime.
Built-in safety net.
2. Strategy 2: Blue-Green Deployment
Run two identical production environments.
- Blue: Current live version (serving all traffic)
- Green: New version (deployed but receiving zero traffic)
Steps:
1. Deploy new version to Green
2. Run full test suite on Green
3. Switch traffic from Blue to Green (instant)
4. If problems: Switch back to Blue (instant rollback)
Zero downtime.
Instant rollback.
Gold standard for zero-risk deployments.
Cost: Double the infrastructure (worth it for critical systems).
3. Strategy 3: Canary Deployment
Named after canary birds in coal mines.
Instead of switching all traffic at once:
- Deploy new version
- Send 5% of traffic to new version
- Monitor for 30 minutes
- If stable: Increase to 20% โ 50% โ 100%
If problems at any stage: Route 100% back to old version.
Only 5% of users are ever affected.
Used by Netflix, Google, and Amazon for every major release.
4. Strategy 4: Feature Flags
Ship code without activating features.
Deploy the new checkout flow to production.
Feature flag is OFF.
- Internal team: ON for employees only
- Beta users: ON for 10% of users
- Full rollout: ON for everyone
Problems during rollout?
Turn the flag OFF.
Instant rollback without redeploying.
Tools: LaunchDarkly, Unleash (open source), or simple database boolean.
Separates deployment from release.
5. Strategy 5: Database Migration Safety
The deployment strategy nobody teaches but everyone needs.
You cannot change database schema and deploy code simultaneously.
Old code running while migration runs = broken queries.
The safe pattern (backwards compatible migrations):
- Week 1: Add new column (nullable, old code ignores it)
- Week 2: Deploy new code (uses new column if present)
- Week 3: Backfill data in new column
- Week 4: Remove old column
Never break existing queries during migration.
This is why experienced engineers fear schema changes more than new features.
Which deployment strategy does your team currently use?
Reply with the number (1-5).
This concludes the System Design Series.
Thank you for following along for 30 days.
#SystemDesign #Deployment #Backend
This 32-min Stanford lecture by Graham Weaver will teach you more about living boldly than 10 years of self-help books.
Bookmark it and give it 32 minutes, no matter what. Itโs the best way to start your week.
Instead of watching an hour movie, watch this. In 14 minutes, an Anthropic engineer who wrote Building Effective Agents will teach you more about building agents right than most developers figure out on their own in months.
A man spends 50 years teaching at MIT.
He knows his time is running out.
So he records one last lecture โ everything he knows, distilled into a single hour.
He died 5 months later.
This is that lecture.
The most important hour you'll watch this week. ๐
Bookmark it for later
Instead of watching an hour of Netflix, watch this 2 hour hour Stanford lecture will teach you more about how LLMs like ChatGPT and Claude are built than most people working at top AI companies learn in their entire careers.
๐ฆ๐ฆ๐ข (๐ฆ๐ถ๐ป๐ด๐น๐ฒ ๐ฆ๐ถ๐ด๐ป-๐ข๐ป) ๐ฒ๐ ๐ฝ๐น๐ฎ๐ถ๐ป๐ฒ๐ฑ
SSO is an authentication process that allows users to access multiple apps with a single master key.
This is accomplished using a central authentication server that stores the user's credentials and verifies them for each application.
Here are ๐๐ต๐ฒ ๐๐๐ฒ๐ฝ๐ that happen if you want to access the Trello web app by using your Google account:
1. Use the Trello login web page and select Google account as a login method
2. Trello redirects the user to the Google login page
3. User is served with the Google login page
4. The user enters their Google credentials
5. Google sends authentication info to the SSO Authorization server
6. If credentials are valid, the Authorization server returns the auth token (SAML)
7. Google sends the auth token to the Trello
8. In the last step, Trello sends the token to the Google Authentication server to validate its
9. If the token is valid, Trello will allow access to the user and store the session for future interactions
โ The ๐ฏ๐ฒ๐ป๐ฒ๐ณ๐ถ๐๐ of SSO are:
๐น Improved user experience. Users do not need to remember multiple usernames and passwords.
๐น Increased security. Users are less likely to reuse passwords across applications.
โ The ๐ฑ๐ถ๐๐ฎ๐ฑ๐๐ฎ๐ป๐๐ฎ๐ด๐ฒ๐ are:
๐ธ Single point of failure. One of the most notable disadvantages is that SSO creates a single point of failure. If the SSO system is compromised, the attacker could access all connected applications and services.
๐ธSecurity risks. If credentials are compromised, the security of all connected applications could be at risk.
Some ๐ฐ๐ผ๐บ๐บ๐ผ๐ป ๐๐๐ฝ๐ฒ๐ ๐ผ๐ณ ๐ฆ๐ฆ๐ข are:
๐น ๐ฆ๐๐ ๐-๐ฏ๐ฎ๐๐ฒ๐ฑ ๐ฆ๐ฆ๐ข. This is the most common type of SSO. It uses the SAML protocol to exchange authentication information between the SSO server and applications.
๐น ๐ข๐ฝ๐ฒ๐ป๐๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐. This is a newer SSO type based on OAuth 2.0. It is a more straightforward protocol than SAML and is easier to integrate with web applications.
And ๐ฝ๐ผ๐ฝ๐๐น๐ฎ๐ฟ ๐ฆ๐ฆ๐ข ๐๐ผ๐น๐๐๐ถ๐ผ๐ป๐ are:
โก๏ธ Azure Active Directory
โก๏ธ Okta
โก๏ธ Ping Identity
โก๏ธ OneLogin
โก๏ธ Google Cloud Identity Platform
Claude is actually insane.
Most people are using it like a smarter Google.
Thatโs the mistake.
You can literally turn it into a personal teacher, strategist, and thinking partner โ all in one.
Hereโs what changed everything for me:
Instead of asking for answersโฆ
I tell Claude:
โAfter every task, explain how you thought, what you considered, what you rejected, and what I should learn from this.โ
Now every output comes with:
โข the reasoning behind decisions
โข alternative approaches it didnโt choose
โข tradeoffs most people ignore
โข mistakes and dead ends
โข how everything connects
โข what an expert would notice
โข lessons I can reuse in totally different problems
This is a completely different experience.
Youโre not just getting results.
Youโre learning how to think.
And once this clicks, you realize:
AI isnโt just a tool for doing work faster.
Itโs a system for compounding intelligence.
You can use it to: โข break down complex topics
โข simulate expert thinking
โข learn any skill faster
โข turn ideas into structured plans
โข improve your decision-making
Most people will keep chasing better prompts.
But the real unlock is this:
Make AI explain its thinking, not just give answers.
Thatโs where the leverage is.
Almost no one is doing this yet.
Bookmark this โ youโll want to try it once and you wonโt go back
True intelligence comes from 3 core abilities: solving problems with clarity, adjusting with grace in any situation and making decisions that are thoughtful.
When these qualities grow, so does your inner strength. Nurture them a little every day and watch the shift within you.