Give it to me straight, forget about rust, which of these two is better for:
Game development
Malware development
Web development
Gui development
Server development
CRIME Shirt $21.68 |
CRIME Shirt $21.68 |
Give it to me straight, forget about rust, which of these two is better for:
Game development
Malware development
Web development
Gui development
Server development
CRIME Shirt $21.68 |
CRIME Shirt $21.68 |
rust
fpbp. this but unironically.
>game dev
bevy, amethyst, ggez
>malware dev
stdlib
>web dev
axum/actix for backend, dioxus/leptos for frontend
>gui development
dioxus, leptos, egui
>server development
stdlib
simple as.
C is better but u gotta watch out for undefined behaviour. Rust is decent but it's ugly syntax and awful compile times frick it over.
I seriously want to know. Why is C++ so hated?
Because it has packed in literally every feature anyone has ever asked for without bothering to question whether it was a good idea and results in pants on head moronic syntax where new features inspired by newer languages brings in more modern ideas of what syntax should look like but also not wanting to break older programs by removing more legacy syntax and the end result is just layers upon layers of inconsistent ugliness.
The language is also fundamentally a compromise, gaining popularity when corporations were sold on OOP for code reuse at a time when computers weren't fast enough to handle running purely abstracted code, so C++ you're supposed to be able to write OOP code but hack some low level shit in to it when the abstractions start causing your hardware to ignite.
Some people think the compromise was never worthwhile, others think the compromise isn't worth it now that if you need abstract code Java and C# run fast enough on modern hardware and if you're limited in resources then use C and git good.
Thanks for the explanation anon.
>Because it has packed in literally every feature anyone has ever asked for
Except splitting a string.
https://en.cppreference.com/w/cpp/ranges/split_view
It's finally catching up
Which snowflake C++ version do you need to use for this?
C++20, but I'm pretty sure you could get the same effect with std::string_view.
>computers weren't fast enough to handle running purely abstracted code
What does this even mean?
It means "time to pick up a dictionary"
Sounds like a (You) problem since you clearly don't know what a dictionary is or does.
>Because it has packed in literally every feature anyone has ever asked for
I very much disagree. They never implement anything that people actually ask for. Instead they implement feature that vaguely resembles the features people want, but are extreamly ugly and crippled to the point of near complete uselessness.
My go to example is "static if" vs "constexpr if".
https://yosefk.com/c++fqa/index.html
The suffering can only be experienced first hand.
This is true. At first glance, from the outside, C++ looks great, providing nearly everything you could ask for. This is probably why nocoders love C++ so much, they only participate in flamebait threads and maybe read an article on it from time to time without ever making anything.
When you actually go out and try writing a nontrivial program in C++, you will quickly understand everything.
>This is probably why nocoders love C++ so much
You have it all wrong, the nocoders love "modern" "languages" because they don't write code, they are too busy talking about the language "beauty"
Real productive programmers who have jobs use
>You have it all wrong, the nocoders love "modern" "languages" because they don't write code, they are too busy talking about the language "beauty"
Sums up people who jerk off "Modern C++" beautifully, why do you think you are disagreeing?
Lot of pitfalls when starting with this lang cause you manage RAM low level like C but can abstract too, most expect it to work like a higher level lang but its just a C superset with some abstractions.
Most of my problems where pointers.
But is the C++ programmers fault to know the do's and dont's.
You still really have to know how memory works and know how to manipulate it otherwise you'll end up in a mishmash of very tedious memory bugs.
Its totally not like Java or C#, javascript etc. where that is usually 95% taken care of for you.
I would advice first start C then go to C++.
Maybe take up some Assembly too cause you can "inject" assembly code in C/C++.
It's not a c superset.
In the literal and in the sense that you most likely can't take c codebase and turn it into c++ and easier than say d or zig or jai.
because they got filtered by it and are still seething about it
Because it has too many features that the most people don't use, but that enough people use that it causes problems every time you go outside your very narrow specialization.
It also keeps most of the baggage from c without the benefit of being a small "systems" language.
And because of that its entire build process suffers; from inconsistency to slowness.
>hated
is it though?
or are you thinking unemployed Ganker Cniles represents the average?
every single one shilling C itt are jobless hobbyists
An enormous amount of developers have spent decades on the C++ fail-trian, chasing fad after fad, anti-pattern after anti-pattern, suffering though millions of lines of incomprehensible garbage written by devs whose egos were too big for their coding ability, and all they have to show for it are bloated codebases with atrocious performance that take hours to compile and require more time spent on sorting out the build system than working on the code.
Meanwhile the C++ committee and last remaining hardliners are going into overdrive polluting the language with ever more esoteric and nigh-useless features which only exacerbate all existing issues without addressing underlying foundational problems.
There are more jaded, bitter C++ veterans out there than there are people in most nation states. Plus the internet is giving them a voice finally, over the Californian cottage book industry.
Based on industry standard
game dev : c++
malware : c++
web dev : -
GUI dev : c++
server dev : -
Agreed. Tack on embedded systems dev for a C / ASM entry and it's more complete.
Embedded also uses C++ now, so it's not a straight win for C there either.
>Embedded also uses C++ now, so it's not a straight win for C there either.
Hah, interesting
No it doesn't. Avionics is still mostly C.
>server dev
Apache technically counts as C.
However, I do think C++ has better libraries for server dev.
scripts - bash, awk
web - kotlin, js
db - sql
everything else - sepples
C for everything. Just get good
C++ should never be used for any purpose.
Don't use either of these for web dev.
C#
c++ for all of those except server development because what the frick even is that
"server side" and "middleware" are more appropriate terms.
Quads of truth. A perfect language doesn't exist, but it's the closest thing we have right now. OP also wouldn't have to worry about his malware compatibility.
>5555
this fricking Go spammer just. cant stop winning
Just started learning Go :3
witnessed. Actually my favorite language atm (I mainly do backend web dev)
If any of the following is important:
>portability
>best possible performance (while still being a machine-agnostic language)
>static guarantees (wcet, memory usage, etc.)
>widespread tooling support
then use C.
Otherwise, if none of those aspects are crucial, use an actual high level language, with garbage collection, rich runtime support and easier abstraction capabilities.
Sepples should never be used for a new project no matter what, anybody who still claims otherwise, especially after the latest gorillion incompatible standards, is either a nocoder or a clueless uninformed fanboy.
It only makes sense to use if you happen to work on an existing project written in Sepples, and even then, you should reflect long and hard whether the benefits of contributing to said project outweigh having to write C++.
Which platforms are yous struggling to port C++ code to?
C++
Go from what I've seen as trend
Typescript
Qt
Elixir
C# for everything
>game dev
jai
>malware dev
go
>web dev
go
>gui dev
tcl/tk
>server dev
c
>go for Malware dev
Explain
>game dev
C#/C++
>malware dev
C, C++
>web dev
HTML, CSS, JS
>gui dev
C++/C#
>server dev
Go
>>game dev
>C#/C++
You do realise that Unity is also written in C++, right?
>which of these two is better
O
That's called compiling.
C++
Go is the future
How so? I like Go, but gave it up because it seems to have no community, and no package manager.
>no package manager
?????
Game development: python
Malware development: python
Web development: python
Gui development:python
Server development: its also python
What C++ needs is a npm like package manager with header files only
people complain about bloat yet most enterprise projects are still using c++11
c++17 at most
boost is worse than a newer standard
not the place to ask this. everyone here is either trolling or computer illiterate (mostly the latter)
>Game development
C++
>Malware development
C++
>Web development
C++, but neither are good for this
>Gui development
C++
>Server development
C++
C is best for low-resource embedded applications (although there, it's competing with Verilog/VHDL running on FPGAs, or just ASICs); it's also the preferred language for APIs, regardless of what language the underlying library is in or what language is calling.
>Game development
C because "lowlevel" and fast
>Malware development
C because "lowlevel" and low resources, thus has small footprint
>Web development
html
>Gui development
C because OGL is C native
>Server development
C because of reasons stated above
C89 single-file header-only libraries. You literally can’t get that b***h not to compile. You can use the code anywhere with zero effort