Berkeley CSUA MOTD:Entry 22351
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2001/9/8 [Computer/SW/Editors/Emacs, Computer/SW/Languages/Misc] UID:22351 Activity:high
9/7     I have a really difficult time reading this guy's OO code. Basically
        he's utilizing polymorphic method calls, which is alright, but
        tracing the code requires going back and forth between the deep
        plethora super/child chains. While I like OO, I think this is just
        a nightmare to trace and understand. Personally, I'd perfer a more
        shallower chain of objects, extending OO via composition instead of
        inheritance. What do you guys think?
        \_ what if there were a tool where you could expand selected
           parts and see the inherited methods all in one screen?
        \_ I prefer composition to inheritance also, but conventional
           wisdom on that subject is that inheritance is easier to
           understand, though composition is more powerful.
           Good development tools (as the above poster mentions) can also
           help. Understanding code that traverses the inheritence heirarchy,
           or accross many objects, is easy in Smalltalk (or VisualAge/Java)
           where there are good tools available, but a pain in the ass
           in emacs. OTOH, reading methods longer than 10 lines is obnoxious
           in Smalltalk, where it is trivial in Emacs.
        \_ i am starting to subscribe to the belief that only a few libraries
           should be OO. widget toolkits, basic containers and a few other
           things. applications should not define weird ass objects. they
           should instead define function objects.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2005/8/31-9/2 [Computer/SW/Languages/Perl] UID:39372 Activity:nil
8/31    Anyone here use ruby? Is it worth learning (say for someone who
        mostly programs in perl/c)?
        \_ You don't say what your intended use is.  For what?  For personal
           pleasure because you're a language geek?  For work?  For a big
           team project?  For one off throw away code?  What?
           \_ I've been hearing a lot about it from co-workers and
	...
2005/6/21-23 [Computer/SW/Languages/Perl] UID:38230 Activity:high
6/21    My math and/or perl fu is weak. Is there a way to get integer
        multiplication in Perl the way it's done in C? i.e. limiting
        to 32 bits. Like 1588635697 * 1117695901 = 1166976269 in C.
        \_ Can't you just multiply and then mask all but the last 32 bits?
           \_ I don't think so; that's not the same as mult overflow.
              > perl -e 'print (1588635697 * 1117695901)'
	...
2005/4/27-28 [Computer/SW/Languages/Java] UID:37384 Activity:low
4/27    Dear Java gurus, say I have the following code, where Visitor()
        has a method called "visit(Node n)...". I see the following code.
        Does it mean I'm temporarily over-writing the visit method?
         root.accept(new Visitor() {
            public void visit(Node n) {
               //Do stuff with n
	...
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/4/16-17 [Computer/SW/Languages/Functional] UID:13234 Activity:high
4/16    So, here's a question.  I'm learning Python, and it seems to me that it
        includes a lot of the power of Scheme or Lips, with out the wierdness.
        Would Python make a better introduction to CS language than Scheme?
        \_ Dunno, why don't you just ask Ping, he taught a 61A style course
           in python at Cal.  He claims it was good.  I still haven't yet
           found a good dollar Return on Investment for the time I spent
	...
2003/10/3-4 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:10437 Activity:nil
10/2    Java's cover:
        http://www.paulgraham.com/javacover.html
        \_ The sun internal memo is good reading as well. Lots of projects
           at sun (and elsewhere) that need to provide robust functionality
           in a small memory foot print have rejected java in favor of c
           or perl because of the reasons outlined in that memo. Java might
	...
2001/4/26-27 [Computer/SW/Languages/C_Cplusplus] UID:21109 Activity:high
4/26    What are some good reasons to use C fptr over regular method calls?
        \_ Data directed programming allows you to do function calls
           in constant time. Of course, many modern compilers will
           take switch/case statements and implement them in constant
           time.  Look at examples of C function pointers and you can
           see why they're used.
	...
2001/4/9-10 [Computer/SW/Languages/Perl, Computer/SW/Languages/Python] UID:20925 Activity:very high
4/9     Does anyone here use the Python language on a regular basis?  What do
        you use it for?  What is your opinion of it as a language?
        \_ ML >> Perl >> Python.
           \_ Tcl >> ML >> ... >> PHP
                \_ I've seen Python, PHP, Perl, and TCL.  3 of 4 are crap.
                   Got a link for ML?  I can decide for myself.
	...
2000/8/30-2001/4/6 [Computer/SW/OS/OsX] UID:19129 Activity:low
12/19   Who knows anything about computer music: mixing, synthesizing,
        channels, formats, and /<iller Appz (for win or BeOS)? How about
        opinions of good URLs for beginners?  - seano
        \_ Audio Mulch under Windows is fun to play with, and I've seen
           bands performing with a laptop running Audio Mulch loops.
           For the Mac, I've heard of recommendations for SuperCollider
	...
2000/8/22-23 [Computer/SW/Languages/Functional, Computer/SW/Languages/Java] UID:19058 Activity:high 62%like:19071
8/21    Wanna teach programming language to my cousin (10 year old). Should
        I teach LISP or Java first? Also, is it advisable to teach more than
        one language at a time?
        \_ http://www.toontalk.com  -mogul
        \_ Get a Mac, have 'em try HyperCard. When they get bored with that,
           Pascal. I tried this, and it was fun -brg
	...