2004/10/29-30 [Computer/SW/Languages/C_Cplusplus] UID:34449 Activity:very high | 10/29 C++ is so freaking BROKEN. Augh!
\_ Just use C.
\_ Would if I could.
\_ No, you are. C++ works just fine, and far better than C for many
purposes.
\_ C vs. C++. FIGHT!!!
...
|
2004/8/18-19 [Computer/SW/Languages/C_Cplusplus] UID:32995 Activity:very high | 8/18 Doesn't math.h define min() and max() functions? What should I include
to get them? I'd rather not do the (a < b) ? a : b thing. Thx
\_ No. Many programmers define it as a new macro. Don't know what
gcc people do, offhand.
\_ OS X has fmin(3)/fmax(3) which conform to ISO/IEC 9899:1999(E).
Linux might have these too.
...
|
2004/3/30-31 [Computer/SW/Languages/Perl] UID:12925 Activity:kinda low | 3/17 In Perl, how do I make variables have static types and type check
for valid parameter/actuals? I realize that variables are untyped
in Perl ($var can be 0.001 or "hello") but I'd like to have more
strict checking so that errors would be caught ahead of run-time,
Thanks, -java guy
\_ use java. Seriously. You don't use perl if you want strong
...
|
2003/7/6-7 [Computer/SW/Languages/C_Cplusplus] UID:28939 Activity:high | 7/5 Besides method lookup of non-virtual methods, how is C++ considered
slower than pure C? The follow-up question: why hasn't C++ or
another OO language moved into usage in kernels and drivers?
\_ Larger standard library + linkers which link everything =
\_ You probably mean "Besides method lookup of virtual methods".
large code = poor cache performance.
...
|
2001/3/17-18 [Computer/SW/Languages/C_Cplusplus] UID:20827 Activity:high | 3/16 Why does so much C sample code use #define instead of const?
\_ because any good C code will use a bunch of preprocessor
anyways. you can't be a good C programmer and eschew the
preprocessor. For that, you need a language which fills those
gaps with other constructs (c++ templates go a long way to
obviate the need for preprocessor for example). you
...
|
2000/8/9-10 [Academia/Berkeley/Classes, Computer/SW/Languages/C_Cplusplus] UID:18929 Activity:high | 8/8 How well do UCB EECS and CS newgrads know C/C++? (in general)
\_ If it makes you feel any better, Stanford undergrads start out
take 3 quarters of "Introductory Programming" in C instead of
SICP.
\_ on average, better than other schools' new grads, with a
lot more upside
...
|
2000/4/6-7 [Computer/SW/Languages/C_Cplusplus] UID:17942 Activity:very high | 4/6 C vs. Java vs. Perl comparisons:
Conclusion: C is still the fastest. Java is not as slow as people
think it is. Perl is nowhere close to Java performance.
\_ Apples, Oranges, Bananas, and Trolls who like to delete
\_ Multithreaded java with native threads with a
decent rt gives you functionality that you can
...
|
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil | 4/29 Why were C and Java designed to require "break;" statements for a
"case" section to terminate rather than falling-through to the next
section? 99% of the time poeple want a "case" section to terminate.
In fact some compilers issue warning if there is no "break;" statement
in a "case" section. Why not just design the languages to have
termination as the default behavior, and provide a "fallthru;"
...
|
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil | 8/29 There was once a CSUA web page which runs an SSH client for logging
on to soda. Does that page still exist? Can someone remind me of the
URL please? Thx.
\_ what do you mean? instruction on how to ssh into soda?
\_ No I think he means the ssh applet, which, iirc, was an applet
that implemented an ssh v1 client. I think this page went away
...
|
2011/4/16-7/13 [Computer/SW/Languages/Python] UID:54086 Activity:nil | 4/16 Whoa, I just heard that MIT discontinued 6.001 (classic scheme)
to 6.01. In fact, 6.00, 6.01 and 6.02 all use Python. What the
hell? What has the world become? It's a sad sad day. SICP forever!
\_ old story, they've ditched that shitty book and lang for a while.
\_ I used to think scheme was cool, then I saw Ka Ping Yee's
"Beautiful Code" class aka 61a in python, and converted.
...
|
2011/2/24-4/20 [Computer/SW/Languages/Java] UID:54048 Activity:nil | 2/24 Go Programming Language. Anyone here use it? It kind of
reminds me of java-meets python, and well, that is fitting given it's
a GOOG product. What is so special about it?
\_ as I understand it, it's a suitable OOP-y systems language with more
structure than C, less complexity than C++, and less overhead than
Java/Python.
...
|
2010/8/8-9/7 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Web] UID:53914 Activity:nil | 8/8 Trying to make a list of interesting features languages have
touted as this whole PL field comes around, trying to see if they
have basis in the culture of the time: feel free to add some/dispute
1970 C, "portability"
1980 C++, classes, oop, iterators, streams, functors, templates
expert systems
...
|
2009/12/5-26 [Computer/SW/Languages/Java] UID:53569 Activity:nil | 12/4 what do people have their JAVA_HOME's set to on soda?
\_ don't. are you trying to get sun java? It is installed, but not
the default. check dpkg -l and dpkg -L
\_ I'm trying to run maven to get scala/lift.net working
properly and it's complaining that JAVA_HOME is not set.
\_ you probably want one of the directories in /usr/lib/jvm,
...
|
2009/8/7-14 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:53252 Activity:high | 8/6 In C one can do "typedef int my_index_t;". What's the equivalent in
C#? Thanks.
\_ C#? Are you serious? Is this what the class of 2009 learn?
\_ No. I have to learn .NET code at work. I am Class of '93.
\_ python is what 2009 learns, see the motd thread about recent
cal courses and languages
...
|
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate | 7/20 For those who care btw, it looks like eclipse is now A Standard Tool
at UCB ugrad cs, probably replaced emacs. Furthermore, people get
angry at seeing Makefiles, (since eclispe takes care of that). I
guess it's just a sign of the times.
\_ The more people at my work use eclipse the less the code is
managable in emacs. I'm not sure which application's fault
...
|
|