
Rust, Crypto, Blockchain Medium: https://xitter.cf/t.co/X2uoh7JVD0
Joined September 2023
- Tweets2.5K
- Following85
- Followers94
- Likes5.6K
He Boiled and Cut Open Cats alive —This Chinese Cop Must Face Justice! - Sign the Petition! c.org/95KwPDh7BP via @Change
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything"
Sign the petition
chng.it/V2p9rJgWGN
I created a new account where I will post solely about programming; I want to stay here to support animals.
xitter.cf/algomaster12
Switching from procedural programming to OOP can drastically improve data management
In my latest article, I explain how using classes like BankAccount helps organize complex systems better
💡 Check it out!
tomas-svojanovsky.medium.com…
1
2
324
💻 JavaScript Objects Made Easy!
Learn how to:
✅ Create objects the right way
✅ Access & modify properties
✅ Add dynamic functionality
✅ Handle quirks like stringified keys
Boost your JS skills today! 🚀
medium.com/p/d6ceeaa1a797
1
222
Master the art of corporate invisibility: How to look busy, stay unproductive, and still climb the corporate ladder🤣
medium.com/p/de8ec73ea4ae
1
2
199
Purpose is better than any drug you could ever think
If you know why you're doing something, that's all you need
🚀 HTTP/2 loads 100 tiles faster than HTTP/1.1—watch the demo and see the difference for yourself
A must-know for anyone diving into gRPC and modern protocols.
tomas-svojanovsky.medium.com…
1
185
🚀 Curious about gRPC and why it’s a game-changer for modern APIs?
In my latest article, I break down:
✅ How Protocol Buffers boost efficiency
✅ Smaller payloads = faster communication
✅ Cross-language support 🌐
medium.com/p/72ce2c0f34ac
Ever felt isolated in your career journey? I share my thoughts on how we balance work, passion, and mental health in my latest article.
tomas-svojanovsky.medium.com…
1
131
Why does Tit for Tat dominate in game theory? 🤔
Axelrod's famous tournaments revealed the secret to winning strategies:
✔️ Be nice
✔️ Forgive mistakes
✔️ Strike back when necessary
✔️ Stay clear & predictable
medium.com/p/0b374dcbcbea
131
🧠 How much control do you really have over your decisions?
Cognitive biases shape our choices every day—from Loss Aversion to the Spotlight Effect. Inspired by Thinking, Fast and Slow, I explored 21 biases that impact us all.
tomas-svojanovsky.medium.com…
112
Ever wanted to build a real-time chat client in Rust? 🦀
I just wrote an article on creating a TCP chat client with multithreading, non-blocking I/O, and message passing! 🚀
medium.com/p/4ad60c9c01a5
106
💡 💡 𝐅𝐞𝐞𝐥𝐢𝐧𝐠 𝐨𝐯𝐞𝐫𝐰𝐡𝐞𝐥𝐦𝐞𝐝?
Sometimes, the answer isn’t doing more—it’s working smarter by leveraging others' expertise.
My latest article dives into how shifting from a solo mindset to collaboration can supercharge your success.
tomas-svojanovsky.medium.com…
1
96
✨ 𝐒𝐢𝐦𝐩𝐥𝐢𝐟𝐲 𝐄𝐫𝐫𝐨𝐫 𝐇𝐚𝐧𝐝𝐥𝐢𝐧𝐠 𝐢𝐧 𝐑𝐮𝐬𝐭 𝐰𝐢𝐭𝐡 𝐭𝐡𝐞 ? 𝐎𝐩𝐞𝐫𝐚𝐭𝐨𝐫! ✨
Tired of repetitive match statements in your Rust code? Meet the ? operator – a powerful shorthand that makes error handling cleaner and more efficient.
In my latest article, I walk you through:
✅ The traditional match approach to error handling
✅ How the ? operator simplifies the process
✅ Why this little operator is a game-changer for Rust developers
1
93
🚨 Handling Errors in Rust: Panic vs. Result 🚨
Rust's error-handling system is one of the language's core strengths, but it can be tricky to navigate at first. There are two key approaches to dealing with errors in Rust: unrecoverable errors and recoverable errors.
In my latest article, I break down:
✅ How to use the panic! macro for unrecoverable errors
✅ How to handle recoverable errors with the Result enum
✅ Practical examples like file handling and index bounds checking
✅ Insights into methods like unwrap() and expect()
1
1
94
🦀 𝐖𝐫𝐢𝐭𝐢𝐧𝐠 𝐁𝐞𝐭𝐭𝐞𝐫 𝐑𝐮𝐬𝐭 𝐂𝐨𝐝𝐞: 5 𝐏𝐫𝐢𝐧𝐜𝐢𝐩𝐥𝐞𝐬 𝐟𝐨𝐫 𝐂𝐥𝐞𝐚𝐧, 𝐓𝐞𝐬𝐭𝐚𝐛𝐥𝐞 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬
One of the best ways to write software that's both easy to test and unlikely to fail is to focus on breaking down your code into small, reusable functions.
In Rust, following these principles can elevate your code quality:
1️⃣ 𝐒𝐭𝐚𝐭𝐞𝐥𝐞𝐬𝐬 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬: Wherever possible, keep functions stateless. They’re predictable, easier to test, and free from unexpected side effects
2️⃣ 𝐈𝐝𝐞𝐦𝐩𝐨𝐭𝐞𝐧𝐭 𝐒𝐭𝐚𝐭𝐞𝐟𝐮𝐥 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬: When a state is unavoidable, aim for idempotency. The result should remain consistent, even if the function is called multiple times with the same input
3️⃣ 𝐃𝐞𝐭𝐞𝐫𝐦𝐢𝐧𝐢𝐬𝐭𝐢𝐜 𝐁𝐞𝐡𝐚𝐯𝐢𝐨𝐫: Functions should always produce the same output for a given input. This makes debugging and testing straightforward
4️⃣ 𝐄𝐱𝐩𝐥𝐢𝐜𝐢𝐭 𝐄𝐫𝐫𝐨𝐫 𝐇𝐚𝐧𝐝𝐥𝐢𝐧𝐠 𝐰𝐢𝐭𝐡 𝐑𝐞𝐬𝐮𝐥𝐭: Functions that might fail should return a Result. This makes error states explicit and easier to handle
5️⃣ 𝐀𝐯𝐨𝐢𝐝 𝐍𝐮𝐥𝐥𝐬 𝐰𝐢𝐭𝐡 𝐎𝐩𝐭𝐢𝐨𝐧: Functions that may return no value should use an Option type instead of null. This reduces ambiguity and potential null reference errors
61
