Muhammad Maaz (@1devmaaz) header
Muhammad Maaz (@1devmaaz) profile picture

Developer, passionate about AI and startups. Sharing my journey and more high-quality content

Portfolio
Joined April 2021
Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)Photo by Muhammad Maaz (@1devmaaz)
Muhammad Maaz retweeted
Give your honest answer: How do you manage staying active on @X while also learning, building, and leveling up your skills? ๐Ÿค”
1
1
2
91
Muhammad Maaz retweeted
๐—”๐—น๐—ฝ๐—ต๐—ฎ-๐—•๐—ฒ๐˜๐—ฎ ๐—ฃ๐—ฟ๐˜‚๐—ป๐—ถ๐—ป๐—ด โ€” ๐— ๐—ถ๐—ป๐—ถ๐—บ๐—ฎ๐˜…, ๐—ฏ๐˜‚๐˜ ๐—ฆ๐—บ๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฟ ๐Ÿง  Minimax explores possible future moves to find the best decision. The problem? โš ๏ธ Game trees get huge. โ– ๐—”๐—น๐—ฝ๐—ต๐—ฎ-๐—•๐—ฒ๐˜๐—ฎ ๐—ฃ๐—ฟ๐˜‚๐—ป๐—ถ๐—ป๐—ด โ†ณ It skips branches that cannot possibly change the final decision. โ— ฮฑ (alpha) โ†’ best value MAX can already guarantee. โ— ฮฒ (beta) โ†’ best value MIN can already guarantee. โžข When ฮฑ โ‰ฅ ฮฒ, stop exploring that branch. That's the pruning. โ– ๐—ฆ๐—ถ๐—บ๐—ฝ๐—น๐—ฒ ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ โ†ณ Suppose MAX is already found: Left branch โ†’ 3 So: โ†’ ฮฑ = 3 Now MIN explores another branch: โ†’ Right branch โ†’ 2 MIN can only make this branch 2 or worse. โ˜ž MAX already has 3. So why explore the remaining moves? โ†ณ Prune. โœ‚๏ธ โ– ๐—ง๐—ต๐—ฒ ๐—ถ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜๐—ฎ๐—ป๐˜ ๐—ฝ๐—ฎ๐—ฟ๐˜ Alpha-beta pruning gives the same answer as minimax. It simply avoids computations that don't matter. โžค Better move ordering โ†’ more pruning. โžค Worst case โ†’ still exponential. โ˜… Minimax: Explore the possibilities. โ˜… Alpha-Beta: Explore only the possibilities that matter. โ˜› Would you be able to identify where pruning occurs in a game tree?
1
4
89
Muhammad Maaz retweeted
๐Ÿฆ€ Rust: The language that makes memory safety feel like a superpower ๐Ÿš€
1
1
4
175
Muhammad Maaz retweeted
Just 6 more to hit 1600 followers ๐Ÿš€
1
1
2
114
Muhammad Maaz retweeted
๐—ง๐˜„๐—ผ ๐—ฃ๐—ผ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐˜€ ๐— ๐—ฎ๐—ฑ๐—ฒ ๐—ฆ๐—ถ๐—บ๐—ฝ๐—น๐—ฒ ๐—ถ๐—ป ๐—ฆ๐—ฒ๐—ฐ๐—ผ๐—ป๐—ฑ๐˜€ ๐Ÿš€ โ†ณ Two Pointers is one of the most useful DSA patterns for efficiently solving array and string problems. โ†ณ Instead of checking every possible combination, you use two pointers that move through the data intelligently. โ– ๐—›๐—ผ๐˜„ ๐—ถ๐˜ ๐˜„๐—ผ๐—ฟ๐—ธ๐˜€ โ— One pointer starts from the left. โ— The other starts from the right. โžข Both pointers move based on the current values. โ– ๐—ฆ๐—ถ๐—บ๐—ฝ๐—น๐—ฒ ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ Find two numbers that add up to 10: Sorted array โ†’ [1, 3, 5, 7, 9] โ˜œ Left = 1 โ˜› Right = 9 1 + 9 = 10 โ˜… Found it immediately. โžข If the sum is too small โ†’ move the left pointer forward. โžข If the sum is too large โ†’ move the right pointer backward. โžข Keep moving until the pointers meet. โš  This works because the array is sorted โ€” that's what tells you which direction to move. Unsorted array = no shortcut. โ– ๐—ช๐—ต๐˜† ๐—ถ๐˜ ๐—บ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐˜€ โ†ณ A brute-force solution may check every possible pair. Two Pointers can often reduce the problem to O(n) time. โ˜… ๐—ง๐—ต๐—ฒ ๐—บ๐—ฒ๐—ป๐˜๐—ฎ๐—น ๐—บ๐—ผ๐—ฑ๐—ฒ๐—น โ†ณ Two pointers + smart movement = fewer unnecessary comparisons. โ†ณ This post covers the opposite-ends variant โ€” pointers starting apart and moving toward each other. Once you recognize the pattern, many array and string problems become much easier. โ€”โ€” What DSA pattern should I explain next? ๐Ÿค” โ€”โ€” ๐Ÿ”– Save for later. ๐Ÿ‘ค Follow me @1devmaaz, for more!
2
3
5
134
Muhammad Maaz retweeted
Quick question for tech Twitter/X ๐Ÿ‘€ What do you prefer reading? โ†ณ ๐Ÿงต Short, structured threads โ†ณ ๐Ÿ“ Longer, detailed posts Iโ€™m trying to figure out what format is better for sharing what Iโ€™m learning, building, and researching. What works better for you? ๐Ÿ‘‡
8
2
7
226
Muhammad Maaz retweeted
How does an AI find its way through a maze? ๐Ÿงต
1
3
7
98
Muhammad Maaz retweeted
Entrepreneurs, which matters more: โ€ข Great idea โ€ข Great execution
2
1
2
96
Muhammad Maaz retweeted
Just shipped a big update to my portfolio. ๐Ÿš€ โœจ What's new: โ€ข ๐Ÿ“Š Interactive metrics โ€ข ๐Ÿ› ๏ธ Scroll-based build timeline โ€ข ๐Ÿง  "How I Think" section โ€ข ๐Ÿ—๏ธ Live architecture views โ€ข ๐Ÿ“š Mini case studies for every project โ€ข โœ๏ธ Interactive system design whiteboard โ€ข ๐ŸŒ™ Refined dark/light experience Would love some honest feedback ๐Ÿ‘€ - What's your first impression? - Anything confusing? What would you improve? ๐Ÿ”— maaz.mikrotik.pk Feedback from engineers, designers, and recruiters is always appreciated ๐Ÿ™Œ
1
3
83
Muhammad Maaz retweeted
Why can't React talk directly to a database? Why do we always put an API in the middle? What's actually happening under the hood that makes an API necessary? ๐Ÿค”
1
3
73
Muhammad Maaz retweeted
Finally got verified on X. โ˜‘๏ธ Really happy to see that blue checkmark. ๐Ÿ‘‹ I'm Muhammad Maaz, a self-taught software engineer from Pakistan ๐Ÿ‡ต๐Ÿ‡ฐ who loves building things, breaking them, and figuring out how they work. I mainly share: โ€ข โš™๏ธ Software Engineering โ€ข ๐Ÿค– AI Core โ€ข ๐Ÿ’ผ Entrepreneurship โ€ข ๐Ÿง  Things I'm learning and building If any of those topics interest you, I'd love to have you along for the journey. ๐Ÿš€
1
1
3
108
Muhammad Maaz retweeted
What is Git, and why should every developer learn it? ๐Ÿค” Imagine spending hours building a feature... and then accidentally deleting your code. Yeah, not a great feeling. That's just one of the many problems Git helps solve. Let's get into it ๐Ÿ‘‡ ๐Ÿ“š Topics โžœ What is Git? โžœ ๐Ÿ•ฐ๏ธ Why was Git created? โžœ ๐Ÿ› ๏ธ What does Git actually do? โžœ ๐Ÿš€ Why should every developer learn Git? โ–  Collaboration โ–  Version Control โ–  Branches โžœ ๐ŸŽฏ Conclusion ๐Ÿ•ฐ๏ธ Why was Git created? Git was created by Linus Torvalds in 2005 to manage the development of the Linux kernel after the project stopped using its previous version control system. โญ Git is a Distributed Version Control System (DVCS).โญ In simple words: โžœ It helps you keep track of changes in your project. โžœ It stores your project's entire history. โžœ It makes collaborating, experimenting, and recovering old versions much easier. ๐Ÿ› ๏ธ What does Git actually do? Every time you make a commit, Git saves a snapshot of your project. Think of each commit as a checkpoint. If you ever break something, you can jump back to an earlier version instead of rebuilding everything from scratch. Every commit also gets a unique SHA hash. With that hash, you can: โœ… View a specific version of your project. โœ… Compare changes between commits. โœ… Restore or revert to an older version if needed. ๐Ÿš€ Why should every developer learn Git? ๐Ÿค Collaboration Say you're working with a team. ๐Ÿ‘‰ One person is building authentication. ๐Ÿ‘‰ Someone else is working on the dashboard. ๐Ÿ‘‰ Another developer is fixing bugs. Git lets everyone work on the same project without stepping on each other's code. When everything's ready, the changes can be merged together safely. ๐Ÿ“ Version Control Git shows you exactly who changed what and when. Made a mistake? It happens. You can compare versions, restore older commits, or undo unwanted changes without losing your whole project. ๐ŸŒฟ Branches Probably my favorite Git feature. Branches let you build new features without touching your main codebase. For example: You want to add an Edit Profile feature. โœ… Create a new branch. โœ… Build and test the feature. โœ… Merge it back into the main branch once it's ready. This makes it easy to experiment without risking your stable code. ๐Ÿ’ผ Career Whether you're a: โœ… Software Engineer โœ… Web Developer โœ… Mobile Developer โœ… DevOps Engineer โœ… System Administrator ...or anyone who writes code, You'll probably use Git almost every single day. It's become the standard tool for version control across the industry. ๐ŸŽฏ Conclusion Git isn't just another tool to add to your toolbox. It's one of the foundations of modern software development. The earlier you learn it, the easier it'll be to collaborate, manage projects, and build software with confidence. Now I'm curious... What's the first Git command you learned? ๐Ÿ‘€ Mine was git clone. ๐Ÿ˜„
1
2
7
269
Muhammad Maaz retweeted
If you had to become a software engineer again... But you could only use 3 resources for the next 12 months. โ€ข ๐Ÿ“š Books โ€ข ๐ŸŽฅ YouTube โ€ข ๐Ÿค– AI (ChatGPT, Claude, etc.) โ€ข ๐Ÿ’ป Documentation โ€ข ๐Ÿ› ๏ธ Building Projects โ€ข ๐Ÿ‘ฅ Open Source What would they be? ๐Ÿ‘‡
2
1
1
78
Muhammad Maaz retweeted
๐Ÿ›  Building SortIt โ€” SaaS for housing organizations. Stack: Next.js + Expo + Express/Prisma Learning a lot of stuff: JWT, RBAC, multi-tenancy, web sockets, push notifications, Stripe, uploads, reports...
2
1
4
147
Muhammad Maaz retweeted
You're only allowed to give one piece of advice to a beginner learning to code in the AI era. What are you telling them? ๐Ÿ‘‡
1
1
5
162
Muhammad Maaz retweeted
Which programming language would you recommend a beginner start learning DSA with? - Python - C/C++ - Java - JavaScript
1
1
2
353
Muhammad Maaz retweeted
I'm starting a series breaking down how AI actually works. We'll build the intuition behind the algorithms, one concept at a time. Here's everything we're going to cover ๐Ÿงต
3
1
2
99
Muhammad Maaz retweeted
What's the first thing you build: Frontend or Backend? ๐Ÿค” Why? ๐Ÿ‘‡
3
2
4
151
Muhammad Maaz retweeted
You don't learn programming by watching. You learn by breaking things.
2
2
7
123
Muhammad Maaz retweeted
If you want to become S-tier with software engineering, star + save these 15 GitHub repos:
14
86
1
774
71,321