|
Shaggar posted:altho that's some serious p-langer syntax so whatever it is probably cant even do transactions. the style is unusual for the language, but I think it might actually be c++ syntax. don't know any other language that has both arrows and double-colon operators. JewKiller 3000 posted:he does it once in a while to make the other posts more believable lol if you haven't realized shaggar is the best poster in yospos
|
# ? Aug 27, 2013 17:25 |
|
|
# ? Jun 1, 2024 06:34 |
|
Shaggar posted:oh, you mean tests on the proxy consumer. right. my bad. tef was right i think i need to go and sit down
|
# ? Aug 27, 2013 17:34 |
|
PleasingFungus posted:the style is unusual for the language, but I think it might actually be c++ syntax. don't know any other language that has both arrows and double-colon operators. perl5
|
# ? Aug 27, 2013 17:49 |
|
PleasingFungus posted:the style is unusual for the language, but I think it might actually be c++ syntax. don't know any other language that has both arrows and double-colon operators. it was C++ i've seen some poo poo
|
# ? Aug 27, 2013 19:24 |
|
Mido posted:i've seen some poo poo but enough about my posts
|
# ? Aug 27, 2013 19:24 |
|
https://github.com/joescodebox/simpleballs Python3 Pygame implementation of 4 balls bouncing around problems: needs to calculate when something is out of bounds immediately instead of on its turn to draw when things get fast it looks lovely (more lovely) vectors are implemented but collisions dont test the angle to determine where to reflect the objects to in short, this is a little work on the side every now and then and it really has made me realize i'm a poo poo programmer and need to keep working at it
|
# ? Aug 28, 2013 18:49 |
|
hubris.height posted:in short, this is a little work on the side every now and then and it really has made me realize i'm a poo poo programmer and need to keep working at it knowing is half the battle
|
# ? Aug 29, 2013 11:56 |
|
i'm too dumb to learn c++ right now so i'm going back to python, litearlly the worst grammer
|
# ? Aug 29, 2013 19:16 |
|
i switched to C++ for a project because python event driven gui is hell on earth now i know what doublecolonoscopy means also friend class. why does this exist
|
# ? Aug 29, 2013 19:30 |
|
i want to make an object oriented thingy for my resume but what if i really just want all globals?
|
# ? Aug 29, 2013 19:31 |
|
i've got no leg to stand-on since my preferred python has this implicitly and also has global
|
# ? Aug 29, 2013 19:33 |
|
MeruFM posted:i switched to C++ for a project because python event driven gui is hell on earth friend has saved my rear end when i've found myself in some awful contexts where i need circular class relationships ( ) but want to retain access control otherwise
|
# ? Aug 29, 2013 19:37 |
|
now if only i had real friends
|
# ? Aug 29, 2013 19:38 |
|
code:
dont do this
|
# ? Aug 29, 2013 19:52 |
|
singletons own in extremely rare circumstances
|
# ? Sep 2, 2013 16:58 |
|
Singletons Rule Everything Around Me
|
# ? Sep 2, 2013 17:42 |
|
im coding c for the first time in a while for a class and its p cool that you get to be so explicit with ur bits and stuff but hoooo boy its a pain in the rear end to do stuff that would take 5 seconds in python I started putting in a bunch of #define things to all the boilerplate stuff like for loops and traversing linked lists and then I realized I'm basically re-inventing lovely python
|
# ? Sep 2, 2013 17:45 |
|
Socracheese posted:I started putting in a bunch of #define things to all the boilerplate stuff like for loops and traversing linked lists and then I realized I'm basically re-inventing every p-lang
|
# ? Sep 2, 2013 17:58 |
|
except Perl 6 thats why its not a piece of poo poo (or finished)
|
# ? Sep 2, 2013 17:59 |
|
Socracheese posted:I started putting in a bunch of #define things to all the boilerplate stuff like for loops and traversing linked lists and then I realized I'm basically re-inventing lovely python because if there's one thing in c that's complicated and requires a lot of boilerplate code, it's for loops. C code:
SO. MUCH. BOILERPLATE.
|
# ? Sep 2, 2013 19:15 |
|
Socracheese posted:im coding c for the first time in a while for a class and its p cool that you get to be so explicit with ur bits and stuff but hoooo boy its a pain in the rear end to do stuff that would take 5 seconds in python if youre going to do that you might as well use something like cello and just go crazy with type classes. a c preprocessor with additional syntax for type classes would be p cool, actually.
|
# ? Sep 2, 2013 19:28 |
|
someone just needs to make a ruby that compiles all the way down to whatever the lowest thing is welp cya
|
# ? Sep 3, 2013 01:00 |
|
Singletons are so bad. I've had conversations with coworkers that basically ended with them saying "I just want one so I need a singleton" ...
|
# ? Sep 3, 2013 01:09 |
|
Doc Block posted:because if there's one thing in c that's complicated and requires a lot of boilerplate code, it's for loops. now iterate over elements in an array that came from another function so you don't know the sizeof
|
# ? Sep 3, 2013 02:06 |
|
Cocoa Crispies posted:now iterate over elements in an array code:
|
# ? Sep 3, 2013 02:10 |
|
Cocoa Crispies posted:now iterate over elements in an array that has nothing to do with him trying to eliminate the "boilerplate" of a for loop in C.
|
# ? Sep 3, 2013 03:49 |
|
Doc Block posted:that has nothing to do with him trying to eliminate the "boilerplate" of a for loop in C. it does if he's looping over an array he doesn't know the size of
|
# ? Sep 3, 2013 06:36 |
|
i think that's the function from which he got the array's problem though
|
# ? Sep 3, 2013 06:38 |
|
MeruFM posted:i switched to C++ for a project because python event driven gui is hell on earth really? i kinda liked wxpython last time i used it
|
# ? Sep 3, 2013 06:47 |
|
Stringent posted:it does if he's looping over an array he doesn't know the size of when did he mention traversing an array he doesn't know the size of? all he mentioned was using preprocessor defines on for loops and linked lists. he even said it turned out to be a dumb idea. and C code:
|
# ? Sep 3, 2013 10:39 |
|
Doc Block posted:when did he mention traversing an array he doesn't know the size of? all he mentioned was using preprocessor defines on for loops and linked lists. he even said it turned out to be a dumb idea. ya u document how the caller indicates the size/end of the array and after that it's on them if u try to scroll past the end of memory
|
# ? Sep 3, 2013 10:45 |
|
this is why when anyone says "oh yeah you can do useful poo poo in c" they are wrong and dumb and enjoy pain and all this stupid poo poo to make C behave like a normal language
|
# ? Sep 3, 2013 12:42 |
|
like C works great when you create a load of structures so you can use dot notation and stuff and basically make it like a normal language, apart from everything being really linuxy and stupid and lets stick some control characters all over the place to read and write poo poo thats a good idea. and all this reinventing the wheel to use list/etc style structures in a sensible way gently caress c basically
|
# ? Sep 3, 2013 12:44 |
|
Mido posted:use singletons everywhere
|
# ? Sep 3, 2013 13:11 |
|
Mido posted:use singletons everywhere Do this
|
# ? Sep 3, 2013 16:04 |
|
Mr SuperAwesome posted:like C works great when you create a load of structures so you can use dot notation and stuff and basically make it like a normal language, apart from everything being really linuxy and stupid and lets stick some control characters all over the place to read and write poo poo thats a good idea. c is portable assembly set your expectations accordingly
|
# ? Sep 3, 2013 17:00 |
|
Cocoa Crispies posted:now iterate over elements in an array #include <vector>
|
# ? Sep 3, 2013 17:16 |
|
code:
|
# ? Sep 3, 2013 18:40 |
|
you surely meant for( auto& thing : myList )
|
# ? Sep 3, 2013 18:45 |
|
|
# ? Jun 1, 2024 06:34 |
|
surely c++ is the same as c oh wait its std::poo poo
|
# ? Sep 3, 2013 18:49 |