Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
MononcQc
May 29, 2007


http://www.dangermouse.net/esoteric/piet.html

uses images as a programming language.

Adbot
ADBOT LOVES YOU

Nehacoo
Sep 9, 2011

all programmers are bad. some are just better at hiding it

GameCube
Nov 21, 2006

MononcQc posted:

http://www.dangermouse.net/esoteric/piet.html

uses images as a programming language.

:stare:

someday i'll do a project euler or something in this

or die

probably die

X-BUM-RAIDER-X
May 7, 2008

Ericadia posted:

So what specific things in C++ do people hate? Like, name the #1 thing that makes you wish you were dead:

doing more than a femtosecond of boost debugging

Pittsburgh Fentanyl Cloud
Apr 7, 2003
Probation
Can't post for 7 hours!

Nehacoo posted:

finally, my dreams have come true. 3 shitposts and im accepted in yospos

thanks obama

there are so many good posters here, it was a difficult decision to let you into the hallowed halls, good luck and god bless

FamDav
Mar 29, 2008

Zlodo posted:

this, this a million times
embrace the darkness of templates, stop caring about "omg this is crazy obfuscated poo poo" and go all out implementing crazy compile time algorithms and you'll enjoy c++ a lot

also generally stop caring about whether ur a bad programmer if u want to enjoy programming

c++ is the lisp of imperative programming languages, and that makes it awesome

GameCube
Nov 21, 2006

FamDav posted:

c++ is the lisp of imperative programming languages, and that makes it awesome

elaborate, please

Doc Block
Apr 15, 2003
Fun Shoe
it's poo poo

echinopsis
Apr 13, 2004

by Fluffdaddy
but like poo poo, essential 2 life

Squinty Applebottom
Jan 1, 2013

i guess my posting is essential

Flaming June
Oct 21, 2004

Not Al-Qaeda posted:

whats the best programming language????

G because then you can understand labview

oh who am i kidding no one understands labview

tef
May 30, 2004

-> some l-system crap ->

Ericadia posted:

So what specific things in C++ do people hate? Like, name the #1 thing that makes you wish you were dead:

as someone who has never really touched c++, but loathes it:

despite smarter programmers than me espousing the virtuous nature of generic programming, to me it's still "an octopus made by nailing legs onto a dog". unfortunately, we're still nailing legs to it, and in 20 years time it will be a millipede. nothing will ever be removed from c++, only added atop.

c++, as many of its apologists recite, is "pay for what you use", in the sense that if you are punished for exactly how many features of c++ you use. these payments compound. c++ is a way of sacrificing programmers for the holy grail of efficient code. additionally, every company that uses c++ will use a different subset, and if you're lucky, their own homebrew standard library.

if i had to pick two languages that were closest in culture to c++, it would be php and lisp.

php is ubiquitous, well known, and well established in industry. although some of the design decisions are beyond questionable, php, like c++ won't be going away any time soon. much of the code written in both is unsurprisingly crap, and the languages punish both the ignorant and the knowledgable.

lisp in that it's full of smug weenies, hilariously fragmented, with a bloodlust for meta-programming, outdoing each other with clever hacks, torturing the language into a useable one. why write something simple that works at a price of verbosity, when you can write something that superficially looks simple but is implemented in rube-goldberg fashion, at a price of sanity.


c++ is like a swiss army knife of power tools. it's impossible to use without harming yourself.

really, i feel too dumb to use c++.

tef
May 30, 2004

-> some l-system crap ->
c++ is a language in which every program is a horror, but you can write efficient horrors if you're a smart-rear end.

more like dICK
Feb 15, 2010

This is inevitable.

tef posted:

as someone who has never really touched c++, but loathes it:

so like most people who rant about c++

more like dICK
Feb 15, 2010

This is inevitable.
I feel like its still 1998 when I see posts like that :allears:

BONGHITZ
Jan 1, 1970

tef posted:


despite smarter programmers than me espousing the virtuous nature of generic programming, to me it's still "an octopus made by nailing legs onto a dog". unfortunately, we're still nailing legs to it, and in 20 years time it will be a millipede. nothing will ever be removed from c++, only added atop.



the millipede is the strongest animal

tef
May 30, 2004

-> some l-system crap ->

more like dICK posted:

so like most people who rant about c++

not living in jonestown

tef
May 30, 2004

-> some l-system crap ->

more like dICK posted:

I feel like its still 1998 when I see posts like that :allears:

unfortunately some people I know still maintain code as if it were 1998. we can't all be working on llvm and clang.

Pittsburgh Fentanyl Cloud
Apr 7, 2003
Probation
Can't post for 7 hours!

more like dICK posted:

I feel like its still 1998 when I see posts like that :allears:

c++ was a decade old at that point and people still knew it was poo poo

more like dICK
Feb 15, 2010

This is inevitable.

tef posted:

unfortunately some people I know still maintain code as if it were 1998. we can't all be working on llvm and clang.

Some programmers I know are severely underpaid and miserable, but that doesn't make it correct to say that all programmers are

tef
May 30, 2004

-> some l-system crap ->

more like dICK posted:

Some programmers I know are severely underpaid and miserable, but that doesn't make it correct to say that all programmers are

we're both talking about the games industry ?

Miley Virus
Apr 9, 2010

