|
I need to make a simple website that will be updated occasionally, is using Jekyll for this a good or bad idea?
|
# ? Aug 16, 2018 12:23 |
|
|
# ? Oct 11, 2024 10:29 |
|
I know some people who write modern idiomatic C++ and it is a terrifying sight to behold
|
# ? Aug 16, 2018 12:29 |
|
vodkat posted:I need to make a simple website that will be updated occasionally, is using Jekyll for this a good or bad idea? I did this for my website, seemed fine. Better than writing any loving html it was just about writing md files and putting them in the right place
|
# ? Aug 16, 2018 12:37 |
|
this miserable pile of angle brackets and colons allegedly wraps a c function that uses setjmp/longjmp for error handling (lol libjpeg) such that it throws c++ exceptions instead and im not sure if it’s terrible or awesome maybe “awful” in the olde English sense is the word I’m looking for
|
# ? Aug 16, 2018 12:39 |
|
TheFluff posted:this miserable pile of angle brackets and colons allegedly wraps a c function that uses setjmp/longjmp for error handling (lol libjpeg) such that it throws c++ exceptions instead and im not sure if it’s terrible or awesome quote:
|
# ? Aug 16, 2018 13:00 |
|
TheFluff posted:this miserable pile of angle brackets and colons allegedly wraps a c function that uses setjmp/longjmp for error handling (lol libjpeg) such that it throws c++ exceptions instead and im not sure if it’s terrible or awesome This is actually pretty neat. setjmp/longjmp error handling in stuff like lua means you need to compile these C libraries as C++ just so destructors run and that's a nightmare. That said, this code is deffo c++11/c++14. result_of_t was deprecated in c++17 and removed for c++20. A more "modern" code example would look like this. i probably hosed up the perfect forwarding for returning a value but who cares you get the idea
|
# ? Aug 16, 2018 14:24 |
|
Slurps Mad Rips posted:This is actually pretty neat. setjmp/longjmp error handling in stuff like lua means you need to compile these C libraries as C++ just so destructors run and that's a nightmare. That said, this code is deffo c++11/c++14. result_of_t was deprecated in c++17 and removed for c++20. this is me reading this:
|
# ? Aug 16, 2018 14:27 |
|
Slurps Mad Rips posted:This is actually pretty neat. setjmp/longjmp error handling in stuff like lua means you need to compile these C libraries as C++ just so destructors run and that's a nightmare. That said, this code is deffo c++11/c++14. result_of_t was deprecated in c++17 and removed for c++20. it's a few years old yeah. still, c++ generics just look like to me e: the same guy has also written a good deal of video dsp code that uses c++ templates in combination with assembler intrinsics and there's just something vaguely unsettling about that to me TheFluff fucked around with this message at 15:23 on Aug 16, 2018 |
# ? Aug 16, 2018 15:16 |
|
Symbolic Butt posted:this is me reading this:
|
# ? Aug 16, 2018 16:17 |
|
Symbolic Butt posted:this is me reading this:
|
# ? Aug 16, 2018 16:44 |
|
Symbolic Butt posted:this is me reading this:
|
# ? Aug 16, 2018 17:04 |
|
I might be permanently broken, I find it pretty readable. I'll admit I am pretty bad writing these things, didn't really have reason to practice too much.
|
# ? Aug 16, 2018 17:14 |
|
I understand what it is supposed to do (turning C-style "exception handling" into C++-style) I read 50 lines and I think I understand them but now my brain wants to turn off e: gently caress me now I'm reading jumpman.cpp prisoner of waffles fucked around with this message at 17:26 on Aug 16, 2018 |
# ? Aug 16, 2018 17:22 |
|
prisoner of waffles posted:I understand what it is supposed to do (turning C-style "exception handling" into C++-style) tbqh the idea of converting setjmp/longjmp to a c++ exception entirely within c++ without using ABI specific info is an insane idea and I never would have thought it was possible
|
# ? Aug 16, 2018 17:46 |
|
ctps: I'm plumbing the depths of a whole new universe of being terrible. Currently staring at the AWS console and wondering why I agreed to do devops stuff. Currently reading Aurora docs and still unsure why I would want this. I just want to set up a database server, geez.
|
# ? Aug 16, 2018 19:45 |
|
yeah so just set up a regular postgres rds instance and be done with it bring lots of money
|
# ? Aug 16, 2018 20:05 |
|
Sapozhnik posted:yeah so just set up a regular postgres rds instance and be done with it I can't get over how loving expensive aws is. Our staging really needs to be up in aws though, since we want to match prod as much as possible.
|
# ? Aug 16, 2018 20:34 |
|
my academic license for github expired and now microsoft is holding my codes ransom
|
# ? Aug 16, 2018 21:05 |
|
Modern C++ >= 14 is cool and good and makes C++ almost a higher level language. If the C++ is hard to read, it's probably because of either: 1) A garbage programmer who is probably afraid of function pointers and uses threads with callbacks for everything 2) A C programmer who treats C++ as just C with classes and doesn't use it like a modern language. 3) A P-Lang developer who never learned C and tries to treat C++ as a pure P-Lang. You need a C++ guy who knows C and P-Langs, and has embraced C++ as a modern language. Either way, modern C++ is cool and good. FlapYoJacks fucked around with this message at 21:48 on Aug 16, 2018 |
# ? Aug 16, 2018 21:45 |
|
the best way to ensure that you're using c++ properly is: don't.
|
# ? Aug 16, 2018 21:53 |
|
ratbert90 posted:Modern C++ >= 14 is cool and good and makes C++ almost a higher level language. counterpoint: no
|
# ? Aug 16, 2018 22:04 |
|
my new dog posted:my academic license for github expired and now microsoft is holding my codes ransom i use bit bucket for personal projects because
|
# ? Aug 16, 2018 22:09 |
|
is there a better way to json.loads() something and failover to an empty object if the string is bad than just a try catch? it seems hacky to have to trycatch for thousands of lines that might fail this json parsing step
|
# ? Aug 16, 2018 22:21 |
|
Lutha Mahtin posted:i use bit bucket for personal projects because though they throw in free ci now too which is pretty great.
|
# ? Aug 16, 2018 22:23 |
|
Lutha Mahtin posted:i use bit bucket for personal projects because Has anyone called it "butt bucket" yet?
|
# ? Aug 16, 2018 22:24 |
|
my new dog posted:my academic license for github expired and now microsoft is holding my codes ransom that's what you get for having secret projects. all public all the time baby
|
# ? Aug 16, 2018 22:26 |
|
Schadenboner posted:Has anyone called it "butt bucket" yet? brb gonna go push some code into the bucket
|
# ? Aug 16, 2018 22:30 |
|
i feel like there should be a json.get_object(json_string, default_value) method but maybe the json module is really excited about the dumb python institutionalized try/except ideology
|
# ? Aug 16, 2018 22:38 |
|
Corla Plankun posted:is there a better way to json.loads() something and failover to an empty object if the string is bad than just a try catch? you spent longer typing this than it would take to do what you suggest and move on
|
# ? Aug 16, 2018 22:45 |
|
if you want a language that retuns null for everything, try ruby
|
# ? Aug 16, 2018 22:47 |
|
Sapozhnik posted:counterpoint: no Sorry you don't understand a good programming language. FlapYoJacks fucked around with this message at 23:10 on Aug 16, 2018 |
# ? Aug 16, 2018 23:05 |
|
ratbert90 posted:Modern C++ >= 14 is cool and good and makes C++ almost a higher level language. you know i had sympathy for you once
|
# ? Aug 16, 2018 23:13 |
|
tef posted:you know i had sympathy for you once I like modern C++ and think it has it's place. I also really like Python and think it has it's place. PHP can go gently caress right off though.
|
# ? Aug 16, 2018 23:14 |
Corla Plankun posted:i feel like there should be a json.get_object(json_string, default_value) method but maybe the json module is really excited about the dumb python institutionalized try/except ideology thing is the alternative to try/except here is code:
|
|
# ? Aug 16, 2018 23:25 |
|
i did it after i posted about it i just wanted to talk about terrible programming in the terrible programming thread tef, gosh this dataset is literally going to fall into the except clause 60,000 times a day so it feels really bad to rely on catches here. i probably should just count brackets on any string that's max length but its not really worth the trouble, I was just wondering and honestly kinda surprised that json.loads doesn't have some kind of default argument like dict.get does
|
# ? Aug 16, 2018 23:49 |
|
ratbert90 posted:I also really like Python and think it has it's place. This is a bridge too far
|
# ? Aug 16, 2018 23:49 |
|
Corla Plankun posted:i did it after i posted about it i just wanted to talk about terrible programming in the terrible programming thread tef, gosh make a with block out of it so a) you don't have to look at it and b) the next poor bastard that has to look at it will have no loving clue what is going on
|
# ? Aug 17, 2018 00:13 |
|
Corla Plankun posted:i feel like there should be a json.get_object(json_string, default_value) method but maybe the json module is really excited about the dumb python institutionalized try/except ideology
|
# ? Aug 17, 2018 00:15 |
|
Corla Plankun posted:this dataset is literally going to fall into the except clause 60,000 times a day so it feels really bad to rely on catches here. exceptions are pretty cheap in python when compared with the rest of the intepretation, it's cool i mean, i prefer getattr(item, name, default) style stuff where possible, but 60k times a day is uh just over once a second, you have time
|
# ? Aug 17, 2018 00:35 |
|
|
# ? Oct 11, 2024 10:29 |
|
Finster Dexter posted:ctps: I'm plumbing the depths of a whole new universe of being terrible. Currently staring at the AWS console and wondering why I agreed to do devops stuff. Currently reading Aurora docs and still unsure why I would want this. I just want to set up a database server, geez. aws loving owns and paas is super cool and good
|
# ? Aug 17, 2018 00:54 |