|
Osmosisch posted:Basically only do a PhD if you are offered a project/subject that you won't get sick of by a supervisor that you get along with, and if you can afford to take a pay cut and probably also be self-supporting for a while after the project's pay ends and your thesis isn't finished. For your sanity you should look at it more it as a personal growth project rather than a career advancement thing. Extremely this. If you are genuinely interested in some research field, figuring out something sizeable and then being cited and seeing how people build on your research feels loving great. ------------------------- Kilometres Davis posted:I like the space either side. The asterix can hang. Peeny Cheez posted:Your brackets are wrong and I hope you get gonorrhea.
|
# ¿ Jul 18, 2018 11:02 |
|
|
# ¿ Apr 25, 2024 05:12 |
|
CRIP EATIN BREAD posted:djgpp? that's a name i haven't heard in ages. I've heard about it recently, because someone wanted a configuration define that removes all mentions of wchar_t
|
# ¿ Jul 24, 2018 16:13 |
|
Jabor posted:it really loving sucks Also lol no* other choice in academia. *For simple things you might actually transpile something into LaTeX
|
# ¿ Jul 26, 2018 08:26 |
|
I already know you work on XCode and think it's good, but somehow you keep surprising me with just how wrong you are
|
# ¿ Aug 5, 2018 13:37 |
|
|
# ¿ Aug 13, 2018 12:11 |
|
Boiled Water posted:today in terrible programming: my boss said to me: "hey boiled can we remove the square brackets from the json output? yeah the ones demarking arrays, our scandi customers are having trouble parsing them"
|
# ¿ Aug 15, 2018 11:49 |
|
Illusive gently caress Man posted:I usually interpret "c/c++" as "c++ but used really badly in a c-like way" IME it is always this.
|
# ¿ Aug 16, 2018 08:27 |
|
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 |
|
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 |
|
Sapozhnik posted:dont do c++ its super bad Sapozhnik posted:otoh c is fine for what it is
|
# ¿ Aug 31, 2018 08:17 |
|
DONT THREAD ON ME posted:yeah, it's a very different approach. my main worry is ambiguity, it seems like you could easily have two different types that each have a "foo" method with the same input/return types but wildly different semantics. it's like duck typing. Yup, that can definitely happen and it hurts to debug. OTOH the "ducktyping" nature of templates also means that different types from libraries that have never heard of each other can both be passed to a template as long as their "foo" method does conceptually the same thing In the end I firmly prefer the fact that I don't need to have things derive from Callable and can instead just provide them with operator(). ----edit---- Also a free advice: Use Catch for testing Xarn fucked around with this message at 13:43 on Sep 1, 2018 |
# ¿ Sep 1, 2018 13:23 |
|
Progressive JPEG posted:imo: Literally all of this is wrong. e: The one thing it gets right (avoid standard streams if possible), is still made wrong by recommending printf and its ilk. Xarn fucked around with this message at 07:39 on Sep 2, 2018 |
# ¿ Sep 2, 2018 07:36 |
|
DONT THREAD ON ME posted:interesting. I'm curious about the public/private/protected forms of inheritance, that's new to me. cheers! It is pretty much the same as the public/private/protected specifiers, but applied to the fact that the class is inheriting form a base. https://godbolt.org/z/lMdYJt DONT THREAD ON ME posted:what's wrong with smart pointers? I'm not really using them yet because I want to get experience with raw pointers but I figured modern C++ was all about the smart pointers. They are perfectly OK, when you use them correctly (e.g. shared_ptr tends to be overused as gently caress), but it is a lovely advice, because it leads to code like this code:
code:
|
# ¿ Sep 2, 2018 17:49 |
|
Every time I hear horror stories about old gcc or old VS, I am so glad I started doing C++ with VS2010...
|
# ¿ Sep 3, 2018 08:28 |
|
redleader posted:low level langs are great for all the pearl-clutching about "ownership" they bring out. just let your gc take care of memory, and let finalizers take care of any other resources. ez and objectively, inarguably correct I found them, the one person dumb enough to use finalizers that always fucks up everything.
|
# ¿ Sep 3, 2018 15:37 |
|
unique_ptr disallows copying, because it is, well, unique. It doesn't disallow moving, because that means ownership transfer -> you can return it from a function just fine.
|
# ¿ Sep 3, 2018 22:01 |
|
CRIP EATIN BREAD posted:its useful when you have something that will get called very infrequently, or is some sort of special endpoint that you dont want integrated into your applications. yup. At Job-2 we had 2 Lambdas that were run on a cron with long-rear end timer (one was ran hourly, the other once a day), whose job it was to run some queries against other AWS services and then optionally do some short-lived stuff. It was very needs suiting for that. We also had a crazy overengineered data pipelines on Lambda + S3 + SQS (I think?) so that the pipelines could in theory scale almost indefinitely. Last I heard, it never needed to serve more than 5 requests per second
|
# ¿ Sep 4, 2018 17:16 |
|
Bloody posted:huh, that is mildly interesting. are there any provisions to just schedule them to run every X time? ive run into some annoying cloud use cases like that in the past when i had an app deployed to azure and i wanted to just run some code every 5 minutes that'd do some loving around that involved my database For AWS Lambda it is super simple. When you set up a Lambda, you have to provide something called trigger -> when it should be launched, and what kind of data message should be passed to it when it starts (e.g. you can have a Lambda that runs when someone uploads a new file to an S3 bucket to a specific path). One of the possible triggers you can have is just scheduled notification.
|
# ¿ Sep 4, 2018 18:06 |
|
tef posted:git pull --autostash --rebase I knew about --rebase, but not about --autostash. Thanks!
|
# ¿ Sep 5, 2018 13:39 |
|
You should really learn enough to follow hackbunny's posts, they are amazing. (Assuming you care about Windows and systems programming )
|
# ¿ Sep 10, 2018 18:20 |
|
I know exactly 1 thing about games programming, and that is to use quaternions to avoid gimbal locks. The fact that this apparently puts me ahead of some professionals in the field (I still run into fps games that have this problem in TYOOL 2018) is weird
|
# ¿ Sep 10, 2018 18:36 |
|
terrible programmer disclosure: I know absolutely nothing about web and my knowledge of SQL ends at simple joins
|
# ¿ Sep 10, 2018 18:52 |
|
wchar was a mistake, but I have hopes for SG16
|
# ¿ Sep 11, 2018 07:19 |
|
That cookie preference poo poo broke down with "not all of our partners support https" for me.
|
# ¿ Sep 12, 2018 15:37 |
|
gonadic io posted:I don't think it's a typo just lovely wording Yeah this. Bloody posted:welcome to the real world where nothing is proofread My course materials were proofread. Because I paid my own money to have people do it
|
# ¿ Sep 17, 2018 18:13 |
|
Kevin Mitnick P.E. posted:i'm going to assume that you also think XML parsers should uncontrollably vomit everywhere when encountering \0 so i hate you now Kevin Mitnick P.E. posted:put a vptr in your struct and now it is a class Kevin Mitnick P.E. posted:rust is for brain damaged c++ people whove gotten indoctrinated that their #1 job is making the compiler happy. then "wow memory safety, amazing". meanwhile everyone else is How can you be so wrong?
|
# ¿ Sep 22, 2018 10:00 |
|
Shinku ABOOKEN posted:vscode is normie as hell and that’s why it’s the best one out of these
|
# ¿ Sep 24, 2018 12:18 |
|
AWWNAW posted:I use Fira code Also known as "going overboard" the font. And the <= ligature is super wrong.
|
# ¿ Oct 10, 2018 06:57 |
|
Well, they introduced JS so...
|
# ¿ Oct 24, 2018 22:26 |
|
schema-less formats are bad though
|
# ¿ Oct 25, 2018 18:57 |
|
fritz posted:i put an explicit "return" at the end of a c function with return type void You are in the right thread my friend.
|
# ¿ Oct 31, 2018 17:33 |
|
Jabor posted:often the things i need to debug involve them happening a whole bunch of times, but is only going wrong one of those times. so if you wanted to use a debugger, you'd either have to come up with a conditional breakpoint expression that only triggered in the failure case (and if you knew enough about the problem to be able to write that, you probably don't need to step through it in a debugger - often the problem only becomes apparent well after the point you want to start investigating values), or work through all the non-failing cases first before you get to the interesting one. Time Travel debugging. Just capture a trace of failed case and then replay it until you figure it out.
|
# ¿ Nov 17, 2018 14:44 |
|
Kevin Mitnick P.E. posted:"template metaprogramming is worth it to avoid a 16-byte overheard wrapping an int into an EpollFd" Unironically yes. Kevin Mitnick P.E. posted:POD doesn't apply to classes I think. that's the other difference between structs and classes Nah.
|
# ¿ Dec 3, 2018 09:33 |
|
gonadic io posted:working on it In our defense, we literally started in November and had a ton of other things that needed to be done before spinning up the environment.
|
# ¿ Dec 4, 2018 15:45 |
|
Kevin Mitnick P.E. posted:what got me started though, is when you were pearl clutching about an fd wrapper having a vtable and how it was so much better to write and maintain code to avoid that Agreed, the fact that there is a part that is slow means we can make every part slow. Have you heard the good word of Electron yet? -------------- gently caress that's a terrible start of new page Xarn fucked around with this message at 13:30 on Dec 5, 2018 |
# ¿ Dec 5, 2018 13:26 |
|
C++ standard library is good As long as you avoid std::string, formatting via streams, any attempts at i18n and other things I am forgetting right now.
|
# ¿ Dec 5, 2018 20:10 |
|
Real talk, I actually use Python a lot for scripting and when I don't care for efficiency, and I am completely ok with the fact that my scripts need orders of magnitude more cycles than a proper code would. At the same time, I make my living by writing software that needs high-throughput and already needs 70+ gigs of ram when using strongly typed ints that need only 4 bytes of memory, so yes, I am kinda sceptical of the "just 16 bytes overhead, who cares" approach.
|
# ¿ Dec 5, 2018 20:16 |
|
Kevin Mitnick P.E. posted:
Slowing down our code so that it takes twice as long in computation is literally adding an hour of runtime....
|
# ¿ Dec 5, 2018 20:39 |
|
Krankenstyle posted:lmao try doing string manipulation in latex I just had flashback to writing my thesis, make it stop.
|
# ¿ Dec 5, 2018 22:30 |
|
|
# ¿ Apr 25, 2024 05:12 |
|
Kevin Mitnick P.E. posted:ok. doesn't matter
|
# ¿ Dec 6, 2018 08:38 |