dumb c++ question: can i overload extraction/inserion operators for fstream as well as for regular iostreams?

e.g. can i have
code:
friend istream& operator>>(istream&, Class&);
friend ifstream& operator>>(ifstream&, Class&);
in a class? i figure since fstream inherits from iostream it would but im not really in a position to test it right now and i don't wanna waste my time if i cant

FamDav
Mar 29, 2008

Orbi posted:

dumb c++ question: can i overload extraction/inserion operators for fstream as well as for regular iostreams?

e.g. can i have
code:
friend istream& operator>>(istream&, Class&);
friend ifstream& operator>>(ifstream&, Class&);
in a class? i figure since fstream inherits from iostream it would but im not really in a position to test it right now and i don't wanna waste my time if i cant

yes

FamDav fucked around with this message at 06:22 on May 10, 2013

X-BUM-RAIDER-X
May 7, 2008
quantity of features doesn't make a language bad. c++ is actually very nice to use compared to any shitass p/e/l-lang.

Pittsburgh Fentanyl Cloud
Apr 7, 2003
Probation
Can't post for 7 hours!

OBAMA BIN LinkedIn posted:

quantity of features doesn't make a language bad. c++ is actually very nice to use compared to any shitass p/e/l-lang.

Ur very nice to use

X-BUM-RAIDER-X
May 7, 2008
i dont really know why but when i go back to using c++ after using a p-lang for like half a year, it feels solid and productive. gently caress p-langs only use them if you are writing something unimportant that noone cares about.

X-BUM-RAIDER-X
May 7, 2008
help, C++ is too expressive!! what am i supposed to do with all these features i dont need, its not like i can ignore them right??? i cant stand it when a language offers me an enormous wealth of potential unambiguous functionality!

echinopsis
Apr 13, 2004

by Fluffdaddy

OBAMA BIN LinkedIn posted:

help, C++ is too expressive!! what am i supposed to do with all these features i dont need, its not like i can ignore them right??? i cant stand it when a language offers me an enormous wealthy of potential unambiguous functionality!

youre caring about c++ a lil bit too much soz

EMILY BLUNTS
Jan 1, 2005

inline short if statements
align end brackets to start
deeper lines are 1 tab in

glad i don't code for a living or i'd be dead from nerd rage

pre:
void dickbuggeryfucksacks(int fuckbuckets)
{
   if(loldongs){no();ok();actuallyno();}
   else
      {
          fuckyou();
      }
}

EMILY BLUNTS fucked around with this message at 12:40 on May 10, 2013

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Resplendent Spiral posted:

inline short if statements
align end brackets to start
deeper lines are 1 tab in

glad i don't code for a living or i'd be dead from nerd rage

pre:
void dickbuggeryfucksacks(int fuckbuckets)
{
   if(loldongs){no();ok();actuallyno();}
   else
      {
          fuckyou();
      }
}

also, put some loving spaces in there -- they are cheap, and you don't have to ram everything together like that :corsair:

pre:
void dickbuggeryfucksacks(int fuckbuckets) {
    if (loldongs) {
        no();
        ok();
        actuallyno();
    } else {
        fuckyou();
    }
}
there you go :colbert:

X-BUM-RAIDER-X
May 7, 2008
the correct brace style, the brace style handed down to us by The Lord Your God, is:

C++ code:
if (...){
  ...
}

while (...){
  ...
}

for (...){
  ...
}

int func (...)
{
  ...
}

class myClass 
{
};

GameCube
Nov 21, 2006


:newlol:

GameCube
Nov 21, 2006

OBAMA BIN LinkedIn posted:

the correct brace style, the brace style handed down to us by The Lord Your God, is:

C++ code:

if (...){
  ...
}

while (...){
  ...
}

for (...){
  ...
}

int func (...)
{
  ...
}

class myClass 
{
};

mmm actually this is backwards

double sulk
Jul 2, 2010

K&R for C/C++
Allman for Objc method blocks, but K&R for inner conditionals
Allman for C#

all language syntaxes are ugly in their own way though

A Sloth
Aug 4, 2010
EVERY TIME I POST I AM REQUIRED TO DISCLOSE THAT I AM A SHITHEAD.

ASK ME MY EXPERT OPINION ON GENDER BASED INSULTS & "ENGLISH ETHNIC GROUPS".


:banme:
how can i accidentally redefine str

X-BUM-RAIDER-X
May 7, 2008
cool thing u might like to try

C++ code:
namespace std {
  namespace tr1 = ::boost;
}

EMILY BLUNTS
Jan 1, 2005

wow

apparently this is a style, too

pre:
while (x == y)
    {
    something();
    somethingelse();
    }
 
finalthing();

echinopsis
Apr 13, 2004

by Fluffdaddy

Resplendent Spiral posted:

wow

apparently this is a style, too

pre:
while (x == y)
    {
    something();
    somethingelse();
    }
 
finalthing();

this is better to read


but indentations are sufficient on they own. just use languages that use that

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

echinopsis posted:

this is better to read


but indentations are sufficient on they own. just use languages that use that

i like the funny symbols; they light up nice in my editor

Adbot
ADBOT LOVES YOU

double sulk
Jul 2, 2010

not that I can't afford it, but I hate the idea of trying to justify $70 for sublime text (not that you ever have to pay for it really)

  • Locked thread