cuddle,
@cuddle@bsd.cafe avatar

There are just too many "problems" with C++. I wish modern C++ was something back in the day, so we won't have to suffer.

Libraries still uses iostream to display in stdout/stderr and it's certainly not my favorite. It's slow, bloated, and isn't even describable.

e.g.
std::cout << a.x << " " << a.y << " " << a.z << '\n';
vs
std::println("{} {} {}", a.x, a.y, a.z);

And here we come, standard of string

why:
std::string a = "Hello world";
if (a.find('r') != std::string::npos)
fmt::println("{}", pos);
else
fmt::println("not found");

and why not:
std::string a = "Hello world";
if (a.contains('r')) // Do member function overloading in the class
fmt::println("{}", pos);
else
fmt::println("not found");

why standard doesn't implement trimming functions for white spaces? why do I always have to rely on iterators for such things... (it's just feels like I've to type too much for a basic functionality)

and there's more but let's keep this post small.

jhx,
@jhx@bsd.cafe avatar

@cuddle
Sometimes when I need a break I go over and code something small with
It is quite relaxing to do something in much less lines of code.
I love C in generel - the simplicity is divine.
Just sometimes one needs a break 🙂
I lack C++ experience... the small things I do on C++ does not make me competent to give any kind of experience.

Chewing away on code can be daunting, that is for sure.

Maybe you need a break from C++ @cuddle ? 🙂

jcamos,
@jcamos@bsd.cafe avatar

@jhx @cuddle

Sometimes when I need a break, I have a glass of wine 🙂

It is quite relaxing and makes me laugh sometimes 😆

stefano,
@stefano@bsd.cafe avatar

@jcamos @jhx @cuddle considering I haven't been seriously coding in C for more than 20 years, I agree with @jcamos . I'd also point out that I'm sure that, at this point, I'd code better in C after a glass of good wine 😆

jhx,
@jhx@bsd.cafe avatar

@stefano @jcamos @cuddle
This is me with a cold sip of beer 😎
Maybe you can get back into C again in the future? 🙂

stefano,
@stefano@bsd.cafe avatar

@jhx @jcamos @cuddle Who knows. Maybe. My coding needs are quite simple at the moment so I'm not using C - for simple stuff I try to stick to Python and shell scripting.

jhx,
@jhx@bsd.cafe avatar

@stefano @jcamos @cuddle
Python is a wonderful language!
And of course, good ol' shell scripts (Mostly POSIX sh or Bash) 😉

zirias,
@zirias@techhub.social avatar

@jhx @stefano @jcamos @cuddle I'll just finish coding C++ for today. I'm not even sure it's C++ or just "whatever the f** I need to use for a with as much non-GUI stuff done in pure #C as possible" 😎

Not a huge fan of either, I never liked "syntactic whitespace", and observing the drama trying to get rid of python2 (impossible because breaking changes in 3 and upstreams unable to adapt their build(!) scripts) didn't really change my mind 😂

For me, it's #C. And, yes, shell script. Sometimes amazing what can be done, although I admit it isn't perfectly readable 🙈
https://github.com/Zirias/qxmoji/blob/master/scripts/emoji2cdef.sh

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • modclub
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • anitta
  • kavyap
  • GTA5RPClips
  • cubers
  • JUstTest
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • Leos
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines