Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
I believe all Ritchies are related to one another somehow, but DR was such a distant relative that I never met nor knew him.Tim Cooke wrote:. . . no relation to Campbell . . . .
Sometimes the only way things ever got fixed is because people became uncomfortable.
Hahahahahahaha!John Matthews wrote:. . . I'm just the messenger
Sometimes the only way things ever got fixed is because people became uncomfortable.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Tim Holloway wrote:... the Arduino platform, where the standard development language is something very similar to C++.
Matthew Bendford wrote:
I'm mostly concerned about those things I'm not yet familiar with like pointers, structs, destructors, memory/resource management and all that. Sure, I understand the basic concept of a "function pointer" and can see its use cases in libraries and callbacks - but only in the object oriented way of Java's reflections - not as a simple int pointing to some memory location (although I guess down in the guts of a jvm both are the same?). I also know that I have to allocate and request new memory for every data I handle and that I have to release it back to the system by hand instead of rely on the language to handle that itself - but how hard is it actually to write clean non-leaking code without the risk of such as use-after-free?.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Matthew Bendford wrote:
All Amazon got me was kindle e-book versions - but I don'T own one. Thanks in advance.
Sometimes the only way things ever got fixed is because people became uncomfortable.
John Matthews wrote:K&R C:
ISBN-13 : 978-0131103627
C++:
ISBN-13 : 978-0321563842
That's from UK site (paperbacks - ok?), where I could buy them; not sure why you're not seeing them.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Sometimes the only way things ever got fixed is because people became uncomfortable.
Matthew Bendford wrote:From research this a C style signature and if I want to use C++ I have to convert the input to a C++ string and before returning back to a C char array with some simple to use functions.
John Matthews wrote:Converting it to a C++ string just gives you more options in terms of library functions ...
John Matthews wrote:Do you actually have something in mind, or is this more of a theoretical question?
I hope you didn't. C doesn't support pass by reference (C++ does, however).Matthew Bendford wrote:. . . I learned about . . . pass-by-reference. . . .
Campbell Ritchie wrote:C doesn't support pass by reference (C++ does, however).
Sometimes the only way things ever got fixed is because people became uncomfortable.
John Matthews wrote:But it's not like Java which doesn't support pass by reference at all (as I understand it).
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|