DEV Community

Daniel Reis
Daniel Reis

Posted on • Updated on

#100DaysOfCode Day 1: Challenge Accepted:

We have to start learning somehow, so why not in a challenge?

Table Of Contents

1. Introduction

Hey everyone! I'm Daniel Reis, 23yo Brazilian, and I want to learn more about C++, Rust and Database Paradigms. But the thing is: I'm already developing stuff since 2011, when I first wrote my first line of code of PawnLang to run a GTA SA:MP server.

So you're should be thinking: why I entered on the #100daysofcode challenge? Very simple: I'm a newbie in a lot of technologies and concepts. I focused all this time to learn PHP and Laravel, Linux and other stuffs to get a job and enter the market but now I have a new challenge to move on.

So, even a "Senior" will be a "Junior" sometimes and it is more common than you think. Anyways, my focus will be learning everything and share it on my Twitter and try it to post daily here. Hope that I can finish the #100daysofdevto too LOL.

2. The Challenge

The #100daysofcode is a challenge using Twitter Hashtags to seal a commitment that you will study 1 hour every day for 100 days in a row.

The topic that you will study is up to you to decide. My idea here is to use it improve skills that I will need to the next steps on my carrier, such as:

  • Learn about Database Paradigms and create content about it;
  • Learn about C++ enough to read some huge projects on Github;
  • Learn about Rust because this lang will be the future.

With that, produce all the content possible for the community, focused on beginners friendly explanations and help many people as possible.

3. The Content

That's my first day of the challenge, and I learned the basics about C++ because it seems easier to learn than Rust in a first moment.

I had a tough time trying to build the environment on WSL because I was not event connected on the Linux env where the compiler was (total dumbass) but I saw the problem minutes after and it worked!

My goal to understand the structure of a "Hello World" program in minimal details was enough for today, so let me explain it for you.

C++ snippet with a Hello World skeleton

  • You can call libraries in cpp using #include <library_name>
  • Every C++ project HAS to be a function called main()
    • Main is a function, so don't forget the parenthesis ()
  • About the std::cout << "@danielhe4rtless" << std::endl;
    • std:: is a abbreviation to standard
    • std:: is a namespace, which means that inside the std:: has other functions awaiting to be used such as endl (end of line).
    • We have the << operator, that tells your compiler that it will read your line from the end of the line until the start.
    • We use the the semicolon ; to tell our compiler that this specific line of code is over and it can read the next one.
  • You can compile using a binary called g++ and you can install it easiliy on Linux.

4. Final Considerations

It was a long day streaming and learning concepts so if you liked my initiative please join me on the challenge! It will be a cool idea to be with more people through this process.

Don't forget to stay hydrated and see you tomorrow's daily post!

Follow me on Twitter: @danielhe4rtless
Follow me on Github: @danielhe4rt
Follow me on Twitch (daily livecoding sessons now in English): twitch.tv/danielhe4rt

Top comments (12)

Collapse
 
seungzedd profile image
Seung-zedd

good luck to your journey :), and i wanna give some adivce on your c++ if you don't mind:
if you use just one cpp file unless you make several files trying to link one another, just type 'using namespace std;' below and you don't need to type every std:: to ouput something in your buffer.
Anyway, hope you keep on your challenge <3

Collapse
 
chrisgreening profile image
Chris Greening

Best of luck on your challenge Daniel, can't wait to see what you build and learn! :D

Back in 2021 I started a #100DaysOfCode challenge and it went so well I just kept doing it for all 365 days of that year - it compleeeetely changed the course of my career and I learned so much from that time

Collapse
 
hnrbs profile image
Henri Borges

Congratulations on the initiative, it will bring great results! Good luck!

Collapse
 
dilutewater profile image
Rachit Khurana

Awesome, I am also doing 100 Days of Code challenge, currently on Day 52.

Collapse
 
beatrizoliveira profile image
Beatriz Oliveira

Yay! May this new journey be a very good one! 💜

Collapse
 
leonardorafaeldev profile image
Leonardo Rafael Dev

OMG! Good luck in your journey cousin!

Collapse
 
thebrown profile image
Saleumsack

Good luck mate

Collapse
 
gmdias727 profile image
Gabriel Dias Mazieri

Great article! good luck on the challenge!

Collapse
 
paulohgs profile image
Paulo Henrique - {PH}

I'm starting a coding challenge too, will be very good follow your steps in this journey!

Collapse
 
jatoledoz profile image
jatoledoz

Good luck, mate! <3

Collapse
 
pop1912 profile image
pavan kumar

Good luck buddy!

Collapse
 
z2lai profile image
z2lai

Excellent structure to your first Learning In Public article. Very concise and effective, inspires me to do the same. Thank you for sharing!