|
MononcQc posted:hello thread, my latest book is out:
|
# ? Jan 9, 2019 20:19 |
|
|
# ? Apr 24, 2024 03:32 |
|
MononcQc posted:hello thread, my latest book is out: wrong thread, that's not terrible (nice, grats!)
|
# ? Jan 9, 2019 20:24 |
|
c++ report: - templates actually have pretty good support for higher kinded types! code:
- I totally get why C++ programmers are skeptical about Rust; Rust really doesn't give you the same power C++ does unless you're using unsafe, and unsafe Rust is harder to get right than C++. - I really don't like how C++ does OOP. I'm not going to say it's bad or wrong but it's definitely confusing and ugly. Stuff like not having explicit interfaces or abstract classes so instead you have to just design your class in a specific way to enable these behaviors (virutal/pure virtual member functions, etc). I think this approach ultimately gives you more power, but reading code is a lot nicer when I have ways of marking things as abstract. - I need to stop distracting myself with the siren song of templates and start focusing on the stuff that matters (move semantics, pointers, etc). Anyhow I've got Accelerated C++, Bjarne's C++ 11, and Scott Meyers Effective Modern C++. I'm working through the Skeina algorithm design manual and I'm going to keep doing this until I get a job that I want.
|
# ? Jan 9, 2019 21:40 |
|
no! don't do it! don't get a c++ job! you will regret this! what the gently caress would you ever want to do that requires that? having said that, the stroustrup c++11 book is pretty good. i mean, it's still a dry book describing a language, but I don't remember it being a chore to read through. and it's pretty much the most detailed and complete source i've found short of reading the standard itself. modern c++ is also good when it comes to putting all those pieces together in non-obvious ways. good choices all-around
|
# ? Jan 9, 2019 21:55 |
|
Deep Dish Fuckfest posted:no! don't do it! don't get a c++ job! you will regret this! what the gently caress would you ever want to do that requires that? $$$ majority of people are too stupid to learn, let alone program c++, and you should make more scratch than some ruby nerd making CRUD TODO apps with bootstrap themes
|
# ? Jan 9, 2019 22:25 |
|
Deep Dish Fuckfest posted:no! don't do it! don't get a c++ job! you will regret this! what the gently caress would you ever want to do that requires that? basically i'm very bored with web dev, and the only way to make web dev more interesting (for me) is to focus on large scale distributed systems stuff, which i don't really want to do. i've been doing rust for 3-4 years and really enjoying it, so i want to do lower level stuff. and honestly i'm really really enjoying it. things that have always confused me about computers are finally becoming clear. and at this point i'm mostly learning from cppreference.com and not struggling so perhaps c++ is my destiny. DONT THREAD ON ME fucked around with this message at 22:28 on Jan 9, 2019 |
# ? Jan 9, 2019 22:26 |
|
DONT THREAD ON ME posted:basically i'm very bored with web dev, and the only way to make web dev more interesting (for me) is to focus on large scale distributed systems stuff, which i don't really want to do. i've been doing rust for 3-4 years and really enjoying it, so i want to do lower level stuff. perhaps c++ is my destiny. i have embedded arduino no-std no-heap no-nothing stuff in rust, what do you mean "low level"?
|
# ? Jan 9, 2019 22:27 |
|
gonadic io posted:i have embedded arduino no-std no-heap no-nothing stuff in rust, what do you mean "low level"? sorry, i didn't mean to imply rust isn't low level. it's just a matter of employment. if i could get a job writing rust (at a non crypto startup) i would, but the few legit rust jobs that exist mostly want people who are also good at C and C++. also after doing rust for as long as i have, i'm still very very shaky on unsafe rust, despite working pretty hard at learning it. i've decided that i need to get more experience with manual memory management because i honestly don't really understand what rust is doing with memory both at compile and runtime. working with c and c++ has helped a lot. DONT THREAD ON ME fucked around with this message at 22:33 on Jan 9, 2019 |
# ? Jan 9, 2019 22:30 |
|
DONT THREAD ON ME posted:basically i'm very bored with web dev, and the only way to make web dev more interesting (for me) is to focus on large scale distributed systems stuff, which i don't really want to do. i've been doing rust for 3-4 years and really enjoying it, so i want to do lower level stuff. good on you man. solving new problems is always a lot more fun/exciting, plus a lot better on resources. sick and tired of everything that runs needing gigs of RAM for no good reason.
|
# ? Jan 9, 2019 22:31 |
|
DONT THREAD ON ME posted:sorry, i didn't mean to imply rust isn't low level. it's just a matter of employment. if i could get a job writing rust (at a non crypto startup) i would, but the few legit rust jobs that exist mostly want people who are also good at C and C++. not being a dick but have you looked? alternatively maybe it's different in london bcause im in the same boat im sick of scala, i applied to 5 companies whose job descriptions mentioned rust that weren't c++ required jobs (some were half python for example, some were independent tooling instead of large apps) and that was just one evening of looking. e: also non-crypto i should have said
|
# ? Jan 9, 2019 22:33 |
|
gonadic io posted:not being a dick but have you looked? alternatively maybe it's different in london recall that i don't have a degree and i really need to rely on my proven skills for getting a decent job. i have nothing low level to put on my resume, so i don't feel very competitive for these jobs. i'm just a web dev hopping onto the latest hipster lang. i feel like having c/c++ skill not only makes me a more compelling candidate, it also opens me up to taking a c++ job, which are far more plentiful. i also feel like i've hit a learning plateau with rust and learning c++ has really helped. if i manage to score a good rust job, i'll be thrilled, but i'd also be thrilled with a good job doing c++ so why limit my options? DONT THREAD ON ME fucked around with this message at 22:48 on Jan 9, 2019 |
# ? Jan 9, 2019 22:43 |
|
DONT THREAD ON ME posted:i think what isn't coming across is that i don't feel very competitive for those jobs. i know rust just fine but i'm poo poo at 'low level' programming and i need to fix that before i can snag a job doing low level stuff. i feel like i've hit a plateau with rust so i'm focusing on c++ for a while. Oh that makes more sense. I'm hoping to overcome that myself with copious amounts of github rust code Also I have good academic creds which also helps ngl
|
# ? Jan 9, 2019 22:47 |
|
DONT THREAD ON ME posted:Anyhow I've got Accelerated C++, Bjarne's C++ 11, and Scott Meyers Effective Modern C++. I'm working through the Skeina algorithm design manual and I'm going to keep doing this until I get a job that I want. Apologies if you explained this earlier as my eyes glaze over when I scroll past C++ posts, but do you have a specific project you're thinking of as you go through these C++ books or are you just reading them front to back? I was thinking the other day I should learn C++, mainly because I never really learned how to C++ and I'd love to have a more low-level lang under my belt that isn't Go.
|
# ? Jan 9, 2019 23:19 |
|
Finster Dexter posted:Apologies if you explained this earlier as my eyes glaze over when I scroll past C++ posts, but do you have a specific project you're thinking of as you go through these C++ books or are you just reading them front to back? Right now I'm going through the Algorithm Design Manual because it's a weakness for me, especially in interviews. C++ is a good languages for doing algorithms/data structures so that's working out. When I get bored I'll probably switch to "The Linux Programming Interface" which i've used a little bit in the past.
|
# ? Jan 9, 2019 23:24 |
|
DONT THREAD ON ME posted:c++ report: code:
|
# ? Jan 9, 2019 23:32 |
|
you could always see if Ciaphas’ workplace is hiring, they use C++, I think they’re up to C++11 now and they’re in Las Vegas!
|
# ? Jan 9, 2019 23:36 |
|
Volte posted:i'm dubious of referring to uninstantiated templates as "types", but you can use decltype to infer the return value of the function argument and make it work with any callable type. i simplified things a bit and changed the signature to accept a const reference (since calling map shouldn't be mutating anything). cool! i'll give that a shot. I agree that unique_ptr does not obey the functor laws, but I'm curious about what laws do apply and how you could leverage those laws usefully through a typeclasses hierarchy. basically, smart pointers are (kinda) monads. are they a special case of monad? can we do something useful with that information? idk. DONT THREAD ON ME fucked around with this message at 23:42 on Jan 9, 2019 |
# ? Jan 9, 2019 23:38 |
|
DONT THREAD ON ME posted:- I totally get why C++ programmers are skeptical about Rust; Rust really doesn't give you the same power C++ does unless you're using unsafe, and unsafe Rust is harder to get right than C++. personally, I find it a relief when I get to use simpler languages, so that sounds like a plus to me. I really should look into rust DONT THREAD ON ME posted:- I really don't like how C++ does OOP. I'm not going to say it's bad or wrong but it's definitely confusing and ugly. Stuff like not having explicit interfaces or abstract classes so instead you have to just design your class in a specific way to enable these behaviors (virutal/pure virtual member functions, etc). I think this approach ultimately gives you more power, but reading code is a lot nicer when I have ways of marking things as abstract. psst hey mate hey *opens trenchcoat*
|
# ? Jan 10, 2019 00:01 |
|
DONT THREAD ON ME posted:- I really don't like how C++ does OOP. I'm not going to say it's bad or wrong but it's definitely confusing and ugly. Stuff like not having explicit interfaces or abstract classes so instead you have to just design your class in a specific way to enable these behaviors (virutal/pure virtual member functions, etc). I think this approach ultimately gives you more power, but reading code is a lot nicer when I have ways of marking things as abstract. I think it's specially bad because C++ is just so... leaky? my experience is that encapsulation is a far unreachable ideal in production C++, so in the end you get all the usual annoyances of OOP with none of the benefits
|
# ? Jan 10, 2019 00:10 |
|
Symbolic Butt posted:I think it's specially bad because C++ is just so... leaky? my experience is that encapsulation is a far unreachable ideal in production C++, so in the end you get all the usual annoyances of OOP with none of the benefits yeah that's definitely in line with my limited experience. i really haven't focused much on the OOP aspects yet, but virtual in particular doesn't really work the way I want. I'm more interested in static polymorphism than runtime polymorphism, so I don't need virtual dispatch, but I need to mark the method as virtual if I want the compiler to make sure my implementor actually implements the interface. hackbunny posted:personally, I find it a relief when I get to use simpler languages, so that sounds like a plus to me. I really should look into rust I wouldn't necessarily call Rust simpler. It's certainly smaller, and it's designed to be easier to use, but the relationship between the code you write and the actual assembly generated is a lot more complicated. it's harder to reason about how rustc is going to gently caress with your code. (at least, it is to me, as i've mentioned i'm still learning). quote:psst yeah something like this would go a long way imo. you can still use the existing class system if you really want to customize behavior but get the benefit of clearer code. DONT THREAD ON ME fucked around with this message at 00:26 on Jan 10, 2019 |
# ? Jan 10, 2019 00:20 |
|
hackbunny posted:personally, I find it a relief when I get to use simpler languages, so that sounds like a plus to me. I really should look into rust nobody wants to see your open std
|
# ? Jan 10, 2019 00:42 |
|
MononcQc posted:hello thread, my latest book is out: nice1
|
# ? Jan 10, 2019 02:07 |
|
DONT THREAD ON ME posted:recall that i don't have a degree and i really need to rely on my proven skills for getting a decent job. i have nothing low level to put on my resume, so i don't feel very competitive for these jobs. i'm just a web dev hopping onto the latest hipster lang. i feel like having c/c++ skill not only makes me a more compelling candidate, it also opens me up to taking a c++ job, which are far more plentiful. your track record is more than enough at this point. I don't have a bs cs either and look where im at as a filthy . if you find the right companies they'll respect your self starting attitude and everything you've taught yourself
|
# ? Jan 10, 2019 06:26 |
|
jit bull transpile posted:your track record is more than enough at this point. I don't have a bs cs either and look where im at as a filthy . if you find the right companies they'll respect your self starting attitude and everything you've taught yourself thanks
|
# ? Jan 10, 2019 06:54 |
|
jit bull transpile posted:your track record is more than enough at this point. I don't have a bs cs either and look where im at as a filthy . if you find the right companies they'll respect your self starting attitude and everything you've taught yourself I submitted a resume and application for an Apple job and never got a reply
|
# ? Jan 10, 2019 09:11 |
|
AWWNAW posted:I submitted a resume and application for an Apple job and never got a reply apple's recruiters are as dumb as any other recruiters. it's the major hurdle to clear tbh. mine came to say hi to me on my 3rd week thinking it was my first day and he was wearing an affliction t-shirt as an adult man with gray hair.
|
# ? Jan 10, 2019 09:14 |
|
jit bull transpile posted:apple's recruiters are as dumb as any other recruiters. it's the major hurdle to clear tbh. mine came to say hi to me on my 3rd week thinking it was my first day and he was wearing an affliction t-shirt as an adult man with gray hair. i like to pretend that dudes in aflliction t-shirts are actually just super woke and wearing them unironically as a warning to others DONT THREAD ON ME fucked around with this message at 10:21 on Jan 10, 2019 |
# ? Jan 10, 2019 10:16 |
|
Deep Dish Fuckfest posted:using text to speech to tell you a build completed/failed lmao this owns
|
# ? Jan 10, 2019 11:19 |
|
jfc does nobody learn how to work through a problem anymore? "I can't run the solution I get an error on debug" ok well it builds fine so what is the error? "*posts some generic access to the dotnet folder path message*" Well we know it's not the code so have you tried googling the error? "......" why do they think I'm going to be able to magically fix some generic visual studio error remotely or that i would somehow just know the answer? particularly when it's self evident machine/installation related edit: the actual root error was literally saying "can't write to machine.config, check you have permission to modify it" I mean how much clearer could that possibly be? Powerful Two-Hander fucked around with this message at 14:17 on Jan 10, 2019 |
# ? Jan 10, 2019 11:33 |
|
eschaton posted:you could always see if Ciaphas’ workplace is hiring, they use C++, I think they’re up to C++11 now
|
# ? Jan 10, 2019 11:53 |
eschaton posted:you could always see if Ciaphas’ workplace is hiring, they use C++, I think they’re up to C++11 now hope you love coding c++ without internet and never doing a weed
|
|
# ? Jan 10, 2019 17:20 |
|
c tp s: spent three hours on an issue where a database query works (and returns a result) when code is called from a unit test, but fails (postgres throws an error since the query is invalid) when the same code is called from real business logic. if the unit test actually ran the query the logging output claims it's running, it too would fail in the same way, so i'm really wondering where that result is coming from. staring at the drat thing in a debugger for hours hasn't yielded any insights so far.
|
# ? Jan 10, 2019 20:03 |
|
tbf if it was running real queries against postgresql i wouldn't call it a 'unit test' the approaches i've seen is either just mocking the call completely or running queries against a in-process database like sqlite and h2 but you'll need integration tests to catch query errors
|
# ? Jan 10, 2019 20:17 |
|
suffix posted:tbf if it was running real queries against postgresql i wouldn't call it a 'unit test' both the mocking approach and the sqlite approach are incredibly bad and worse than useless. in this case it is running real queries against a real postgres db (the test pipeline sets up a real database when you run it and tears it down afterwards). we have lots of complex queries with extensive test coverage in this way. TheFluff fucked around with this message at 20:35 on Jan 10, 2019 |
# ? Jan 10, 2019 20:33 |
|
congrats distributed wizard squid
|
# ? Jan 10, 2019 20:40 |
one of our developer teams has a new pm and he's so bad i don't even know where to start. nothing at this job, i think, has come close to me being offered to be taught "a join for queries" [when asked to fix logging to bear actual identifiers] not even 2 days later this guy who did make that offer asked a coworker of mine as to why coworker's join had empty lines on the right side while his didn't
|
|
# ? Jan 10, 2019 20:51 |
|
had a fun bug today that only appears when circleci takes longer than a second to write one line to a file guess they were having a slow day, this ci setup has been working just fine for like 10+ months without us encountering this
|
# ? Jan 10, 2019 20:53 |
|
suffix posted:tbf if it was running real queries against postgresql i wouldn't call it a 'unit test' yeah you only mock (preferably entirely mocked by injecting your connection-getting class, god drat i hate h2) if your code isn't decoupled enough that you can't just call the methods you want to test with no db involved at all ideally you have unit tests in which you manually construct the data that a call would return and pass that into the methods you're testing and integration tests where you talk to real postgres (and service end to end where you have your test really starts your real service except with whatever config stops it from launching real missiles) (and full end to end which is a cluster with all your services actually running)
|
# ? Jan 10, 2019 21:00 |
|
testing integrations with your persistence layers is a difficult and frustrating problem, imo. i have yet to discover a method of unit testing sql queries that gives me full confidence that they'll perform the way i want. the closest i've gotten is with Doobie (scala), which will check your queries against database metadata to see that they're valid for your schema. it doesn't execute the queries, but it still needs a running db instance to talk to. and even still, it doesn't give me full faith in my queries (although it goes a long way). https://tpolecat.github.io/doobie-cats-0.4.0/13-Unit-Testing.html
|
# ? Jan 10, 2019 21:08 |
|
|
# ? Apr 24, 2024 03:32 |
|
Powerful Two-Hander posted:jfc does nobody learn how to work through a problem anymore?
|
# ? Jan 10, 2019 21:14 |