SportEnthusiast retweeted
𝗪𝗵𝗲𝗻 𝘁𝗼 𝘂𝘀𝗲 𝗚𝗿𝗮𝗽𝗵𝗤𝗟, 𝗴𝗥𝗣𝗖, 𝗮𝗻𝗱 𝗥𝗘𝗦𝗧?
I've just released the new issue of my 𝗻𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿 to more than 28k+ addresses.
In this issue, we discuss when to use 𝗚𝗿𝗮𝗽𝗵𝗤𝗟, 𝗴𝗥𝗣𝗖, 𝗮𝗻𝗱 𝗥𝗘𝗦𝗧. We will cover all essential aspects of these three major API architecture styles and examine their pros and cons for different scenarios.
In addition, you will learn how scalability, data fetching, error handling, and maintainability influence decisions on which style to use and for which use cases.
Check it out from the following link: newsletter.techworld-with-mi….
____
This issue is brought to you by @getPostman 🎁.
𝙋𝙊𝙎𝙏/𝘾𝙊𝙉 𝘗𝘰𝘴𝘵𝘮𝘢𝘯'𝘴 𝘣𝘪𝘨𝘨𝘦𝘴𝘵 𝘈𝘗𝘐 𝘤𝘰𝘯𝘧𝘦𝘳𝘦𝘯𝘤𝘦 𝘦𝘷𝘦𝘳 𝘧𝘳𝘰𝘮 𝘈𝘱𝘳𝘪𝘭 30 - 𝘔𝘢𝘺 1 𝘪𝘯 𝘚𝘢𝘯 𝘍𝘳𝘢𝘯𝘤𝘪𝘴𝘤𝘰, 𝘊𝘢𝘭𝘪𝘧𝘰𝘳𝘯𝘪𝘢! 𝘈𝘯𝘥 𝘳𝘪𝘨𝘩𝘵 𝘯𝘰𝘸, 𝘵𝘩𝘦 𝘗𝘰𝘴𝘵𝘮𝘢𝘯 𝘵𝘦𝘢𝘮 𝘪𝘴 𝘰𝘧𝘧𝘦𝘳𝘪𝘯𝘨 20% 𝙤𝙛𝙛 𝙩𝙞𝙘𝙠𝙚𝙩𝙨.
𝘗𝘖𝘚𝘛/𝘊𝘖𝘕 24 𝘪𝘴 𝘧𝘰𝘳 𝘢𝘯𝘺𝘰𝘯𝘦 𝘸𝘩𝘰 𝘸𝘰𝘳𝘬𝘴 𝘸𝘪𝘵𝘩 𝘈𝘗𝘐𝘴 𝘰𝘳 𝘸𝘩𝘰𝘴𝘦 𝘣𝘶𝘴𝘪𝘯𝘦𝘴𝘴 𝘳𝘦𝘭𝘪𝘦𝘴 𝘰𝘯 𝘈𝘗𝘐𝘴. 𝘐𝘧 𝘺𝘰𝘶 𝘢𝘵𝘵𝘦𝘯𝘥, 𝘺𝘰𝘶'𝘭𝘭 𝘦𝘢𝘳𝘯 𝘢 𝘤𝘦𝘳𝘵𝘪𝘧𝘪𝘤𝘢𝘵𝘦 𝘢𝘯𝘥 𝘢 𝘗𝘰𝘴𝘵𝘮𝘢𝘯 𝘉𝘢𝘥𝘨𝘦!
𝘖𝘷𝘦𝘳 𝘵𝘸𝘰 𝘥𝘢𝘺𝘴, 𝘺𝘰𝘶'𝘭𝘭 𝘩𝘦𝘢𝘳 𝘧𝘳𝘰𝘮 𝙞𝙣𝙙𝙪𝙨𝙩𝙧𝙮 𝙡𝙚𝙖𝙙𝙚𝙧𝙨, 𝘢𝘵𝘵𝘦𝘯𝘥 𝘩𝘢𝘯𝘥𝘴-𝘰𝘯 𝙬𝙤𝙧𝙠𝙨𝙝𝙤𝙥𝙨, 𝘭𝘪𝘴𝘵𝘦𝘯 𝘵𝘰 𝘪𝘯-𝘥𝘦𝘱𝘵𝘩 𝘱𝘳𝘦𝘴𝘦𝘯𝘵𝘢𝘵𝘪𝘰𝘯𝘴, 𝘢𝘯𝘥 𝘱𝘢𝘳𝘵𝘪𝘤𝘪𝘱𝘢𝘵𝘦 𝘪𝘯 𝘦𝘹𝘤𝘭𝘶𝘴𝘪𝘷𝘦 𝘤𝘰𝘯𝘷𝘦𝘳𝘴𝘢𝘵𝘪𝘰𝘯𝘴. 𝘐𝘧 𝘺𝘰𝘶 𝘸𝘰𝘳𝘬 𝘸𝘪𝘵𝘩 𝘈𝘗𝘐𝘴 𝘰𝘳 𝘺𝘰𝘶𝘳 𝘣𝘶𝘴𝘪𝘯𝘦𝘴𝘴 𝘳𝘦𝘭𝘪𝘦𝘴 𝘰𝘯 𝘈𝘗𝘐𝘴, 𝘗𝘖𝘚𝘛/𝘊𝘖𝘕 𝘪𝘴 𝘵𝘩𝘦 𝘱𝘭𝘢𝘤𝘦 𝘧𝘰𝘳 𝘺𝘰𝘶.
𝙍𝙚𝙜𝙞𝙨𝙩𝙚𝙧 𝙣𝙤𝙬: postcon.postman.com/event/5b…
#technology #softwareengineering #management #techworldwithmilan #leadership
SportEnthusiast retweeted
𝗛𝗼𝘄 𝘁𝗼 𝗹𝗲𝗮𝗿𝗻 𝗦𝗤𝗟?
Structured Query Language (SQL) is a domain-specific language used in programming and designed to manage data held in relational database management systems for many years. It was developed at IBM in the early 1970s. As relational databases are still very prevalent, any developer must use them.
The SQL language has 𝗰𝗹𝗮𝘂𝘀𝗲𝘀, which are components of statements and queries; 𝗲𝘅𝗽𝗿𝗲𝘀𝘀𝗶𝗼𝗻𝘀, which can produce scalar values or tables; 𝗽𝗿𝗲𝗱𝗶𝗰𝗮𝘁𝗲𝘀, which specify conditions that can be evaluated using SQL three-valued logic; and 𝗾𝘂𝗲𝗿𝗶𝗲𝘀, which retrieve data based on criteria and other elements.
There are five main components of SQL:
🔹 𝗗𝗗𝗟 (𝗗𝗮𝘁𝗮 𝗗𝗲𝗳𝗶𝗻𝗶𝘁𝗶𝗼𝗻 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲): Defines and manages database schema elements, using commands like CREATE, ALTER, and DROP to create, modify, or delete tables and other database structures.
🔹 𝗗𝗠𝗟 (𝗗𝗮𝘁𝗮 𝗠𝗮𝗻𝗶𝗽𝘂𝗹𝗮𝘁𝗶𝗼𝗻 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲): manages the data within database tables, using commands like INSERT, UPDATE, DELETE, and SELECT to add, update, remove, or retrieve data.
🔹 𝗗𝗖𝗟 (𝗗𝗮𝘁𝗮 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲): Controls access to the database, using GRANT and REVOKE to provide or remove user permissions for data access and manipulation.
🔹 𝗧𝗖𝗟 (𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲): Manages database transactions to ensure data integrity, using commands like COMMIT, ROLLBACK, and SAVEPOINT to finalize, undo, or save transaction states.
🔹 𝗗𝗤𝗟 (𝗗𝗮𝘁𝗮 𝗤𝘂𝗲𝗿𝘆 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲): This language primarily involves the SELECT command, which queries and fetches data from the database based on specific criteria.
So, the question is 𝗵𝗼𝘄 𝘁𝗼 𝗹𝗲𝗮𝗿𝗻 𝗦𝗤𝗟?
Here are some (free) resources that I can recommend:
𝟭. 𝗦𝗤𝗟𝗕𝗼𝗹𝘁 - is an entirely free, fully interactive introductory course. All SQL basics are covered, including writing queries, filtering, joins, aggregations, and creating, updating, and deleting tables. sqlbolt.com/
𝟮. 𝗦𝗤𝗟𝗭𝗼𝗼 —It provides both tutorials and exercises, which is why it is equally useful for someone just starting with SQL and programmers who know SQL but want some good practice to really master it. sqlzoo.net/wiki/SQL_Tutorial
𝟯. 𝗦𝗤𝗟 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹 𝗮𝘁 𝗙𝗿𝗲𝗲𝗖𝗼𝗱𝗲𝗖𝗮𝗺𝗽 - This SQL course has more than 7 million views, and I think it's Youtube’s most popular free SQL course. youtube.com/watch?v=HXV3zeQK…
𝟰. 𝗣𝗼𝗽𝗦𝗤𝗟 is a really interesting tool for collaborative SQL querying. It enables multiple users to share queries, stores commonly used queries in a searchable library and provides a visual interface for analysis. popsql.com/learn-sql
𝟱. 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗦𝗤𝗟 𝗯𝘆 𝗔𝗹𝗮𝗻 𝗕𝗲𝗮𝘂𝗹𝗶𝗲𝘂 𝗳𝗿𝗲𝗲 𝗯𝗼𝗼𝗸. This book provides helpful context regarding the language's history and current usage, offers an overview of query and table architecture, and covers some more complex SQL subjects than the courses mentioned above. r-5.org/files/books/computer…
#sql #databases
SportEnthusiast retweeted
In today's #dotNETConf session replay, we explore how to use .NET, C#, and Azure to create amazing applications with OpenAI and other generative AI technologies. 🎥 msft.it/6013cQtGZ
SportEnthusiast retweeted
I could not find a good beginner level Blazor course.
So I created one.
In this free course, you will learn how to build a modern frontend application, step by step, using Blazor and the C# language.
Most other Blazor course instructors assume you already know a previous version of Blazor, and want to learn what's new in .NET 8.
That's not this course.
Here you'll go from zero to becoming a .NET Frontend Developer with Blazor, even if you have never created a web application before.
Specifically, this course covers:
- What is Blazor?
- Creating a Blazor project
- Using Razor syntax
- Styling with Bootstrap
- Creating and reusing components
- Using Forms and bindings
- Routing and navigation
- Dependency injection
- Client-side validation
- Using component parameters
- Adding user interactivity
- Using the configuration system
- Using asynchronous programming
- Talking to the backend via HttpClient
- Stream rendering & enhanced forms
And, you will use the latest and greatest tech available with .NET 8, VS Code and the C# Dev Kit.
Ready to become a .NET Frontend Developer?
Start watching for free over here 👇
youtu.be/RBVIclt4sOo
SportEnthusiast retweeted
Explaining 9 Types of API Testing
🔹 Smoke Testing
This is done after API development is complete. It simply validates if the APIs are working and nothing breaks.
🔹 Functional Testing
This creates a test plan based on the functional requirements and compares the results with the expected outcomes.
🔹 Integration Testing
This test combines several API calls to perform end-to-end tests. It tests intra-service communications and data transmissions.
🔹 Regression Testing
This test ensures that bug fixes or new features don't break the existing behaviors of APIs.
🔹 Load Testing
This tests an application's performance by simulating different loads. It helps calculate the capacity of the application.
🔹 Stress Testing
This deliberately creates high loads on the APIs to test if they are able to function normally under stress.
🔹 Security Testing
This tests the APIs against possible external threats to ensure security.
🔹 UI Testing
This tests the UI interactions with the APIs to make sure the data is displayed properly.
🔹 Fuzz Testing
This injects invalid or unexpected input data into the API and tries to crash it. This helps identify API vulnerabilities.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
SportEnthusiast retweeted
A simple way to achieve RBAC in web APIs is by leveraging JSON Web Tokens and adding roles as claims.
In this #dotNETConf session replay, we discuss the importance of API security and how to use JWTs to implement the RBAC pattern in #ASPNET Web APIs. 🎥 msft.it/6018cUqay
SportEnthusiast retweeted
20 Leetcode Problems to Learn 20 Dynamic Programming Patterns:
1. Fibonacci Numbers: lnkd.in/g7pbDHnX
2. Kadane's Algorithm: lnkd.in/gjwfUv-9
3. 0/1 Knapsack: lnkd.in/gc8Geen2
4. Unbounded Knapsack: lnkd.in/g-FYrJrt
5. DP on strings: lnkd.in/gUC2nGv9
6. DP for substrings: lnkd.in/gJMzudmY
7. DP on subsequences: lnkd.in/g_H23Bsu
8. Longest Increasing Subsequence: lnkd.in/gNtrAFQz
9. Longest Palindromic Subsequence: lnkd.in/g6JdG6tF
10. Count Distinct Ways: lnkd.in/gX6QUtUJ
11. Catalan numbers: lnkd.in/g7FwRtMX
12. DP on Trees: lnkd.in/gRhNxTh5
13. DP on a Grid: lnkd.in/gMn6HFAA
14. Minimum (Maximum) Path to Reach a Target: lnkd.in/gTqHJT4s
15. Prefix Sum: lnkd.in/g9HHQ2Z8
16. Game Theory DP: lnkd.in/gWpxnNqt
17. Probability DP: lnkd.in/gr_aR3eq
18. Matrix Chain Multiplication: lnkd.in/gn6ipyMT
19. Digit DP: lnkd.in/gG3_hKT7
20. State Compression DP: lnkd.in/gVFybsks
♻️ Repost to help your network.
Join my free newsletter for simple explanations to coding and system design concepts: newsletter.ashishps.com/
SportEnthusiast retweeted
LeetCode was HARD.
Learning these patterns made it easier for me:
1) 𝐒𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠 𝐏𝐫𝐨𝐛𝐥𝐞𝐦 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/problems/minimu…
2) 𝐒𝐥𝐢𝐝𝐢𝐧𝐠 𝐖𝐢𝐧𝐝𝐨𝐰 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/problems/freque…
3) 𝐓𝐰𝐨 𝐏𝐨𝐢𝐧𝐭𝐞𝐫𝐬 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
4) 𝐁𝐚𝐜𝐤𝐭𝐫𝐚𝐜𝐤𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: medium.com/leetcode-patterns…
5) 𝐃𝐲𝐧𝐚𝐦𝐢𝐜 𝐏𝐫𝐨𝐠𝐫𝐚𝐦𝐦𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬 1: leetcode.com/discuss/study-g…
6) 𝐃𝐲𝐧𝐚𝐦𝐢𝐜 𝐏𝐫𝐨𝐠𝐫𝐚𝐦𝐦𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬 2: leetcode.com/discuss/study-g…
7) 𝐁𝐢𝐧𝐚𝐫𝐲 𝐒𝐞𝐚𝐫𝐜𝐡 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
8) 𝐁𝐚𝐜𝐤𝐭𝐫𝐚𝐜𝐤𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/problems/permut…
9) 𝐓𝐫𝐞𝐞 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
10) 𝐆𝐫𝐚𝐩𝐡 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
11) 𝐌𝐨𝐧𝐨𝐭𝐨𝐧𝐢𝐜 𝐒𝐭𝐚𝐜𝐤 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
12) 𝐁𝐢𝐭 𝐌𝐚𝐧𝐢𝐩𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
13) 𝐒𝐭𝐫𝐢𝐧𝐠 𝐐𝐮𝐞𝐬𝐭𝐢𝐨𝐧 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: leetcode.com/discuss/study-g…
14) 𝐃𝐅𝐒 + 𝐁𝐅𝐒 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬 (1): medium.com/leetcode-patterns…
15) 𝐃𝐅𝐒 + 𝐁𝐅𝐒 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬 (2): medium.com/leetcode-patterns…
16) 14 𝐂𝐨𝐝𝐢𝐧𝐠 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬: hackernoon.com/14-patterns-t…
For more Leetcode resources, checkout this GitHub repository: github.com/ashishps1/awesome…
♻️ Repost to help your network.
Join my free newsletter (Dev Design Digest) for visual explanations to coding and system design concepts: newsletter.ashishps.com/
SportEnthusiast retweeted
Need to implement Authentication with minimal effort and low cost?
This AWS service is free for up to 50,000 monthly active users.
Let me introduce you to Amazon Cognito.
Amazon Cognito handles user authentication and authorization for you. It supports both OAuth 2.0 and OIDC. And you can configure Cognito in a matter of minutes.
You can use Amazon Cognito to authenticate and authorize users and integrate it with your .NET applications.
I made an in-depth video showing you how to get started from scratch.
Watch it here: youtu.be/QKxTGcJHar0
SportEnthusiast retweeted
30 .NET topics that I have covered so far check out these posts
✅ Design Principles (3)
- DRY : bit.ly/3kIBxTi
- KISS : bit.ly/3kGdRim
- YAGNI : bit.ly/3J6uzRw
✅ Packages (7)
- Hangfire : bit.ly/3J9sVyz 🧵👇
SportEnthusiast retweeted
How do you test your APIs in .NET , answer could be
- Postman
- Swagger
- Unit testing
What if I tell you we have new way to test our APIs
.NET 8 Web API with default .http file
Using .http file we can test our .NET APIs, although this option was available there since a long time, but I noticed it when I have recently created a .NET 8 API. It is by default created with .NET 8.
What is the purpose of this file
As per Microsoft docs .http file editor provides a convenient way to test ASP .NET Core projects, especially API apps. The editor provides a UI that:
- Displays the responses
- Creates and updates .http files.
- Sends HTTP requests specified in .http files.
By default this file contains host address and a simple GET method.
We can add new variable by using at the rate (@) sign and use it.
Three hash tags (###) are used as delimiter to tell this file that previous API has ended here and we have other API after that.
If you are interested to learn :
- How to send requests
- How to add header and body
- Which methods are supported
You should read this → shorturl.at/cov34
Repost ♻️ would be appreciated
SportEnthusiast retweeted
4 Books to get better at System Design:
1. Designing Data-Intensive Applications
2. Clean Architecture
3. Building Microservices
4. Database Internals
What else you would add to this list?
***
Join 2700+ readers of my free newsletter for simple explanations to coding and system design concepts: newsletter.ashishps.com/
SportEnthusiast retweeted
Want to get a .NET Software Engineer job?
I prepared 50 questions with answers for you to practice:
1. What is .NET?
2. Can you explain the Common Language Runtime (CLR)?
3. What is the difference between managed and unmanaged code?
4. Explain the basic structure of a C# program.
5. What are Value Types and Reference Types in C#?
6. What is garbage collection in .NET?
7. Explain the concept of exception handling in C#.
8. What are the different types of classes in C#?
9. Can you describe what a namespace is and how it is used in C#?
10. What is encapsulation?
11. Explain polymorphism and its types in C#.
12. What are delegates and how are they used in C#?
13. Describe what LINQ is and give an example of where it might be used.
14. What is the difference between an abstract class and an interface?
15. How do you manage memory in .NET applications?
16. Explain the concept of threading in .NET.
17. What is async/await and how does it work?
18. Describe the Entity Framework and its advantages.
19. What are extension methods and where would you use them?
20. How do you handle exceptions in a method that returns a Task?
21. ...
So far I created 20 of them.
All the answers and new questions you can track on my GitHub account: github.com/StefanTheCode/dot…
If you like content like this, be sure to join my .NET Pro Newsletter along with 10,500+ engineers: stefandjokic.tech/?utm_sourc…
*Note: These are only technical questions, it is not guaranteed that you will pass the interview if you know all the questions.
#Dotnet
SportEnthusiast retweeted
Git commands I used 99% of the time being a Software Developer for 6+ years:
1. 𝐠𝐢𝐭 𝐝𝐢𝐟𝐟: Show file differences not yet staged.
2. 𝐠𝐢𝐭 𝐜𝐨𝐦𝐦𝐢𝐭 -𝐚 -𝐦 "𝐜𝐨𝐦𝐦𝐢𝐭 𝐦𝐞𝐬𝐬𝐚𝐠𝐞": Commit all tracked changes with a message.
3. 𝐠𝐢𝐭 𝐬𝐭𝐚𝐭𝐮𝐬: Show the state of your working directory.
4. 𝐠𝐢𝐭 𝐚𝐝𝐝 𝐟𝐢𝐥𝐞_𝐩𝐚𝐭𝐡: Add file(s) to the staging area.
5. 𝐠𝐢𝐭 𝐜𝐡𝐞𝐜𝐤𝐨𝐮𝐭 -𝐛 𝐛𝐫𝐚𝐧𝐜𝐡_𝐧𝐚𝐦𝐞: Create and switch to a new branch.
6. 𝐠𝐢𝐭 𝐜𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐛𝐫𝐚𝐧𝐜𝐡_𝐧𝐚𝐦𝐞: Switch to an existing branch.
7. 𝐠𝐢𝐭 𝐜𝐨𝐦𝐦𝐢𝐭 --𝐚𝐦𝐞𝐧𝐝: Modify the last commit.
8. 𝐠𝐢𝐭 𝐩𝐮𝐬𝐡 𝐨𝐫𝐢𝐠𝐢𝐧 𝐛𝐫𝐚𝐧𝐜𝐡_𝐧𝐚𝐦𝐞: Push a branch to a remote.
9. 𝐠𝐢𝐭 𝐩𝐮𝐥𝐥: Fetch and merge remote changes.
10. 𝐠𝐢𝐭 𝐫𝐞𝐛𝐚𝐬𝐞 -𝐢: Rebase interactively, rewrite commit history.
11. 𝐠𝐢𝐭 𝐜𝐥𝐨𝐧𝐞: Create a local copy of a remote repo.
12. 𝐠𝐢𝐭 𝐦𝐞𝐫𝐠𝐞: Merge branches together.
13. 𝐠𝐢𝐭 𝐥𝐨𝐠 --𝐬𝐭𝐚𝐭: Show commit logs with stats.
14. 𝐠𝐢𝐭 𝐬𝐭𝐚𝐬𝐡: Stash changes for later.
15. 𝐠𝐢𝐭 𝐬𝐭𝐚𝐬𝐡 𝐩𝐨𝐩: Apply and remove stashed changes.
16. 𝐠𝐢𝐭 𝐬𝐡𝐨𝐰 𝐜𝐨𝐦𝐦𝐢𝐭_𝐢𝐝: Show details about a commit.
17. 𝐠𝐢𝐭 𝐫𝐞𝐬𝐞𝐭 𝐇𝐄𝐀𝐃~1: Undo the last commit, preserving changes locally.
18. 𝐠𝐢𝐭 𝐟𝐨𝐫𝐦𝐚𝐭-𝐩𝐚𝐭𝐜𝐡 -1 𝐜𝐨𝐦𝐦𝐢𝐭_𝐢𝐝: Create a patch file for a specific commit.
19. 𝐠𝐢𝐭 𝐚𝐩𝐩𝐥𝐲 𝐩𝐚𝐭𝐜𝐡_𝐟𝐢𝐥𝐞_𝐧𝐚𝐦𝐞: Apply changes from a patch file.
20. 𝐠𝐢𝐭 𝐛𝐫𝐚𝐧𝐜𝐡 -𝐃 𝐛𝐫𝐚𝐧𝐜𝐡_𝐧𝐚𝐦𝐞: Delete a branch forcefully.
21. 𝐠𝐢𝐭 𝐫𝐞𝐬𝐞𝐭: Undo commits by moving branch reference.
22. 𝐠𝐢𝐭 𝐫𝐞𝐯𝐞𝐫𝐭: Undo commits by creating a new commit.
23. 𝐠𝐢𝐭 𝐜𝐡𝐞𝐫𝐫𝐲-𝐩𝐢𝐜𝐤 𝐜𝐨𝐦𝐦𝐢𝐭_𝐢𝐝: Apply changes from a specific commit.
24. 𝐠𝐢𝐭 𝐛𝐫𝐚𝐧𝐜𝐡: Lists branches.
25. 𝐠𝐢𝐭 𝐫𝐞𝐬𝐞𝐭 --𝐡𝐚𝐫𝐝: Resets everything to a previous commit, erasing all uncommitted changes.
Join my free newsletter (Dev Design Digest) to learn coding and system design visually: newsletter.ashishps.com/
SportEnthusiast retweeted
Data engineers come in a few levels:
- level 1
Knows Python and SQL. Can move data from point A to point B so long as it’s not too big
- level 2
Knows distributed compute basics like BigQuery and Spark. Can move data around on the order of single terabytes
- level 3
Masters distributed compute and can build pipelines of arbitrary size
- level 4
Actually talks with stakeholders before building pipelines
#dataengineering
SportEnthusiast retweeted
Managing .NET Solution Files with dotnet sln
The dotnet sln command is a powerful tool for managing projects within a .NET solution file. Here's how it works!
{ author: @sukhsukhpinder } #DEVCommunity #dotNET
dev.to/ssukhpinder/managing-…
SportEnthusiast retweeted
12 database types and when to use them:
1 - Relational Databases (SQL)
- Ideal choice when your data is structured and needs to be consistent
- Supports ACID transactions and complex relational queries
- Examples: MySQL, PostgreSQL, CockroachDB
2 - Document Databases
- Handles semi-structured data with the possibility of different fields for each document.
- Provides an amazing level of schema flexibility
- Examples: MongoDB, Couchbase
3 - Key-Value Store
- Use when the data model is based on key-value pairs. - Ideal for fast data retrieval and high throughput.
- Examples: Redis, DynamoDB
4 - Graph Databases
- Excellent choice for data with complex relationships.
- Used in applications such as recommendation engines and navigation maps.
- Examples: Neo4j, Amazon Neptune.
5 - Time-Series Databases
- Perfect choice when dealing with time-series data like IoT sensor readings or server logs in DevOps.
- Provides efficient storage and retrieval of time-stamped data.
- Examples: InfluxDB, Prometheus.
6 - Columnar Databases
- Data is stored by columns instead of rows to optimize reading from a column.
- Great for applications that involve storing massive data sets and running analytical queries.
- Examples: Amazon Redshift, Snowflake
7 - In-Memory Databases
- Ideal for cases when speed is more important than persistence.
- Used for caching, real-time analytics, and high-frequency trading.
- Examples - Redis and Memcached
8 - Search Engines
- Great for situations when you need to support full-text search on your dataset.
- Essential for applications that require searching through large amounts of data
- Examples - Elasticsearch & Solr
9 - Spatial Databases
- Used for storing geographical and location-based data. Extended on top of traditional databases.
- Choose for applications that require Spatial indexing and geospatial analytics.
- Examples include PostGIS & Oracle Spatial
10 - Blob Datastore
- For applications that need to store large documents, images, audio and video files.
- They provide high availability, durability and cost-effective storage.
- Examples include Azure Blob Storage, Amazon S3
11 - Ledger Databases
- Specialized databases for recording and maintaining tamper-evident and immutable history of transactions. - They use cryptographic techniques like hashing & chaining to ensure data integrity.
- Examples: Amazon QLDB, Azure SQL Ledger
12 - Vector Databases
- Used to store vector embeddings for fast retrieval and similarity search
- Great for search engines, LLM-based apps, semantic search
- Examples: Pinecone, Milvus
So - how many database types have you used so-far?
And are there any other types you've come across?
SportEnthusiast retweeted
Which architecture testing library should you use?
The two most popular options are:
- ArchUnitNet
- NetArchTest
I've tried both, and I like the latter more.
Here's an article if you want to learn more about NetArchTest for writing architecture tests: milanjovanovic.tech/blog/enf…
SportEnthusiast retweeted
If you were designing an API endpoint to transcribe an audio file, how would you do it?
Knowing how to solve this type of problem landed me a job a few years ago. So, this is also a great interview question.
Let's break down the problem:
- How long does transcription take?
- It could be minutes or even hours
- So, we have a long-running process
- Do you want to use a blocking API call?
- How will waiting affect the user experience?
I'll share two good solutions to this problem.
𝟭) POST + Polling
You'll expose a POST endpoint that accepts the request and returns a 202 Accepted response. It should also return a URI in the Location header. The client can use this URI for polling to get the status of the long-running task.
𝟮) POST + Real time notification
Same idea as above - POST request returns 202 Accepted. But now, instead of polling, we will rely on the backend to notify the client that that long-running task was completed. The notification could be SignalR (Web Sockets) or email.
P.S. If you liked this, consider joining The .NET Weekly - my newsletter with 44,000+ engineers that teaches you how to improve at .NET and software architecture.
Subscribe here → milanjovanovic.tech/?utm_sou…
How would you solve this problem?






















