341 reputation
212
bio website malcolm-soft.com
location New York, United States
age 25
visits member for 3 years, 4 months
seen 23 hours ago

Mobile application developer who freaking loves what he does - that's the most apt description for me. I mainly spend time writing something for Android, but I also play a lot with other technologies as well.


Apr
1
comment Is there a language between C and C++?
@DeadMG "Good" is a rather subjective term. As for the usefullness of C++, I think no one will argue with that. A useful language can be unpopular, but it's hard to imagine how a useless language can reach high popularity. The discussion in the comments has become too long already, so going back to the point, complex tools can be a good or a bad thing depending on the given situation.
Apr
1
comment Is there a language between C and C++?
@DeadMG If it were an unequivocally bad thing, C++ wouldn't be so popular. But since it is, then we can deduce that the cons are balanced by the pros.
Apr
1
comment Is there a language between C and C++?
@DeadMG You put too much emphasis on this particular example, this is just an illustration to the general point. Also I think you misunderstood what I'm talking about. I never said C++ features shouldn't have been added, I'm just saying that they make the language more complex. It's just natural: the more universal the tool is, the more complex it becomes. The generics you mention is a tool. In C++ templates allow metaprogramming, a complex universal tool. In Java generics are a way to eliminate runtime errors, a tool with a much more precise purpose (far from being not very useful, though).
Apr
1
comment Is there a language between C and C++?
@DeadMG Yes, but you have to learn it somehow. How do you know which feature is used often, and which one is not? As you put it, good teachers are a must (books probably should count, too). And in Java you just have to know what a String literal is. The point is that while new features get added to C++ for a reason, this unavoidably makes the language more complex. And also there is this: programmers.stackexchange.com/questions/85732/…. Together this makes the language definitely harder to learn.
Apr
1
comment Is there a language between C and C++?
@DocBrown I'm mostly talking about the vastness of features you have to learn if you are to call yourself someone who really knows C++. This is about not only using multiple paradigms, but also doing rather mundane things. Say, as of C++11 there are several kinds of string literals, whereas in Java there's only one. This requires at least understanding of how each works and when to use which. Sticking to the old C ways in C++, of course, doesn't make much sense.
Apr
1
comment Is there a language between C and C++?
@DocBrown Maybe it's because it's not so easy to know C++ well enough.
Mar
23
comment Why is verbosity bad for a programming language?
I would say that example with Java is not the best one, too. Such things as the need to define a class and a method matter in code golf, but hardly in real applications. It not like Java requires a lot of code to output a few words, these few lines are required to create a program, and that's different.
Feb
28
comment Help me catch up on what I've missed since Java 1.4.2
@Maxpm Because that's how it's called in Java Language Specification. As per JLS, there are basic for loops and enhanced for loops. I'm not sure why they decided to do it that way. Maybe because the syntax doesn't use a special keyword and sort of blends in with the normal loops.
Feb
28
comment Why does a Java source file bear the name of the public class it contains?
I think that it is great that Java has such a requirement. In C and C++ I often find it very difficult so understand where a particular class or function is, but in Java it is much easier to look for them because files and folders are tied to the code.
Feb
28
comment Will Java catch up with C#?
I'm not so sure about Oracle slowing down Java. Sun were unable to release Java 7 for several years and they absolutely abandoned Java ME. Only after Oracle bought them Java 7 was finally released, and Java 8 is fortunately set to be out really soon. Unfortunately, nothing has been done with Java ME, but that's probably because nobody really beleives this technology can be revived (at least without a total redesign).
Feb
20
comment How do I explain a “Hello World” program for beginners?
@6502 A language can be crappy because it forbids to use global namespace and imposes some requirements on the main method?
Feb
18
awarded  Enthusiast
Feb
17
awarded  Critic
Feb
9
comment What's the worst programming book you've ever read?
I don't know, the library reference is not so useful, but the part which described the language didn't seem bad to me. Of course, at the time I read this book I couldn't really estimate it, but I don't remember having to unlearn anything later. I read it in Russian, though, maybe translators fixed something. I just don't know exactly what it is critisized for, the answer is not very specific.
Feb
1
comment What do you name functions/variables/etc when you can't think of a good name?
I prefer thinking once again harder...
Feb
1
comment How do you name your private variables in C#?
The argument about the number of characters is debatable. You don't have to type this every time, only in the methods where a local variable with the same name is present. However, you are required to write an extra symbol every time if you use an underscore. With what I agree is that sticking to your local code style agreement is always important.
Jan
27
revised When learning Android, should I focus on the latest and greatest?
Added a point about supporting tablets and handsets
Jan
27
answered When learning Android, should I focus on the latest and greatest?
Jan
26
comment Should I use default access modifier or not — Coding practice?
In Java default access is a separate kind of accesss, so if you add an access modifier, you don't restate the accesss, you change it to something else. That's why if you really need explicit default access, the only way to make it explicit is to use a comment.
Jan
26
comment Never use Strings in Java?
@DeadMG Yes, I thought that you could justify creation of such a small class by reducing the number of checks, but it depends on the overall design. Maybe ids are a part of a larger class, which can handle all the validation combining the functionality of all the small classes-validators. I'm not saying that having OrderId instead of String is always bad, it's just something I wouldn't do by default.