Irfan.sol Profile picture
May 26 7 tweets 2 min read
Rust versus C++ is a recent trending topic for developers.

There are many similarities between Rust and C++, and many developers wonder which is better to use.

In this thread, we will be comparing Rust with C++
#100daysofcode rust vs c++
At a high view, C++ has a larger community, wider use cases, more frameworks, and is well recognized by any coding company. Rust, on the other hand, is better for safety, speed, and preventing incorrect/unsafe code due to its statically-typed features.
Rust is great at preventing data races that can lead to undefined behavior, whereas C++ cannot do this work for you and opens up vulnerabilities.
Automatic memory management in C++ has sacrificed memory safety, which is a notable disadvantage.

Rust uses a system of ownership, which enforces and improves its memory safety, which makes it better than C++.
Both the languages have smart pointers. Smart pointers are data structures that have additional metadata and functionalities.

Full build times are about the same for C++ and Rust, depending on how many templates a C++ project is implementing (more templates will be slower).
Most people who use both Rust and C++ say that Rust is easier to use due to its well-defined semantics and its ability to prevent unwanted/undefined behavior.
If you are learning rust, follow @demonicirfan. I post regularly about rust and related topics. Don't forget to retweet -

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Irfan.sol

Irfan.sol Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @demonicirfan

May 27
Learn about variables and Data types in rust

variables and data types in...
Variables -

By default, variables are immutable in rust ( you can not change the value of the variable if it is immutable ). Image
To make them mutable you can add `mut` in front of the variable name. Image
Read 11 tweets
May 25
What is Rust and why should you Learn Rust?

Here is a thread explaining rust as a language, what are its uses and why is it used.
What is Rust? Why should yo...
Rust is a statically and strongly typed systems programming language.

- Statically means that all types are known at compile-time
- Strongly means that these types are designed to make it harder to write incorrect programs.
Some of Rust’s use cases:

• Powerful, cross-platform command-line tools.
• Distributed online services.
• Embedded devices.
• Anywhere else you would need systems programming.
Read 8 tweets
May 25
How to Google Like a Pro

Googling is really important when you are a developer and you look for errors and bugs.

The right way to look for answers will help you a lot in programming

Thread 🧵👇
Use a minus ( - ) in front of a word to exclude it

It will narrow down your search by removing keywords after minus, "flutter app crashes on startup -android" will look only for solutions other than android.
Add a tilde ( ~ ) in front of a word to find synonyms

Adding "~" to a word will give you synonyms "~issue in flutter installation" will give you other synonyms like error and problem.
Read 7 tweets
May 20
Want to create a good-looking developer portfolio website?

Here are some resources ( free and open-source ) and tips that will help you create a portfolio 👇 🧵 How to create a developer portfolio website
Here is my portfolio - irfanasif.me

I created it when I was getting started with creating projects from scratch. This was the first project I did on my own from scratch. ✨
Now I am going to create a new portfolio as I am familiar with many libraries that can help me add better animations and interactions. If you want to create a similar one you can take the code from my Github. github.com/demonicirfan/i…
Read 15 tweets
May 18
Start making money as a freelance web developer 💸

If you are a developer who is learning, freelance is a great way to implement your learning skills and a chance to earn something on your own.

Thread🧵👇 Start Making Money as a fre...
The only skills required are HTML, CSS, and Javascript. Having a good knowledge of node and some Javascript libraries like react, and angular is also good.

5 Step guide on how you can start.

👇
1. Find your niche

First, you'll need to find a niche in which you are an expert. You should know a bit of everything and everything of a bit ( like you are skilled in react or express). It’s important to hone your skills and stay on top of current trends.
Read 9 tweets
May 16
You have created your profile on Fiverr. You have added 2, or 3 gigs and now you are waiting for your first client. Does this sound familiar to you?

Here is how you can get your first client on Fiverr and start earning 💸

Thread 🧵 #freelancing
These are some of the tried and tested methods of getting clients on Fiverr.

I myself followed this and got clients in the first month itself

👇
1) Ranking Your Gig on the First Page on Fiverr

When someone searches for a service he usually clicks on those profiles that appear on the first page itself ( take your example too how many times do you go to the second page of Google to look for a search result )
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(