I Typed All The Subtitles For the "C++ in 100 Seconds" Video

Gizmo j

Golden Member
Nov 9, 2013
1,329
362
136
I think I learn better when I'm reading out loud, instead of just reading or listening to something. Im trying to learn C++ so i typed all the subtitles of the video below so i can speak it outloud, and i just wanted to share it.

There was already auto-generated subtitles on the video, but I prefer to read at my own pace, and not quickly read the subtitles.

Also, the video is almost 3 minutes long, im not 100% sure why its titled "in 100 seconds", but i still enjoyed the video regardless.






C++ a statically typed compiled programming language famous for its widespread use and software infrastructure and infamous for its steep learning curve it was created in 1979 by Bjarne Stroustrup at attnt bell labs he was inspired by the object-oriented nature of simula but needed a language with a high performance of c and thus c with classes was born its designed as a super set of c which means that virtually any c program is also a valid c++ program but it also adds zero overhead abstractions such as object orientated patterns like polymorphism, encapsulation and inheritance today its used in a wide variety of systems with constrained memory demands like the unreal engine for AAA video games programs like adobe after effects that were used to edit this video databases like mysql and mongodb embedded systems like the display on your smart toaster and is used to implement much or our low-level infrastructure like language compilers and virtual machines its so popular because it provides low-level memory and hardware control like c but with high level abstractions like classes and smart pointers c++ makes it harder to shoot yourself in the foot but when you do it'll blow your whole leg off

To get started install a c++ compiler like gcc or clang then create a file ending in cpp include io stream from the standard library to handle input and output your code will start executing from the main function to print hello world we simply use standard character output followed by the bitwise shift left operator and a string literal we can get rid of this std though by adding a name-space to the top of the file now if we want to create a string variable we can do so by typing it as an array of characters however if we include string from the standard library we can use the string type instead the real game changer though is the fact c++ supports object-oriented programming with classes a class is just a blueprint for an object inside a class you can define attributes and methods that will be private by default or make them public by adding them under the public specifier its also possible to define methods outside the class definition using a double colon methods can also be defined multiple times with different parameters which is known as overloading and is a form of polymorphism in addition we can define constructors and destructors to run code when an object is created or destroyed classes also support inheritance allowing developers to more efficiently share logic throughout a program to instantiate an object type the class name followed by the name of your object and optionally any parameters for the constructor when it comes to memory we could manage everything manually with pointers and references however tools like unique pointer can get the job done in a way that's easier and safer by ensuring that only one object can be allocated to memory now to run your code open up the terminal and use a tool like clang plus plus to compile it.

This has been c++ in 100 seconds hit the like button and subscribe if you want to see more short videos like this thanks for watching and I will see you in the next one
 

balloonshark

Diamond Member
Jun 5, 2008
6,894
3,366
136
You didn't have to type it out. In the video's description near the bottom is a "show transcript" button. It isn't perfect but it would save you some work. I also found I can't just copy/paste the transcript without copying all the text on the page on PC. It shouldn't be too much trouble to single out just the transcript though. It's easier if you toggle off the timestamps.

c plus plus a statically typed compiled
programming language famous for its
widespread use and software
infrastructure and infamous for its
steep learning curve it was created in
1979 by bjorn strausstrup at at t bell
labs he was inspired by the
object-oriented nature of simula but
needed a language with a high
performance of c and thus c with classes
About C
was born it's designed as a superset of
c which means that virtually any c
program is also a valid c plus plus
program but it also adds zero overhead
abstractions such as object oriented
patterns like polymorphism encapsulation
and inheritance today it's used in a
wide variety of systems with constrained
memory demands like the unreal engine
for aaa video games programs like adobe
after effects that were used to edit
this video databases like mysql and
mongodb embedded systems like the
display on your smart toaster and is
used to implement much of our low-level
infrastructure like language compilers
and virtual machines it's so popular
because it provides low-level memory and
hardware control like c but with high
level abstractions like classes and
smart pointers c plus plus makes it
harder to shoot yourself in the foot but
when you do it'll blow your whole leg
off
to get started install a c plus compiler
like gcc or clang then create a file
ending in cpp include io stream from the
standard library to handle input and
output your code will start executing
from the main function to print hello
world we simply use standard character
output followed by the bitwise shift
left operator and a string literal we
can get rid of this std though by adding
a namespace to the top of the file now
if we want to create a string variable
we can do so by typing it as an array of
characters however if we include string
from the standard library we can use the
string type instead the real game
changer though is the fact that c plus
plus supports object-oriented
programming with classes a class is just
a blueprint for an object inside a class
you can define attributes and methods
that will be private by default or make
them public by adding them under the
public specifier it's also possible to
define methods outside the class
definition using a double colon methods
can also be defined multiple times with
different parameters which is known as
overloading and is a form of
polymorphism in addition we can define
constructors and destructors to run code
when an object is created or destroyed
classes also support inheritance
allowing developers to more efficiently
share logic throughout a program to
instantiate an object type the class
name followed by the name of your object
and optionally any parameters for the
constructor when it comes to memory we
could manage everything manually with
pointers and references however tools
like unique pointer can get the job done
in a way that's easier and safer by
ensuring that only one object can be
allocated to memory now to run your code
open up the terminal and use a tool like
clang plus plus to compile it
Outro
this has been c plus in 100 seconds hit
the like button and subscribe if you
want to see more short videos like this
thanks for watching and i will see you
in the next one
 
