|
MeruFM posted:requirejs is when you have a bunch of scripts loaded on a website and you want to guarantee your own poo poo will be run after whatever library this looks neat but the bower libs i use arent commonjs and using the browserify and vinyl plugins for gulp doesnt seem to be working right cant wait for es6 modules because holy poo poo this nodejs rabbit hole is complete poo poo
|
# ? Jun 19, 2015 19:53 |
|
|
# ? May 23, 2024 18:07 |
|
pointsofdata posted:Is there something like linq in c++? the STL is sort-of like linq but it doesn't quite work the same way. it still has all the same general functions though, has had since c++03, but it wasn't until lambdas showed up in c++11 that it started feeling like linq.
|
# ? Jun 19, 2015 19:55 |
|
pram posted:this looks neat but the bower libs i use arent commonjs and using the browserify and vinyl plugins for gulp doesnt seem to be working right if there was a flowchart, of all those different systems for dependancy management in js, every single one would end with "combine all files into single file", it seems
|
# ? Jun 19, 2015 19:55 |
|
iterators are kind of like IEnumerables but they have their own set of concepts. you can do really interesting things with them though, like you can write a function that wants to insert items into a container and then you can pass it an insertion iterator that has its own ideas about how items actually go into the container
|
# ? Jun 19, 2015 19:57 |
|
the hosed up thing is there apparently used to be a browserify-gulp plugin that would automatically do all this stuff, but npm blacklisted it? lmao. too useful i guess https://www.npmjs.com/package/gulp-browserify
|
# ? Jun 19, 2015 19:59 |
|
pram posted:this looks neat but the bower libs i use arent commonjs and using the browserify and vinyl plugins for gulp doesnt seem to be working right I had the same problem so I googled around and came up with this monstrocity for package.json code:
|
# ? Jun 19, 2015 20:28 |
|
pram posted:this looks neat but the bower libs i use arent commonjs and using the browserify and vinyl plugins for gulp doesnt seem to be working right node is garbage.
|
# ? Jun 19, 2015 20:29 |
|
pointsofdata posted:Is there something like linq in c++? https://cpplinq.codeplex.com/ although with concepts and ranges in the standard library (which may be in c++17) it will eventually be possible to compose STL algorithms in a way that will look a lot like linq
|
# ? Jun 19, 2015 20:29 |
|
MeruFM posted:I had the same problem so I googled around and came up with this monstrocity for package.json can i see your gulpfile?
|
# ? Jun 19, 2015 20:33 |
|
pram posted:can i see your gulpfile? code:
MeruFM fucked around with this message at 20:37 on Jun 19, 2015 |
# ? Jun 19, 2015 20:34 |
|
thanks
|
# ? Jun 19, 2015 20:36 |
|
it's not perfect. i think if the jade or sass is hosed up, it pops an error and you have to restart the server instead of auto-reloading the next time you change.
|
# ? Jun 19, 2015 20:39 |
|
what's a good book for learning modern c++ (I guess while also learning enough about "old" c++ to deal with real codebases)
|
# ? Jun 19, 2015 20:45 |
|
MeruFM posted:
|
# ? Jun 19, 2015 20:46 |
|
fleshweasel posted:what's a good book for learning modern c++ (I guess while also learning enough about "old" c++ to deal with real codebases) "the c++ programming language, 4th edition" is pretty good. it's huge, but if you're just coming into the language it's super useful. written by stroustrup himself
|
# ? Jun 19, 2015 21:42 |
|
welp lol @ awful app
|
# ? Jun 19, 2015 21:43 |
fleshweasel posted:what's a good book for learning modern c++ (I guess while also learning enough about "old" c++ to deal with real codebases) Dessert Rose posted:"the c++ programming language, 4th edition" is pretty good. it's huge, but if you're just coming into the language it's super useful. written by stroustrup himself This is excellent advice. I'll add that if you already know some C++ and just want to focus on the modern stuff, "Effective Modern C++" by Scott Meyers is pretty good too.
|
|
# ? Jun 19, 2015 21:58 |
|
is http://www.learncpp.com any good? seems like it's been kept up to date when the standards changed.
|
# ? Jun 19, 2015 22:09 |
|
|
# ? Jun 19, 2015 22:45 |
|
i want a thing thats just like two columns. on the left, bad c-like way of doing thing in c++, on the right, idiomatic c++ way of doing thing in c++
|
# ? Jun 19, 2015 22:50 |
|
Just browse http://en.cppreference.com/w/ at random. It is a good reference.
|
# ? Jun 19, 2015 22:57 |
|
Bloody posted:i want a thing thats just like two columns. on the left, bad c-like way of doing thing in c++, on the right, idiomatic c++ way of doing thing in c++ VikingofRock posted:"Effective Modern C++" by Scott Meyers is pretty good too.
|
# ? Jun 19, 2015 23:03 |
|
god dammit dessert you're almost making me want to learn cpp
|
# ? Jun 19, 2015 23:06 |
|
St Evan Echoes posted:god dammit dessert you're almost making me want to learn cpp right? i'm too easily influenced by people hyping things in here.
|
# ? Jun 19, 2015 23:06 |
|
St Evan Echoes posted:god dammit dessert you're almost making me want to learn cpp
|
# ? Jun 19, 2015 23:10 |
|
coffeetable posted:pick a project first then choose a toolset this. please don't do stupid crap that is better expressed in a higher level language in c++. like my coworker wrote a log parsing tool in cpp lol
|
# ? Jun 19, 2015 23:32 |
|
if you have to do any extensive string bashing, c++ is probably not the language for you, unless you really need to do that with a file that's enormous (tens-hundreds of gb) or performance/memory critical for example, a low-latency network message parser is probably well-suited for c++ for a variety of reasons
|
# ? Jun 19, 2015 23:36 |
|
well if you do crazy expression template poo poo writing a parser in c++ can be kinda neat as you can write your grammar directly, with lambdas directly inserted in the middle to perform actions when specific grammar productions are encountered:C++ code:
|
# ? Jun 19, 2015 23:54 |
|
Zlodo posted:well if you do crazy expression template poo poo writing a parser in c++ can be kinda neat as you can write your grammar directly, with lambdas directly inserted in the middle to perform actions when specific grammar productions are encountered: this is some stockholm syndrome poo poo
|
# ? Jun 19, 2015 23:58 |
|
ragel is really neat for writing parsers imo zlodos stuff is p much a DSL anyway so why not go whole hog?
|
# ? Jun 20, 2015 02:17 |
Has anyone here used boost::spirit? If so, how is it?
|
|
# ? Jun 20, 2015 04:06 |
|
shaggar was right
|
# ? Jun 20, 2015 11:59 |
|
VikingofRock posted:Has anyone here used boost::spirit? If so, how is it? i think i read some internal google thing that strictly prohibits any use of it cuz apparently it encourages completely unmaintainable horse poo poo
|
# ? Jun 20, 2015 15:26 |
|
VikingofRock posted:Has anyone here used boost::spirit? If so, how is it? I tried it a while ago but it was before c++11 and i remember that it was pretty awkward without lambdas its probably better now but meanwhile i tried https://github.com/ColinH/PEGTL and using nested templates to define rules instead of custom operators is really bad so i rolled my own expression template peg parsing thing (its not actually that hard) its probably better to use a real parser generator but i only use it to parse a simple thing for a tool and i dont mind having a slightly worse syntax but have more flexibility in the way i interface my parser with the rest of my code
|
# ? Jun 20, 2015 15:37 |
|
AWWNAW posted:i think i read some internal google thing that strictly prohibits any use of it cuz apparently it encourages completely unmaintainable horse poo poo you sure they werent talking about Go?
|
# ? Jun 20, 2015 15:39 |
AWWNAW posted:i think i read some internal google thing that strictly prohibits any use of it cuz apparently it encourages completely unmaintainable horse poo poo To be fair, you should probably take Google's C++ opinions with a grain of salt.
|
|
# ? Jun 20, 2015 20:22 |
|
VikingofRock posted:To be fair, you should probably take Google's C++ opinions with a grain of salt. you are asking me to trust the angry opinions of somebody who self-describes as a "<language> programmer"
|
# ? Jun 20, 2015 20:35 |
|
Valeyard posted:you sure they werent talking about Go? deep irony from captain python
|
# ? Jun 20, 2015 20:37 |
Brain Candy posted:you are asking me to trust the angry opinions of somebody who self-describes as a "<language> programmer" His writing is bad but his points are all good.
|
|
# ? Jun 20, 2015 21:57 |
|
|
# ? May 23, 2024 18:07 |
|
pram posted:deep irony from captain python it was a coin flip between saying python or go or anything else tbf
|
# ? Jun 20, 2015 22:00 |