|
Papes posted:https://www.youtube.com/playlist?list=PLz4D9vMpmI4I_GwnBUAxP9T-pCPDVL-Ko i knew u could do it
|
# ? Jul 26, 2014 22:07 |
|
|
# ? Jun 6, 2024 05:22 |
|
gently caress them posted:"Hey add this thing." this is such a low bar that you should not feel smug or good about beating it
|
# ? Jul 26, 2014 22:09 |
|
thanks for the playlist, will listen
|
# ? Jul 26, 2014 23:08 |
|
i compile all my c++ scripts with -O2 i dont know how this works but it makes me feel really cool
|
# ? Jul 26, 2014 23:09 |
|
BONGHITZ posted:i compile all my c++ scripts with -O2 i dont know how this works but it makes me feel really cool compilation takes longer as it spends more time reasoning about the code in order to produce faster code. afaik the only other downside to -O2 is that the code gets transformed lots more which can hurt debugging sometimes, but that's no biggie as you should just switch to -O0 when debugging. unless that stops the error from happening anymore in which case you're hosed!
|
# ? Jul 26, 2014 23:31 |
|
-Werror for best option
|
# ? Jul 26, 2014 23:39 |
|
AlsoD posted:compilation takes longer as it spends more time reasoning about the code in order to produce faster code. afaik the only other downside to -O2 is that the code gets transformed lots more which can hurt debugging sometimes, but that's no biggie as you should just switch to -O0 when debugging. unless that stops the error from happening anymore in which case you're hosed! at higher optimization levels you are likely to incur the wraith of unintended UB
|
# ? Jul 26, 2014 23:41 |
|
gcc -Os is sometimes faster than -O2 or -O3 cache pressure is a bitch
|
# ? Jul 26, 2014 23:47 |
|
Notorious b.s.d. posted:gcc -Os is sometimes faster than -O2 or -O3 i always compile with -NOs
|
# ? Jul 26, 2014 23:48 |
|
USSMICHELLEBACHMAN posted:i always compile with -NOs img-granny-clockin
|
# ? Jul 27, 2014 00:12 |
|
wpf bros using reactiveui how do i bind a selection in a listview to an observable property and trigger a reactivecommand?
|
# ? Jul 27, 2014 00:20 |
|
FamDav posted:at higher optimization levels you are likely to incur the wraith of unintended UB unibomber?
|
# ? Jul 27, 2014 00:52 |
BONGHITZ posted:unibomber? Uncontrollable Bowels
|
|
# ? Jul 27, 2014 00:54 |
|
what's a good c++ book for someone who knows some java/c#? i looked in CoC but can't tell from the titles and the link doesn't work
|
# ? Jul 27, 2014 16:52 |
|
pointsofdata posted:what's a good c++ book for someone who knows some java/c#? i looked in CoC but can't tell from the titles and the link doesn't work learn c first
|
# ? Jul 27, 2014 17:18 |
|
Notorious b.s.d. posted:learn c first not really the answer i was hoping for
|
# ? Jul 27, 2014 18:05 |
|
pointsofdata posted:not really the answer i was hoping for anyway whatever you pick make sure it was published in 2011 or later b/c C++11 made a whole pile of improvements that you don't wanna be without. C++14 added a few more but they're comparatively minor and you can pick them up by reading Effective Modern C++.
|
# ? Jul 27, 2014 18:28 |
|
pointsofdata posted:not really the answer i was hoping for if you've ever had to janitor resources and understand why you need to, you don't need to do that IMO idiomatic c is awful c++, see goto error versus RAII
|
# ? Jul 27, 2014 18:53 |
|
accelerated c++ is actually really good even if it doesn't tell you about the improvements in c++11 you can get the hang of the way iterator semantics work and how the STL algorithms work, those things haven't really changed
|
# ? Jul 27, 2014 19:39 |
|
if (language == "c") { goto error; }
|
# ? Jul 27, 2014 19:58 |
|
c++ has features that copy data automatically, and features to avoid automatically copying data. c++ programmers decide what mix of features to employ when writing a program and believe that this constitutes reasoning about performance
|
# ? Jul 27, 2014 20:00 |
|
Kevin Mitnick P.E. posted:c++ has features that copy data automatically, and features to avoid automatically copying data. c++ programmers decide what mix of features to employ when writing a program and believe that this constitutes reasoning about performance
|
# ? Jul 27, 2014 20:03 |
|
Brain Candy posted:if you've ever had to janitor resources and understand why you need to, you don't need to do that IMO the only way you would ever had to "janitor resources" and understand the problems is to have used c/pascal/assembly in the past i'm not gonna recommend someone learn pascal or assembly Brain Candy posted:idiomatic c is awful c++, see goto error versus RAII yeah writing complex applications in c is a bitch. but you can learn c in a couple of weeks not years, and that foundation will help you every time you wonder "why is this so loving broken?"
|
# ? Jul 27, 2014 20:08 |
|
what's the minimum subset of c features which i need to know about in relation to other languages, memory management, pointers, and how types and functions work? I really can't see myself writing any actual c (or that much c++) in the future
|
# ? Jul 27, 2014 20:25 |
|
pointsofdata posted:what's the minimum subset of c features which i need to know about in relation to other languages, memory management, pointers, and how types and functions work? I really can't see myself writing any actual c (or that much c++) in the future make sure you learn K&R brace style.
|
# ? Jul 27, 2014 20:33 |
|
i've spent half an hour trying to figure out how to set the source of a wpf image to a local file gently caress microsoft
|
# ? Jul 27, 2014 20:41 |
|
Luigi Thirty posted:i've spent half an hour trying to figure out how to set the source of a wpf image to a local file gently caress microsoft then it should be Source="dirname/filename.jpg"
|
# ? Jul 27, 2014 20:43 |
|
coffeetable posted:have you added it as a referenced resource + copied it to output yes that works in xaml, i'm trying to do it from the program ok: code:
code:
Luigi Thirty fucked around with this message at 20:57 on Jul 27, 2014 |
# ? Jul 27, 2014 20:48 |
|
Luigi Thirty posted:yes that works in xaml, i'm trying to do it from the program try System.Uri(@"X:\your\file\here")
|
# ? Jul 27, 2014 21:02 |
|
but seriously embed it as a resource in your assembly
|
# ? Jul 27, 2014 21:03 |
|
uhhh the problem was solved by putting InitializeComponent first
|
# ? Jul 27, 2014 21:10 |
|
Notorious b.s.d. posted:the only way you would ever had to "janitor resources" and understand the problems is to have used c/pascal/assembly in the past streams, sockets, connections, threads, threadpools are all things things you still have somewhat manage or at least treat differently than other things that get GC'd for you. or arenas or pools or things that if you know about them beyond voodoo you are good unless you are writing a trivial/bad program, in which case, sure, you don't have to ever clean up memory either quote:yeah writing complex applications in c is a bitch. but you can learn c in a couple of weeks not years, and that foundation will help you every time you wonder "why is this so loving broken?" if somebody asks about learning javascript i don't tell them to use c# unless i'm shaggar edit: but it looks like pointsofdata doesn't actually want to learn either so Brain Candy fucked around with this message at 21:18 on Jul 27, 2014 |
# ? Jul 27, 2014 21:12 |
|
Luigi Thirty posted:uhhh the problem was solved by putting InitializeComponent first incidentally dont use codebehind unless you absolutely have to
|
# ? Jul 27, 2014 21:23 |
|
USSMICHELLEBACHMAN posted:make sure you learn K&R brace style. agreed, {}
|
# ? Jul 27, 2014 21:29 |
|
coffeetable posted:yeah that method's in every WPF constructor bc it does the work of parsing the XAML part of the class unless there's a way to make a text label update itself to the current value of deck.CardsRemaining()
|
# ? Jul 27, 2014 21:53 |
|
pointsofdata posted:what's the minimum subset of c features which i need to know about in relation to other languages, memory management, pointers, and how types and functions work? I really can't see myself writing any actual c (or that much c++) in the future the terrible macro system (relevant to c++ templates) c stack/heap distinctions how dlls or shared objects work on your platform whatever awful build system you will use (they're all bad) Notorious b.s.d. fucked around with this message at 22:04 on Jul 27, 2014 |
# ? Jul 27, 2014 22:01 |
|
learning c++ satisfactorily can take many years it's that big and that bad a language i "know C++" but i have in no way mastered it, and i never will. that is on my whatever the inverse of a bucket list is.
|
# ? Jul 27, 2014 22:02 |
|
Notorious b.s.d. posted:i "know C++" but i have in no way mastered it, and i never will. that is on my whatever the inverse of a bucket list is. C++ Grandmaster Certification Overview Students of this two part online course each single-handedly develop their own original C++ compiler, standard library, and toolchain with the following features: - Compliant with the latest 2011 standard (C++11) - Written entirely in C++ with no third-party dependencies - Code generator targeting Linux x86_64 - Full toolchain including preprocessor, compiler frontend/backend, assembler, linker and all standard library components - Builds with itself (self-hosting) and passes provided conformance test suite Isn't this a huge undertaking, usually done by an entire team of programmers? Yes, earning the title Certified C++ Grandmaster is for most programmers the hardest programming exercise they have completed in their careers. It requires writing well over 100,000 lines of code, implementing about 2000 pages of dense technical specifications and takes over 1000 hours of intense work for that small percentage of world-class programmers that are ready to complete it at all.
|
# ? Jul 27, 2014 22:11 |
|
world-class programmers: people prepared to burn ~1,000 hours re-implementing a thing
|
# ? Jul 27, 2014 22:12 |
|
|
# ? Jun 6, 2024 05:22 |
|
Luigi Thirty posted:unless there's a way to make a text label update itself to the current value of deck.CardsRemaining() e: or if you're using reactiveui just inherit from reactiveobject coffeetable fucked around with this message at 22:20 on Jul 27, 2014 |
# ? Jul 27, 2014 22:17 |