Last edited:
Reactions: nakedfrog

Gizmo j

Golden Member
Nov 9, 2013
1,329
362
136
The original video has this EXPLOSION sound that is very annoying before and after the parts where he explains how to code in c++.

I was trying to go to sleep listening to this but kept waking up due to the explosions, so in the video below I only kept the parts where he explains how to code in c++.

The other parts of the video that I removed is just him talking about c++ outside of coding.



 

lxskllr

No Lifer
Nov 30, 2004
59,088
9,505
126
You can write programs in notepad. You need to follow a tutorial and start writing simple programs.
 

Gizmo j

Golden Member
Nov 9, 2013
1,329
362
136
You can write programs in notepad. You need to follow a tutorial and start writing simple programs.

I have 3 programming goals:

1. Creating a website that showcases artist by their past age.
2. Randomizing a dictionary
3. Math app that records answers for parents
 

lxskllr

No Lifer
Nov 30, 2004
59,088
9,505
126
and you start those goals by first doing 'hello world'. Your goals can't be accomplished by starting with them. After 'hello world', you can build tiny pieces of your goal, then expand on it as you learn. It's done when it's done.
 
Reactions: igor_kavinski

Gizmo j

Golden Member
Nov 9, 2013
1,329
362
136
and you start those goals by first doing 'hello world'. Your goals can't be accomplished by starting with them. After 'hello world', you can build tiny pieces of your goal, then expand on it as you learn. It's done when it's done.

Microsoft visual studio already does "hello world" by itself.


 

lxskllr

No Lifer
Nov 30, 2004
59,088
9,505
126
Doesn't matter what someone(thing) else does. Someone else wrote Doom, That means fuck all for you writing programs. You learn, then you do. You learn by building small pieces and expanding on it.
 
Reactions: igor_kavinski

Chaotic42

Lifer
Jun 15, 2001
34,357
1,537
126
I have 3 programming goals:

1. Creating a website that showcases artist by their past age.
2. Randomizing a dictionary
3. Math app that records answers for parents

You can get #2 done pretty quickly as a C++ newbie. #1 is considerably harder and #3 is way more difficult if by "app" you mean anything with a non-trivial UI. You should be able to have a passable solution for #2 with a week or two of study. If Visual Studio is a bit much, maybe just try VS Code and a command line compiler.
 
Reactions: igor_kavinski

Red Squirrel

No Lifer
May 24, 2003
69,722
13,341
126
www.betteroff.ca
I practically did #2 for you a while back while I was bored.It wasn't the best way but it should at least give you something to work with. I was mostly doing it out of curiosity to see how viable it is to shove the entire dictionary inside a binary file. Turns out the compiler didn't like doing that. But it did work.
 

nakedfrog

No Lifer
Apr 3, 2001
61,111
16,546
136
Microsoft visual studio already does "hello world" by itself.


View attachment 122634
Great. So... what is each piece doing there? How does it work? Can you make it do something else?
There are books that are good for this, that talk about how it works, and has exercises for you to do to build on what you've read. There's probably some kind of YouTube video series too, the important part is to actually be putting together code, compiling/running it, making mistakes, and figuring out how to fix those mistakes. You'll never learn to code by not writing code.
 

sdifox

No Lifer
Sep 30, 2005
98,819
17,288
126
Holly fuck. Wants to be able to build a website, ignore every advice given by people that know how websites are built. You know WWW is older than you right?
 
Jul 27, 2020
24,126
16,829
146
I have 3 programming goals
You need to solve the "end of chapter" problems of a decent C++ book before you can even begin to attack these problems. If you are really serious, get Deitel's book. That's all you need to become a C++ pro. But remember, it will make you just a C++ pro. Not an application development pro because once you master C++, then you need to understand graphical user interface (GUI) development. Want your application to run on things other than Windows? You need to figure out cross platform development. Besides, #1 and #3 would be insane to do in C++, unless you love trying to bend your knees backward and doing things unconventionally.

If you did nothing but C++, you should be able to solve the dictionary problem in 3 to 6 months (quicker, if like me, you figure out how to copy paste code and just make tweaks to existing open source code to do what you need).
 

Red Squirrel

No Lifer
May 24, 2003
69,722
13,341
126
www.betteroff.ca
If you want to build a website learn HTML, CSS and PHP as a start. HTML/CSS kind of go together, and PHP is what generates the page at the server level, and talks to the database etc. You can also look at Javascript, or at least learn enough to get a basic understanding of it. That's client side too and used to add interactivity to the web page.

There's also stuff like React etc which is basically javascript libraries but I wouldn't even touch that until you understand the basics. I have not even touched it myself, I tend to go easy on the js on any site I build. Jquery is about as far as I've gone.

As an exercise do your dictionary program as a web page. Load a CSV of all the words and definitions into a MySQL database then write the php script to load a random one and display it. This would actually be fairly easy to do.

Actually, scratch everything I said for now, and get a machine to run Proxmox (virtualization software). Once you have a VM server you can create various Linux VMs to learn all of the above, and more. You'll only really need a single VM with Apache, php and mysql to get started. ChatGPT can walk you through how to set this stuff up.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |