[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]

There are literally no good reasons to use any other programming

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: 69
Thread images: 5

File: E9Mp2wb.gif (4MB, 720x480px) Image search: [Google]
E9Mp2wb.gif
4MB, 720x480px
There are literally no good reasons to use any other programming language other than C++.

All other languages are either:
Crippled
Have a GC
Need an extra program to run the compiled program
Slower
In the process of dying out
Not standardized (if that matters to you)
>>
>>61823741
C is portable to everything
C++ is only portable if you limit yourself to C++98 at a maximum.

/thread visitors
>>
>>61823741
>Inane bullshit
>>
>>61823764
C++ is portable to everything that matters for 98% of software development. For embedded fine, use C, but even then you still benefit from using C++ everywhere else because of the interoperability between the two.
>>
>>61823741
too bad there's only a dozen people on this plane who understand C++
>>
>>61823741
name that language!
>crippled
false
>has a gc
false
>need an extra program to run the program
that's called an interpreted language.
>slower
faster
>in the process of dying out
growing by the day
>not standardised
who fucking follows the c/c++ standards anyway?
>>
>>61823800
Isn't the c++ standard literally over 1000 pages long by now?
>>
>>61823786
It's portable if you limit yourself to C++98, yes.
>>
>>61823800
>who fucking follows the c/c++ standards anyway?
every non-microsoft compiler?
>>
>>61823741
good luck with your buffer overflows,, kid
>>
>>61823764
C *works* on everything.
That doesn't mean your *program* works on all platforms C runs on.
>>
>>61823859
Yes. ~1400 pages I believe not including the C++17 additions.

>>61823869
A quick search suggests C++14 compilers are available for Linux, Windows, MacOS, BSD, iOS and Android across x86, ARM and even RISC-V with C++17 compilers being available for most, if not all of those. You are talking out of your ass.
>>
>>61823904
Thank you for giving away that you have never programmed in modern C++. Stick to things you actually know something about.
>>
>>61823741
t. first semester CS student

In the real world, developer time is a significant expense and languages like Python that reduce this, used for non-computationally intensive tasks, are preferred.
>>
>>61823924
Additionally statistics from StatCounter say all but ~3-6% of clients accessing the web is running one of those operating systems. Once you factor in that the server market is effectively 100% Linux/BSD/Windows (according to W3Techs) you would easily arrive at that "98% of development" figure I threw out earlier.
>>
>>61823741
>Have a GC
Please explain how this is a bad thing. Not all programs are interactive.
>>
>>61823992
Pajeet,

I can write C++ in the same amount of time it takes for you to write Python.
>>
File: c-2.jpg (49KB, 600x381px) Image search: [Google]
c-2.jpg
49KB, 600x381px
>>61823859
>>
>>61824034
It's totally unsuitable for certain applications (games, real time systems), it tends to result in worse performance and higher memory usage then the micromanaged equivalent.

Besides, it's better to have the option to choose manually heap allocated vs. custom GC vs. regular GC vs. ref-counted as you can with C++ than be forced into using a GC for things it's unsuitable for.
>>
>>61823992
Now that Moore's law is dead, that is much less of an argument and there's a lot more reason to optimize for the hardware that is available.
>>
>>61824043
You ignore facts when they don't favor your argument, but that's the #1 reason companies would rather use something like Python over C++, because developer time is often the most significant expense. Deny it all you like and try to back it up with anecdotes, but you know it to be true.
>>
>>61824065
>It's totally unsuitable for certain applications
Like I said, not all programs fall into those categories (in fact, a minority do). You don't have to use the same language for every program you write.
>it tends to result in worse performance
That is simply false.
>higher memory usage
Maybe in startup, but for long-running programs, heap fragmentation is a bigger issue for overall memory usage, and a compacting GC solves that problem excellently.
>>
>>61823992
Personally I find Python increases the amount of time I have to waste because the dependencies are always fucked, the errors are always inscrutable and the code is more opaque than a tar pit on account of it's total lack of types. Also the lack of "compile time" checking of anything other than syntax makes finding bugs a waking nightmare.

For small things you're right, Python is vastly superior, but past a certain size it stops being significantly faster to develop.
>>
File: hmm.jpg (17KB, 294x296px) Image search: [Google]
hmm.jpg
17KB, 294x296px
>>61824145
>For small things you're right, Python is vastly superior, but past a certain size it stops being significantly faster to develop.

You're right. All those small time websites who run entirely on Python like Instagram and Pinterest don't know what they're doing. Neither does Google or Microsoft, who also use it frequently.

They should come to /g/ and listen to anons like you. You've got it all figured out.

Or maybe... maybe... you just suck at programming. Yeah, that seems more likely.
>>
>>61826232
>call to authority
>>
>>61823764

C++ is portable to everything supported by LLVM, which is everything that matters.
>>
>>61823764
Only C89 is portable. Later C revisions are as portable as C++.
>>
>>61823764
/thread
>>
>>61823741
looks like the people who have the actual programming skill have a different opinion seeing that there's a lot of software written in other languages
while you're stuck here wasting your time trying to look smart before a bunch of 15 year olds
>>
File: 1502058506126.jpg (97KB, 832x1235px) Image search: [Google]
1502058506126.jpg
97KB, 832x1235px
I like python
>>
>>61829371
It's decent.
>>
C++ is only good if you don't use its mentally retarded OO bullshit (or as little as possible because it's unavoidable at times).

OO is the worst thing that has ever happened to programming, and C++ takes even that bad thing and makes it 200x worse.

Use C.
>>
>>61829429
C++ has too many useful features.
>>
>>61824082

But that's an economical argument not a technological one.
Also, you do realize Py is good for calculations because it uses a wrapper around C++ and Fortran functions right.
>>
>>61829493
Name fucking one. You can't.

>MAH STRINGS
It really distresses me to know that today's "programmer" kids can't even figure out how to do strings in C well and have to rely on a shitty string library that doesn't give you precise control of their memory allocation.
>>
>>61829793
constexpr
example: I've been working on a microcontroller lately and I wanted to get uncached access to a particular global to make DMA transfers easier and faster. Only the main mirror of memory is cached according to the current MPU settings, so using any of the mirrors will allow uncached access. The toolchain I'm using won't let me link the global in uncached memory automatically, so C can't help me outside of twiddling the addresses manually every time I try to access this global. The solution was to make a constexpr reference to the global with the pointer arithmetic done once at compiletime so I can easily ensure all accesses go through the uncached mirror, and thereby bake the uncached address into the code.

There are plenty of C++ features that have practical applications even in low level environments. I have more control over memory allocation and access this way. I haven't used a shred of STL because I want that control.
>>
>>61829429
>claims OO is retarded
>uses structs as objects in C
Niggers get out, don't say shit if you know nothing about programming or computers.
>>
>>61829793
of course i need to write an extra script for every little piece of shit.
Learn assembly languages if you need to do hate on this stuff every fucking time.
>>
>>61826642
t. brainlet
>>
File: 22219440469.png (57KB, 327x337px) Image search: [Google]
22219440469.png
57KB, 327x337px
>>61829793
>do strings in C
>forget something small
>entire company at risk of being hacked by russian hackers
>>
>>61830046
But we need efficiency*

*O(n) strlen
>>
What's the best book for learning C++, Accelerated C++ or C++ Primer?
>>
>>61830046
>muh Russia boogeyman
>>
>>61830305
>printf(foo)
>suddenly Trump wins the elections
Still think C can't destroy the wolrd?
>>
>>61830471
>>printf(foo)>suddenly Trump wins the electionsStill think C can't destroy the wolrd?

Look, I don't like Trumpkike, but Hillary, even if we ignore the trail of bodies she left behind, wanted nuclear war with both Russia and Iran. You leftists are really mentally ill for supporting someone like that. By comparison, when Trump hinted he wanted war in Iran the right was against it.
>>
>>61823800
>that's called an interpreted language
Interpreted languages can be good when you run something like a webserver, because it may be cheaper to increase computing power than to increase the man-hours spent developing software, but please keep your interpreted garbage off of the end-user's machine.
>>
>>61830276
Please respond
>>
>>61830959
I'd answer if I knew.
>>
>>61830471
Donald is the best
I wanna suck his dick
I love his red face
And I love his juicy tits
>>
>>61830959
http://www.learncpp.com/
>>
>>61823741
Looks like a shill thread.
>>
>>61831103
*shill = bait
>>
>>61831123
&bait = shill
>>
>>61831134
>assigning to an rvalue
>>
>>61831167
>He didn't overload & and define &bait in the preprocessor macro in some other header file he included in some other header file that he included into his main file
>>
No reason to use c++ when python, nim, js... can be compiled down to c code.
>>
>>61831033
I prefer using books. Is that website really good?
>>
>>61831268
It's where I learned, and it's the best resource I've found, really
>>
>>61823764
Wrong.
>>
>>61831278
Does it teach the basics or advanced concepts as well?
>>
>>61831472
It'll leave you as an intermediate programmer, then you gotta read Andrei's book
>>
>>61831499
>Andrei's book
Is it sufficient to become an advanced C++ programmer?
>>
try doing assembler
>>
>>61831614
Pretty much. By the looks of it you probably will never make it though
>>
>>61831614
Nigga just read whatever book covers the subject and has good reviews, then go and do some actual programming, then go and read a book that tells you how to manage large projects and design good programs in C++. Your first book on the topic isn't the measure of how good you'll eventually get, it literally doesn't matter as long as it doesn't teach you bad design choices and covers all major things. And don't listed to the dumb shits who tell you you're not gonna make it, it's probably gonna take a couple months to finish the book, depending on how much time you have and how much you procrastinate, but you can do it, just don't give up when you get stuck.
>>
>>61831822
>>61831890
Alright, thanks anons.
>>
>>61823764
>C is portable to everything
In reality whereever you can use and not C++, C isn't a great choice to begin with and instead specialized DSLs and really restrictive languages should be used.
>>
>>61824034
>Not all programs are interactive.
But those interface to interactive software at some point (otherwise, computers would be pointless) and making them slow down and show loading screens.
>>
>>61829747
Actually it's around C and Fortran, not C++
Thread posts: 69
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.