Re:Obviously fiction/fantasy
on
The Bug
·
· Score: 1
So you're saying that our entire value as human beings is how well we can debug code
No. Notice how he said geek? A geek who takes that long to find a bug isn't someone to have a lot of respect for. Just like how you wouldn't have too much respect for a doctor who couldn't tell the difference between a burn and a cut.
I've heard that so many times from so many people, but it always goes away after the "oooo new" factor wears off. They say it to sound "hip" and tech savvy.
How long do you think it'll be before he deletes the partition and returns to windows full time?
So with delegates they are bad because a programmer could write unclear code by putting the delegated function definition well away from where the delegate is initalised? This is as compared to the horrible unreadable code you'll find if you put "anonymous inner class java" into google. If you had to create 10 such inner classes would you advocate putting this code all in one initialisation function (such that it is very big), or would you create 10 seperate initialiser functions that the first calls (such that the code that calls the initialisers is possible pages away from the actual code of the initialiser)?
You'd write ten inner classes if you must.
And anonymous inner classes prevent this how? Oh. They dont.
They prevent it because the handling code is in a seperate distinct module (a class).
Give it up mate. Java is an old, hacked, bungled, proprietary language from a monopolistic company. If there's going to be an open source language, get behind Mono, and make open source.NET.
Interfaces are great for managing OBJECTS, but for managing PROCESSES I think delegates are the bee's knees.
Why? What's wrong with interfaces? Delegates are just syntactic sugar for classes with a method.
True, they break OO in some ways. But delegates excell in the things OO has never really been good at: discerning, once and for all, what event fires when and in which order. Creating a manifest of what needs to be done, and being able to manage it through get and set methods like any old property....makes you feel like events and methods are something tanglible, and not just addresses in the command stack.
Like I said. Events are good but there's no reason why you need to introduce a new type (the "delegate"). They could have allowed you to declare events using classes/interfaces. All the magic "wiring" and "ordering" underneath can still be done -- no need for a new magical type.
Plus, there are some things that are just too confusing and maddening to do through interfaces. Example: I have a static method of a class which returns a new object of a subclass based on requested input. Occasionally, I need to return a new object of the superclass. How do I know which new() method i'm calling? I can't build an interface for it.
What are you talking about? Care to give an example and explain how it relates to delegates?
My options are to either rely on reflection, which is always slow, clumsy, and half the company doesn't understand it, or pass a delegate a static method in the subclass, which is usually pretty fast.
Why are you trying to model polymorpism with static methods? Why aren't you using something the singleton pattern?
It has a better messaging mechanism (Events/Delegates are a GODSEND and are the single most useful thing in the framework)
The event mechanism is good but delegates suck ass. Here's why:
1) Delegates are slower than interfaces (they're really just classes with an Invoke method and object+function pointers which requires two levels of indirection).
2) Delegates break OO. Suddenly you have something that works differently from other clases for no real benefit.
3) Anonymous inner classes allow you to define the function close to where its used. With delegates you can have a method body pages away from where it is registered with the event. And the method often has very little to do with the class that contains it. Anonymous methods in V2 are a good start but you still need anonymous innner classes (implementing IComparer for example -- which is an interface and not a delegate!).
Now, events are good. Having the "event" keyword and automatic wiring is useful. But there is no reason why the "event" keyword couldn't work with interface types instead of delegate types. Having worked extensively with delegates I've gotta say that they simply complicate the type system.
If you are too stupid to understand basics on which semiconductors work (or too lazy to even try), please do not try to lower whole of humanity to your level by claiming only some mysterious aliens could do something like that. There are and were lot of brilliant people in the world, some of them actually do something useful, in contrary to posting conspiracy theories in slashdot.
Please don't bother posting insults. You're obviously too stupid to realise that I don't really believe computers are based on alien technology. I'm playing devil's advocate because there is almost as much misinformation about no-aliens as there is misinformation about aliens being thrown around.
Re:Moderated Funny? This is informative!
on
42-Volt Autos
·
· Score: 1
Particle physics is not any advanced science. If you study it, you'll notice how the fundamentals are very simple. It has just been developed rapidly during tens of years by taking lots of small steps.
We've gone from vaccuum-tube ENIAC that fills a room to a 2.6 gigahertz PC that sits in your lap. If we can't in that space of time figure out what made any alleged UFO from Roswell tick in that space of time, then either it never happened, or the government scientists are all idiots
Where do you think the computer technology came from?
Exactly. I have a problem with the example which asserted that you couldn't test that the goverment is run by aliens. Why can't you disprove the government is run by aliens? Any reasons that you can come up with I could apply in the same way to disproving the world is round.
Re:Will it deter conspiracy "theorists" ?
on
Roswell Declassified
·
· Score: 4, Funny
The theory that the earth is flat can be disproved; the theory that aliens have infiltrated the highest levels of government can't be disproved.
I don't understand the difference between those two. How is it that you can prove the earth is flat but yet can't prove the goverment has been infiltrated by aliens?
For example, how do you know that all the aliens in the government aren't faking all the evidence for the round earth? For all we know, all the evidence is just an illusion that is sustained by drugs the goverment puts in the drinking water.
Cause then you know you have an *exact* copy of the CD. I hated having to download individual files cause you'd never know if you got them all properly. Try running an MD5 sum on 10000 files.
Who controls the British crown? Who keeps the metric system down? We do! We do. Who leaves Atlantis off the maps? Who keeps the Martians under wraps? We do! We do. Who holds back the electric car? Who makes Steve Guttenberg a star? We do! We do. Who robs cave fish of their sight? Who rigs every Oscar night? We do! We do. Who keeps Microsoft on its course? Who opposes open source? We do! We do.
Intel never would have landed the life-giving government contracts without AMD, as government regulations regarding purchasing required that a backup distributor be available with compatible products in case the primary distributor fell on hard times.
Michael Sull, a 54-year-old artist in Overland Park, Kan., says today's third graders have not developed proper forearm and hand musculature, seated posture or mental discipline.
So you can't get cheat headsets for Nokia until someone makes a data-only headset. This is killing BT, not lack of usage. BT along with Airport is a marriage made in heaven.
Most bluetooth headsets work with Nokia phones that support bluetooth. I'm using a Jabra BT200 with my 6310i and it works great.
PS. Nokia is being a bitch wrt bluetooth. New Nokia phones don't even have bluetooth support!
I have a bluetooth headset that I use with my cellphone and it's much more convenient than corded headsets which almost always get tangled and broken.
I have about 4 headsets here with the wires torn out of the earpiece which usually results from the wires getting caught on something while I'm running.
Bluetooth has its place. It's designed for PANs(personal area networks) where WiFi would be way overkill.
Yah. More patriotism. Just what we need.
So you're saying that our entire value as human beings is how well we can debug code
No. Notice how he said geek? A geek who takes that long to find a bug isn't someone to have a lot of respect for. Just like how you wouldn't have too much respect for a doctor who couldn't tell the difference between a burn and a cut.
I especially the last line.
I think I'm becoming a believer.
I've heard that so many times from so many people, but it always goes away after the "oooo new" factor wears off. They say it to sound "hip" and tech savvy.
How long do you think it'll be before he deletes the partition and returns to windows full time?
Well they weren't his last words. If I recall correctly, he became a billionaire.
So with delegates they are bad because a programmer could write unclear code by putting the delegated function definition well away from where the delegate is initalised? This is as compared to the horrible unreadable code you'll find if you put "anonymous inner class java" into google. If you had to create 10 such inner classes would you advocate putting this code all in one initialisation function (such that it is very big), or would you create 10 seperate initialiser functions that the first calls (such that the code that calls the initialisers is possible pages away from the actual code of the initialiser)?
You'd write ten inner classes if you must.
And anonymous inner classes prevent this how? Oh. They dont.
They prevent it because the handling code is in a seperate distinct module (a class).
Give it up mate. Java is an old, hacked, bungled, proprietary language from a monopolistic company. If there's going to be an open source language, get behind Mono, and make open source
I'm working on both mono and pnet.
Microsoft has never used patents in court for anything except defense. It's up to you to prove they will go to court over the patent.
Because there's no way in hell Microsoft could uphold that patent.
Interfaces are great for managing OBJECTS, but for managing PROCESSES I think delegates are the bee's knees.
Why? What's wrong with interfaces? Delegates are just syntactic sugar for classes with a method.
True, they break OO in some ways. But delegates excell in the things OO has never really been good at: discerning, once and for all, what event fires when and in which order. Creating a manifest of what needs to be done, and being able to manage it through get and set methods like any old property....makes you feel like events and methods are something tanglible, and not just addresses in the command stack.
Like I said. Events are good but there's no reason why you need to introduce a new type (the "delegate"). They could have allowed you to declare events using classes/interfaces. All the magic "wiring" and "ordering" underneath can
still be done -- no need for a new magical type.
Plus, there are some things that are just too confusing and maddening to do through interfaces. Example: I have a static method of a class which returns a new object of a subclass based on requested input. Occasionally, I need to return a new object of the superclass. How do I know which new() method i'm calling? I can't build an interface for it.
What are you talking about? Care to give an example and explain how it relates to delegates?
My options are to either rely on reflection, which is always slow, clumsy, and half the company doesn't understand it, or pass a delegate a static method in the subclass, which is usually pretty fast.
Why are you trying to model polymorpism with static methods? Why aren't you using something the singleton pattern?
It would also mean you could run Swing on .NET through IKVM.
It has a better messaging mechanism (Events/Delegates are a GODSEND and are the single most useful thing in the framework)
The event mechanism is good but delegates suck ass. Here's why:
1) Delegates are slower than interfaces (they're really just classes with an Invoke method and object+function pointers which requires two levels of indirection).
2) Delegates break OO. Suddenly you have something that works differently from other clases for no real benefit.
3) Anonymous inner classes allow you to define the function close to where its used. With delegates you can have a method body pages away from where it is registered with the event. And the method often has very little to do with the class that contains it. Anonymous methods in V2 are a good start but you still need anonymous innner classes (implementing IComparer for example -- which is an interface and not a delegate!).
Now, events are good. Having the "event" keyword and automatic wiring is useful. But there is no reason why the "event" keyword couldn't work with interface types instead of delegate types. Having worked extensively with delegates I've gotta say that they simply complicate the type system.
If you are too stupid to understand basics on which semiconductors work (or too lazy to even try), please do not try to lower whole of humanity to your level by claiming only some mysterious aliens could do something like that. There are and were lot of brilliant people in the world, some of them actually do something useful, in contrary to posting conspiracy theories in slashdot.
Please don't bother posting insults. You're obviously too stupid to realise that I don't really believe computers are based on alien technology. I'm playing devil's advocate because there is almost as much misinformation about no-aliens as there is misinformation about aliens being thrown around.
Thank you Mr. Grade School Science.
Particle physics is not any advanced science. If you study it, you'll notice how the fundamentals are very simple. It has just been developed rapidly during tens of years by taking lots of small steps.
We've gone from vaccuum-tube ENIAC that fills a room to a 2.6 gigahertz PC that sits in your lap. If we can't in that space of time figure out what made any alleged UFO from Roswell tick in that space of time, then either it never happened, or the government scientists are all idiots
Where do you think the computer technology came from?
Exactly. I have a problem with the example which asserted that you couldn't test that the goverment is run by aliens. Why can't you disprove the government is run by aliens? Any reasons that you can come up with I could apply in the same way to disproving the world is round.
The theory that the earth is flat can be disproved; the theory that aliens have infiltrated the highest levels of government can't be disproved.
I don't understand the difference between those two. How is it that you can prove the earth is flat but yet can't prove the goverment has been infiltrated by aliens?
For example, how do you know that all the aliens in the government aren't faking all the evidence for the round earth? For all we know, all the evidence is just an illusion that is sustained by drugs the goverment puts in the drinking water.
Cause then you know you have an *exact* copy of the CD. I hated having to download individual files cause you'd never know if you got them all properly. Try running an MD5 sum on 10000 files.
Because our morality and legal system certianly has it's roots with christ.
Oh right. Morailty and legalilty didn't exist before christ.
Since this is on Slashdot, I have no idea if you're joking. I hope so.
Since this is on Slashdot, I have no idea if you're joking. I hope so.
Who controls the British crown?
Who keeps the metric system down?
We do! We do.
Who leaves Atlantis off the maps?
Who keeps the Martians under wraps?
We do! We do.
Who holds back the electric car?
Who makes Steve Guttenberg a star?
We do! We do.
Who robs cave fish of their sight?
Who rigs every Oscar night?
We do! We do.
Who keeps Microsoft on its course?
Who opposes open source?
We do! We do.
Intel never would have landed the life-giving government contracts without AMD, as government regulations regarding purchasing required that a backup distributor be available with compatible products in case the primary distributor fell on hard times.
Hmmm..why doesn't that apply to software?
Michael Sull, a 54-year-old artist in Overland Park, Kan., says today's third graders have not developed proper forearm and hand musculature, seated posture or mental discipline.
Ahh....mmm no comment.
Do you really need IP infrastructure to move packets between your pockets? This is nuts.
No the thing inbetween your pockets is nuts.
*groan*
So you can't get cheat headsets for Nokia until someone makes a data-only headset. This is killing BT, not lack of usage. BT along with Airport is a marriage made in heaven.
Most bluetooth headsets work with Nokia phones that support bluetooth. I'm using a Jabra BT200 with my 6310i and it works great.
PS. Nokia is being a bitch wrt bluetooth. New Nokia phones don't even have bluetooth support!
it still has all of the limitations of wires.
Except for the *wires* part!
I have a bluetooth headset that I use with my cellphone and it's much more convenient than corded headsets which almost always get tangled and broken.
I have about 4 headsets here with the wires torn out of the earpiece which usually results from the wires getting caught on something while I'm running.
Bluetooth has its place. It's designed for PANs(personal area networks) where WiFi would be way overkill.