Slashdot Mirror


User: CaptainPinko

CaptainPinko's activity in the archive.

Stories
0
Comments
470
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 470

  1. Re:API Docs on Java VM & .NET Performance Comparisons · · Score: 1
    Your example of extending Thread versus implementing Runnable is a bad one. Extend-ing means you extend the concept and bring something new to it. Unless you are adding something conceptually to it don't extend it. For example if SelfTterminatingThread or something would be a proper sub-class. A thread that prints numbers (ie the basic "hello word" for programs to prove that thread scheduling is not deterministic)is fairly specific and does not extend the concept of a Thread. Interface means that something behaves like or "you can treat it like a ...". So you can treat your num printer like a thread. For example have a class TinCan with a methods open() which cannot be undone. You should never have a class Orange (as in the fruit) extends TinCan since an Orange is not extending the concept of a tincan. However if you make it an interface (you probalby would want to name it something more generic like FoodContainer) then Orange should implement it since it behaves like a TinCan and you can treat it as such. The test for proper X extending Y is "is X an Y?" an Orange is a Fruit but not a TinCan. A SoupCan is a TinCan. A DogFoodCan is a TinCan. Interfaces allow objects with nothing in common (ontologically) but have the same behaviour to be treated similarily.

    No there is nothing wrong the philosophy. Sometimes Sun strays from their own views thats all. Kinda like there must be something wrong with Christianity/Islam if David Koresh/9-11 hijackers did what they did. It's when people stray that good philosophies go bad.

  2. Re:API Docs on Java VM & .NET Performance Comparisons · · Score: 1

    My point was more than just "everyone else does it". I mean that the Java hierarchy is simple to understand and is a common structure we use to break down groups. I cite the 5 Kingdoms as an example. I think actually that that is a good metaphor of thinking about Java inheritance. It's own kind of biosystem or something. If there is something wrong with a class (I've never used ObjectOutputStream) then that doesn't mean that there is something wrong with the philosophy. Thats what I love about Java. It's not a hodge-podge of patchwork to "just work". It is a fairly clear and coherent structure based on an OOP philosophy.

  3. Re:API Docs on Java VM & .NET Performance Comparisons · · Score: 1
    It's an abstract class not a class per se. the difference is that with a n interface you inherit only the header vut with an abstract class you inherit code too. this allows for:
    public String toString (){
    return "this is my string!: " + this.read();
    }
    now you you can inherit the method even though it may depend on the implementation dependent method .read()
  4. Re:API Docs on Java VM & .NET Performance Comparisons · · Score: 1
    1. because every input stream is a subclass of InputStream? You code for InputStream and you can support them all. If you needed the added support of a subclass use that one. I like Java's hierarchy. It reminds me of the ordering of natural sciences starting with "Living Things" (ie java.lang.Object) to the 5 kingdoms etc.
    2. I agree. The interface should have been sub-classed and then if you were going to implement the "optional" methods you'd implement the subclass. This angers me too... however I feel you'll hate my solution.

    never knew you could do lists before...

  5. Re:Can You Imagine the Heart-Warming Ads? on Bootlegged Music in Russia · · Score: 1

    Poor people don't want to become rich they want to get by. Really all I want is to be able to do is to work and play in the knowledge that the safety will be there so I don't starve. I don't want to be rich really not a priority. That why I would perfer a strong socialist government. I I'm alright not having the shiniest toys or making the most money, i just want to that rock bottom isn't deadly.

  6. Re:+4 insightful to the guy who's never run AIX :- on Tiger Early Start Kit · · Score: 1

    i'm wondering what you have to say about Solaris then. IANA Sys-Admin

  7. Relativity and Einstein on Project Gutenberg on Frame Dragging by Earth Reconfirmed · · Score: 3, Informative

    I took a course on the philosophy of modern physics at university and on the our text books was Einstein's own called Relativity : the Special and General Theory fairly informative and yet accesible. It is available for free from Project Gutenberg. Just click on the first link.

  8. Re:anyon want to bet on the actual release date? on FreeBSD 5.3 Release Candidate Released · · Score: 1

    looking over various 4.x release dates I'm guessing5 months till 5.4 and ULE as default.

  9. API Docs on Java VM & .NET Performance Comparisons · · Score: 2, Interesting
    The Java API has a lot of these and that's probably why he has to keep going back to the API docs.

    I must say that is mitigated by the fact the Java has hands down the best API documentation for any platform. Really what more could you ask for. Combined with the Swingset and there SWING component guide, who could ask for anything more in terms of documentation? Mind you I'll agree that getting used to all the layers can be a burden when first learning but it becomes elegant once you see the big picture.

  10. Re:GCJ slower than a native JVM? on Java VM & .NET Performance Comparisons · · Score: 2, Interesting
    Well I don't that abstracting to a file is actually that good a thing. The problem with treating it like a file is that there are fairly specifc things that seperate files from network streams from devices. For example you never need to worry about a file being disconnected but with devices and networks it is. Having seperate classes allows from more specifc methods methods to be created like isReachable(Address) which can't apply to a file. Trying to merge them all into Object would lead to sloppy semantics (for example if someone deletes a file you are reading are you going to consider that being disconnected and throw a NetworkException?).

    If you want to use use one object for them all and completely abstract everything then I think there is a completely in JVM solution: the abstract classes. Abstract classes provided the structure to create the implementation you need but aren'tbound to any one implementation. So create a printFrmoStream (java.io.InputStream) time and you'll get all the abstraction you'd want for both AudioInputStream or FileInputStream. I think Java provides all the transparency you. Either that or I completely misread your question. :)

  11. Re:GCJ slower than a native JVM? on Java VM & .NET Performance Comparisons · · Score: 4, Insightful

    Yes you are crazy. Don't use java then. Really when I look at C functions I think they are an awful mess of vomit, however I except that this is the aesthetic/style that C expect and I deal with it. If you worked with Java enough you woudln't have to look it up. What I like about java is that since there are so many layers I can take out the FileInputStream reader and throw a NewtworkStream and leave the rest of the code the same since it uses the buffered reader. For exapmle in C i hate how there is fprintf, sprintf, printf. As far as I am concernred those should be all rolled into one function. The point is either except the way that Java is or don't use it: don't make Java like C. I'm sure you can see how much you'd hate C if I tried to make it more like Java.

  12. anyon want to bet on the actual release date? on FreeBSD 5.3 Release Candidate Released · · Score: 2, Interesting
    when I first saw the schedule when it said October 17th I was betting on Halloween, but now I think it may be longer. With that many Known Issues and one marked as "errata candidate" and with that many "Needs Testing" I'm guess that either a) FreedBSD 5.3 will be released in the Beginning of December (last of the majour BSDs to release) or b) 5.3 will be called the first stable but 5.4 will really be.

    Anyone have any predictions?

  13. Re:he is actually Swedish... on Linus Interviewed · · Score: 1

    I'm not talking about jsut speaking Swedish, but I was under the impression that he was from a seperate ethic group. For example my great grandmother was born in Germany and spoke German. Same with my Grandmother. Yet, they are both a 100% Polish since they lived with Polaks only married Polaks. They formed an independent community within Germany. (Westphalia region perhaps?). I was under the impression (maybe even read something to that effect somewhere...) that this was the case of Swedish-speaking Finns. Anyone know the history of them?

  14. he is actually Swedish... on Linus Interviewed · · Score: 1

    I he is actually Swedish. There is a small group of ethnic Swedes living in Finnland. Just check the Wiki.

  15. Re:They are marketing to teens... on Hip-e All-In-One PC · · Score: 1

    Think about the target market... Linux is a null factor. It's like putting mudtires on a Hummer by default: they are aimed at bar hoppers who want style. Really, you just aren't remotely the target audience.

  16. Re:They are marketing to teens... on Hip-e All-In-One PC · · Score: 1

    do you really think you could build the same thing or even a similar price? really? considering how much of it is probably custom. If you start doing things like "well I'd save money going with ps2 instead of BlueTooth" than you just missed the entire point. This is supposd to be showy and pimped-out like a ricer. Face it, if you build it cheap it won't look stylish (decent looking cases alone cost ~$110 like the Antec server/workstation onesw). No non-geek tenn would want a beige-box... even with a 6800 GT Ultra and a FX-53.

  17. Re:IBM OSS Cred on IBM Open Sources Object Rexx · · Score: 1

    plenty? no. some? yes. True charity is when you give something of yourself. Really no company does this. The closest I can think of I Looking Glass which definite has potential value yet to be explored that Sun gave away. SuSE and Sun giving away Enterprise quality software for free is another. Fedora, the beta-tester program for RedHAT WS is not charity.

  18. why are they using SCSI connectors? on Probe Crash Due to Misdesigned Deceleration Sensor · · Score: 0, Offtopic

    In this picture you can see that they are still using SCSI-style connectors. I thought the plan was to move to Serial-Attached-Scsi that used the SATA connector while still being SCSI. That way you could potential plug a SATA drive in the same slot as a SCSI was previous if your chipset supported it etc. It remember reading some Flash presentation on it. It was somewhere on the SCSI Trade Association website. They got a whole section on SAS on the site. So is it just theoretical? Anyone use it? Know anyone who does? Will it be out soon?

  19. IBM OSS Cred on IBM Open Sources Object Rexx · · Score: 2, Insightful

    I hope they don't think that they are going to get karma from open sourcing stuff that they just find laying around I mean sure it's useful but really it doesn't take anything of IBM to give it away. It's kinda like it's not really doing charity if you give something away that you were gonna throw away.

  20. Re:I told my 7 yr old about this.... on Detailed Changes In Star Wars DVD Release w/Pics · · Score: 1

    As a point for comparison in my family 30 is considered to be an ideal age. THat way you can have fun when you are young and still live long enough to see your grandkids. Dad was 30, mom was 28. I'm 21 and would never have kids anytime soon. Not critising, just sharing.

  21. Re:Walmart is not a monopoly on Wal-Mart Squeezing Record Labels to Cut CD Prices · · Score: 1

    He never said your were doing to keep others down... but that is unintentionally what you are doing. You may have bought that Nike shirt because you thought it looked cool... but you are still advertising the brand your intentions to the contrary or not.

  22. Makes no sense... on What's The Linux Kernel Worth? · · Score: 1
    Microsoft can never own FreeBSD either. They can take all the code they want and they still won't own it. There will always be people developing for it and it will always be there.

    With the GPL you make GPL software better. With BSD you make all software better. Many of us still use Windows from time to time... why wouldn't we want Windows to be better too? Even if Windows becomes better than every *BSD in every way we can still have our own functional, free (libre) operating system.

    Really who past their adolescence actually cares about Linux beating Windows? They are tools, use them. You'll always have your free one so the rest doesn't matter.

  23. Re:$600 M is ridiculous on What's The Linux Kernel Worth? · · Score: 1

    what else could it mean? If I get a snapshot of Linux undera BSD license I can do with it whatevera BSD license allows which does allow me to redistribute under a BSD lciense!!!

  24. whoa... on KDE 3.3.1 Released · · Score: 1

    as a long time KDE user (well depends how you define long... RH7.3 anyway) I'm surprised I've never learned about these before. Is there a book on KDE becaue I'm sure there are lots of other sthigns I'm missing out on.

  25. ENUMS!!!! on Java 1.5 vs C# · · Score: 1
    Am I the *ONLY* that thinks Enum support is the biggest and most important change in Java 1.5? Really they make writing code --especially when writing your own protocol-- much cleaner and save you having to check for gofy input in your methods themselves.

    I too would love a Java 2.0 (no, not Java2 1.2) where we break backwards compatibility and toss out the old crap. It should probably come with a 1.x jvm to mkae the transition easier but it would at least provide a path to a scaled down API. I think after 4 years of 1.x and 2.x the 1.x could be dropped with little ill effects (even today's x86 aren't compatible with the 8088). And yes I do know what deprecated code is and how that works.