#100DaysOfCode Day 1: Challenge Accepted:
Daniel Reis

Daniel Reis @danielhe4rt

About: A Developer who likes to teach.

Location:
São Paulo
Joined:
Sep 13, 2020

#100DaysOfCode Day 1: Challenge Accepted:

Publish Date: Feb 20 '23
71 12

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

Comments 12 total

  • Leonardo Rafael Dev
    Leonardo Rafael DevFeb 20, 2023

    OMG! Good luck in your journey cousin!

  • Gabriel Dias Mazieri
    Gabriel Dias MazieriFeb 20, 2023

    Great article! good luck on the challenge!

  • jatoledoz
    jatoledozFeb 20, 2023

    Good luck, mate! <3

  • Paulo Henrique - {PH}
    Paulo Henrique - {PH}Feb 20, 2023

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

  • Henri Borges
    Henri BorgesFeb 21, 2023

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

  • Beatriz Oliveira
    Beatriz OliveiraFeb 21, 2023

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

  • Seung-zedd
    Seung-zeddFeb 21, 2023

    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

  • Rachit Khurana
    Rachit KhuranaFeb 21, 2023

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

  • Chris Greening
    Chris GreeningFeb 21, 2023

    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

  • pavan kumar
    pavan kumarFeb 23, 2023

    Good luck buddy!

  • Saleumsack
    SaleumsackFeb 23, 2023

    Good luck mate

  • z2lai
    z2laiFeb 24, 2023

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

Add comment