Comment on: Stop saying learning to code is easy (because it sets begginers up for disappointment).
8 19 Jun 2016 23:23 u/new_name in v/programmingComment on: Trigger input event automatically on value changed with code
Interesting.
Comment on: Trigger input event automatically on value changed with code
The absence of a return type or parentheses is also odd.
Comment on: Trigger input event automatically on value changed with code
So I guess get and set are overrides of string class methods? and they don't need a return type or parentheses?
Comment on: Trigger input event automatically on value changed with code
That does not look like it will compile. That doesn't look like working code at all, in any language. Of course, I don't use C#, so...
Comment on: Trigger input event automatically on value changed with code
If that's valid code, I want to know what language it is.
Comment on: 0 experience, getting into C++, really just not understanding why you'd want/need to use void
I wonder if you or qwop, being real programmers, can reconcile all of the above with the use of "void" in the code snippet in the header image for this sub?
Comment on: 0 experience, getting into C++, really just not understanding why you'd want/need to use void
Except you can cast things to and from void, but they don't disappear when they are void.
Comment on: 0 experience, getting into C++, really just not understanding why you'd want/need to use void
C and C++ are strongly "typed" languages. Most of the time void is used just to indicate that a function doesn't return a value(a return value would have to have a type).
Void is essentially the typeless type. You can cast variables to and from void, also.
Oversimplifying, "void" kind of means "whatever".
edit: "cast"
Some people just don't think like a programmer.