[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I want to learn C++ but I'm having trouble breaking away

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 28
Thread images: 5

File: C3OwJcvWYAA5q4z.jpg (152KB, 1199x903px) Image search: [Google]
C3OwJcvWYAA5q4z.jpg
152KB, 1199x903px
I want to learn C++ but I'm having trouble breaking away from C#. tips for learning C++?
>>
Why would you want to learn c++? You're better off sticking with c#
>>
Don't learn this pajeet shit. Better learn Clojure or Rust.
>>
>>61671640
>that image is four years old now
>>
learn c first
>>
File: ss (2016-11-04 at 02.35.16).png (581KB, 973x696px) Image search: [Google]
ss (2016-11-04 at 02.35.16).png
581KB, 973x696px
>mfw Swift is still unusable on Linux or I'd be using that.

I just want to go back to making programs quickly in linux like I did in Windows.
>>
>tips for learning C++
1. Read some basic tutorial (like learncpp.com) to get some basic understating
2. Grind "Effective C++"
By grinding, i mean "keep rereading/googling every item until you understand it completely, after that go to the next item and repeat"
3. Grind "Effective Modern C++"

It would be painful, but it's the fastest way.
>>
>>61671715
And I still like it.

>>61671640
What do you want to make in it/why do you want to learn c++? Find one or a few projects to make in that direction and you'll learn from there on out :)
>>
>>61671830

For you.
>>
>>61671695
if you are going to stick to such satanist practices, at least stay barely useful and learn java... that C# is crap
>>
File: 1488220469550.jpg (60KB, 350x510px) Image search: [Google]
1488220469550.jpg
60KB, 350x510px
>tfw Ada is superior to them all
>>
>>61671640
>C++
>167cm, 46kg (101lbs)
>Java
>168cm, 54kg (118lbs)
The japs know the bloat.

>PHP
>155cm, 68kg (150lbs)

B L O A T
>>
>>61675815
Python is interpreted lang too, but it has lightweight stats. You think about that image too much.
>>
>>61671640
If you are on Windows and using VisualStudio, start with managed C++. Should be easier to learn than regular C++.
>>
Some people say to learn C first, others say that both languages are different and that learning C first would just create bad habits.
So should I learn C before C++? I just want to program C++ effectively, not to know the inner workings of my compiler or anything.
>>
File: nbrXPCl.jpg (18KB, 590x422px) Image search: [Google]
nbrXPCl.jpg
18KB, 590x422px
Just write a C++ compiler in C# and you will be good to go
>>
There are tons of resources out there.

I agree it may be to your benefit to get C down first.


fbfounder.Native
>>
I know when I picked it up, I found myself wanting to go back and learn C.


fbfounder.Native
>>
>>61676355
Learn C so that you can understand what your abstractions are really doing, don't learn C so you can write like C in C++.
>>
>>61677908
>write like C in C++.
What do they do differently that requires a different way of structuring programs?
Aside from OOP obviously
>>
>>61677957
Use RAII and avoid new/delete/malloc/free. Prefer container classes like std::string and std::vector over raw arrays. Use templates rather than void*. Try to avoid macros.
>>
>>61671640
Start hating yourself.
>>
>>61675951
But snek lang is cute!
>>
>>61678013
>try to avoid macros
THIS. You have no idea how much trouble they can cause
>>
>>61678234
#define class struct
#define protected public
#define private public

where is your god now?
>>
File: pooinit.jpg (127KB, 600x894px) Image search: [Google]
pooinit.jpg
127KB, 600x894px
>>61674908
Name 1 way java is better than c# (other than "more libraries")

Ill start
>.net framework
>dynamic variables
>choose bit and sign of variables
>generics

Java is c# but without the lower level functionality, a perfect language for pajeets.
>>
>>61678602
>>dynamic variables
this is a bad thing, should have said structs instead
>>
>>61678602
>beautiful and cleanly designed language
C# is a lot of things (including a better Java) but it isn't that.
Thread posts: 28
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.