Search:

Type: Posts; User: brewbuck

Page 1 of 20 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    4,231

    There's a big difference between platform...

    There's a big difference between platform independence in theory, and actual platform independence. You can't just ignore the whole "compiling it" step when evaluating what's easiest.

    I get the...
  2. Replies
    4
    Views
    3,136

    I think you're asking, why do we have this...

    I think you're asking, why do we have this "return" concept when the function could just stick its result in a variable?

    Well... it could do that. But the variable would have to be global,...
  3. Replies
    9
    Views
    8,260

    A frequently-changed header file that is included...

    A frequently-changed header file that is included nearly everywhere is a design smell.
  4. Replies
    52
    Views
    31,051

    TBH, the entire stack of web technologies is a...

    TBH, the entire stack of web technologies is a complete disaster, Javascript is just one part of it. Even if Javascript was amazing and perfect, CSS would still be horrific, HTML still terrible, and...
  5. Well, you can MyClass& self = *this;...

    Well, you can



    MyClass& self = *this;
    self[123] = 345;
  6. Replies
    19
    Views
    17,616

    I don't really have much time to write responses...

    I don't really have much time to write responses anymore, unfortunately. I didn't mean to make a stinging criticism, just pointing out that I thought OP's question was being misinterpreted. If it...
  7. Replies
    19
    Views
    17,616

    I read that reply. It's not answering the OP's...

    I read that reply. It's not answering the OP's question.

    It sounds to me like OP doesn't understand what it means for a function to "return." You guys are talking about the meaning of the possible...
  8. Replies
    19
    Views
    17,616

    The inquisitor clearly doesn't understand what...

    The inquisitor clearly doesn't understand what "returning" means, so you fellows' explanations are not really very helpful. Maybe step back and actually pay attention to the question.
  9. You haven't explained what your problem is with...

    You haven't explained what your problem is with the presence of these UD2 instructions. Do you not test your code?

    EDITED: thought it was Epy I was replying to.
  10. Your test cases failed! Yay! The system works!...

    Your test cases failed! Yay! The system works! What's your problem again?



    Let's get this part correct. Your code with undefined behavior doesn't work.



    I think the shame is that you've...
  11. Your pet frustration notwithstanding, clang is...

    Your pet frustration notwithstanding, clang is pretty much taking over everything now. Android and iOS are both compiled with it, and Microsoft is switching to it. Get over it, man.
  12. I'm just not moved to tears by the use of a...

    I'm just not moved to tears by the use of a function pointer...

    My biggest problem with this code is the complete lack of tests. I mean, not a single test to be found anywhere. It also has "break"...
  13. The source code of Clang.

    The source code of Clang.
  14. I've looked over this code before. It's... eh......

    I've looked over this code before. It's... eh... decent, I guess. There are plenty of tricks and hacks that make the code fast enough to pull off a really awesome video game -- and I don't dispute...
  15. You shouldn't validate data in more than one...

    You shouldn't validate data in more than one place. There are several problems with doing it.

    1. Dead code. If the code is validated at Point A and also at Point B, then it is possible Point B...
  16. Thread: C or C++ ?

    by brewbuck
    Replies
    17
    Views
    2,114

    Abstraction always improves things. For...

    Abstraction always improves things.

    For instance, you have a dynamic array that you add things to and you need to deal with resizing it.

    Non-abstract route: everywhere in the code you need to...
  17. Thread: C or C++ ?

    by brewbuck
    Replies
    17
    Views
    2,114

    C is unnecessary. It's too bad there are certain...

    C is unnecessary. It's too bad there are certain very high-profile people who refuse to let it go. Otherwise it'd be dead and buried by now.
  18. Replies
    13
    Views
    1,717

    How long is a piece of string? You know what...

    How long is a piece of string?

    You know what though? No. Programmers don't emphasize testing enough. I think as a general statement that's fairly safe.

    EDIT: Oh... but as far as code coverage...
  19. That's the thing though. It's up to you to decide...

    That's the thing though. It's up to you to decide whether you're getting paid a fair amount for your services. You're working more than the standard 40 hour week, but is it worth it? Maybe it is,...
  20. Replies
    5
    Views
    1,209

    I've done this both ways. Having two separate...

    I've done this both ways. Having two separate codebases is waaaaay easier.

    Of course, if you have a bit of truly platform-independent code, go ahead and factor that out into a native library, but...
  21. It requires help. You need support from more...

    It requires help. You need support from more senior, more respected, more irreplaceable team members to stand up with you. Each of us has been treated like garbage at some point during the beginning...
  22. Replies
    24
    Views
    2,817

    If you cared about code size you'd be using .NET

    If you cared about code size you'd be using .NET
  23. Replies
    24
    Views
    2,817

    Nobody should be using MFC or Win32 directly any...

    Nobody should be using MFC or Win32 directly any more. It's arcane and doesn't expose the full feature set of Windows in a usable way. I wouldn't use C++ in any form for UI code on Windows, it's just...
  24. Replies
    3
    Views
    1,866

    rsync for Windows is a thing...

    rsync for Windows is a thing...
  25. Replies
    4
    Views
    1,113

    Writing native code for Android is not unheard of...

    Writing native code for Android is not unheard of (it's a big part of what I do at work). But writing an entire app using nothing but native frameworks sounds impossibly painful. I'd stick with Java...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4