Author |
Message |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Tue Dec 28, 2004 12:11 pm Post maybe stupid Post subject: Best quote I ever invented... |
 |
|
|
|
"Java: Re-inventing the wheel, one square at a time." _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Dec 28, 2004 12:20 pm Post maybe stupid Post subject: |
 |
|
|
|
Ekted! You're a genius!  _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Dec 28, 2004 12:31 pm Post maybe stupid Post subject: |
 |
|
|
|
Java is all about NOT reinventing the wheel, unlike C. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Dec 28, 2004 1:08 pm Post maybe stupid Post subject: |
 |
|
|
|
>.< that hurts _________________
 |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Tue Dec 28, 2004 8:00 pm Post maybe stupid Post subject: |
 |
|
|
|
Very. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Wed Dec 29, 2004 12:05 am Post maybe stupid Post subject: |
 |
|
|
|
Assassin, do you even code? |
|
Back to top |
|
 |
lp_street_soldier Thing 1

Age:33 Gender: Joined: Apr 24 2004 Posts: 352 Location: Britain Offline
|
Posted: Wed Dec 29, 2004 7:20 am Post maybe stupid Post subject: |
 |
|
|
|
Dr Brain wrote: | Java is all about NOT reinventing the wheel, unlike C. |
... just take it. |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Wed Dec 29, 2004 9:30 am Post maybe stupid Post subject: |
 |
|
|
|
BaK, Im trying to learn python No one make fun of me or i will hurt you. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Wed Dec 29, 2004 12:46 pm Post maybe stupid Post subject: |
 |
|
|
|
Python looks weird to me |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Dec 29, 2004 1:24 pm Post maybe stupid Post subject: |
 |
|
|
|
You look weird to me.  |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Wed Dec 29, 2004 11:19 pm Post maybe stupid Post subject: |
 |
|
|
|
Dr Brain wrote: | Java is all about NOT reinventing the wheel, unlike C. |
that makes so little sense in so many ways and only a little sense in one way (which isn't a way Ekted was talking about) |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Dec 29, 2004 11:43 pm Post maybe stupid Post subject: |
 |
|
|
|
Java provides a huge library for programmers to use, so they don't rewrite their linked lists classes from scratch (unlike C).
I might add that Ekted counts this as a feature of C, the reinventing of the wheel.
The STL also provides this service to C++ programmers. |
|
Back to top |
|
 |
lp_street_soldier Thing 1

Age:33 Gender: Joined: Apr 24 2004 Posts: 352 Location: Britain Offline
|
Posted: Thu Dec 30, 2004 4:39 am Post maybe stupid Post subject: |
 |
|
|
|
SuSE, I guess you didn't read this -
Beware: argues for fun. Should be considered armed with facts and dangerous. Do not attempt to draw into any sort of debate.
Imagine him at home... O_O |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Thu Dec 30, 2004 12:53 pm Post maybe stupid Post subject: |
 |
|
|
|
Dr Brain wrote: | Java provides a huge library for programmers to use, so they don't rewrite their linked lists classes from scratch (unlike C). |
lol
lp_street_soldier wrote: | SuSE, I guess you didn't read this -
Beware: argues for fun. Should be considered armed with facts and dangerous. Do not attempt to draw into any sort of debate. |
...hmmm?
lp_street_soldier wrote: | Imagine him at home... O_O |
arguments don't generally last as long in real life |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Dec 30, 2004 3:59 pm Post maybe stupid Post subject: STL Evilness |
 |
|
|
|
Writing your own classes is always better than using some pseudo-black-box class like STL (or even worse, Java). I call STL pseudo-black-box because Plauger obviously wrote his code to be REALLY confusing.
Relying on std::vector
void insert(iterator _P, size_type _M, const _Ty& _X)
{if (_End - _Last < _M)
{size_type _N = size() + (_M < size() ? size() : _M);
iterator _S = allocator.allocate(_N, (void *)0);
iterator _Q = _Ucopy(_First, _P, _S);
_Ufill(_Q, _M, _X);
_Ucopy(_P, _Last, _Q + _M);
_Destroy(_First, _Last);
allocator.deallocate(_First, _End - _First);
_End = _S + _N;
_Last = _S + size() + _M;
_First = _S; }
else if (_Last - _P < _M)
{_Ucopy(_P, _Last, _P + _M);
_Ufill(_Last, _M - (_Last - _P), _X);
fill(_P, _Last, _X);
_Last += _M; }
else if (0 < _M)
{_Ucopy(_Last - _M, _Last, _Last);
copy_backward(_P, _Last - _M, _Last);
fill(_P, _P + _M, _X);
_Last += _M; }} |
Relying on self
template <class _AC>
void SVector <_AC>::insert(_AC *here, const _AC &item)
{
if (end <= next)
{
_AC *dest;
int new_space = count() + 1 + EXTRA;
//allocate a new array and copy up to the reserved spot
_AC *new_array = operator new(new_space * sizeof(_AC));
dest = copy(new_array, begin, here - begin);
//"insert" the item
new (dest++) _AC(item);
//copy the rest
next = copy(dest, here, next - here);
//set the pointers
begin = new_array;
end = begin + new_space;
realloc_flag = true;
}
else
{
_AC *dest = next++;
_AC *source = dest - 1;
while (dest > here)
{
new (dest++) _AC(*source--);
source->~_AC();
}
new (dest) _AC(item); //dest = here
}
} |
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Dec 30, 2004 6:42 pm Post maybe stupid Post subject: |
 |
|
|
|
I've found java a lot easier to use than C, C++... but thats just me. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Dec 31, 2004 10:53 am Post maybe stupid Post subject: Re: STL Evilness |
 |
|
|
|
Cyan~Fire wrote: | Writing your own classes is always better than using some pseudo-black-box class like STL (or even worse, Java). I call STL pseudo-black-box because Plauger obviously wrote his code to be REALLY confusing.
|
We were talking about reinventing the wheel, not what you think is better. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Dec 31, 2004 1:11 pm Post maybe stupid Post subject: |
 |
|
|
|
I'm arguing that this kind of re-inventing the wheel is better than Java's king of re-inventinting the wheel. You two were talking about different things, right? |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jan 01, 2005 11:42 am Post maybe stupid Post subject: |
 |
|
|
|
Recap: I am saying Java doesn't reinvent the wheel. I am saying C does. You are saying C does, and that you like it that way. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Jan 01, 2005 1:46 pm Post maybe stupid Post subject: |
 |
|
|
|
Java is re-inventing the wheel as in it's creating another programming language when better ones existed already.
C lets its users re-invent the wheel through writing their own functions and structs to do what they want. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jan 01, 2005 3:48 pm Post maybe stupid Post subject: |
 |
|
|
|
C reinvented the wheel in the same respect, one might say.
It wasn't the first programming language. Not even close to the first. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Jan 01, 2005 7:03 pm Post maybe stupid Post subject: |
 |
|
|
|
Did Einstein re-invent physics? |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jan 01, 2005 8:56 pm Post maybe stupid Post subject: |
 |
|
|
|
No. Your point?
My statement was a obviously flawed support of your own statement about C and Java. By challenging it, you don't help to prove your original point at all.
I was making the point that OBVIOUSLY C was a good thing and doesn't "reinvent the wheel", and that Java is also a good thing and doesn't "reinvent the wheel". |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Sat Jan 01, 2005 10:27 pm Post maybe stupid Post subject: |
 |
|
|
|
Any of you even understand Ekted's quote at all? It doesn't mean that Java doesn't allow users to re-invent the wheel, or that it is easier or harder than any other language. It just mentions that the way in which it works, is much more unusual and clunkier than some of the other languages. Thus the "one square" part.
So a quick summary: C forces people to re-invent the wheel all the time. Java does more to prevent everyone from having to remake linked list and such, but its method of doing isn't as good as it should be, and is abstracted too much. Thus, when using Java's build in supports, it doesn't always act how you need it to. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Jan 01, 2005 10:58 pm Post maybe stupid Post subject: |
 |
|
|
|
Mine GO BOOM wrote: | Java does more to prevent everyone from having to remake linked list and such, but its method of doing isn't as good as it should be, and is abstracted too much. Thus, when using Java's build in supports, it doesn't always act how you need it to. |
I disagree, but that's not the point.
If you don't understand why Java was made the way it was, one would make comments like Cyan, MGB and Ekted have all made.
C is a flat head screwdriver. Java is a phillips head screwdriver. They seem to go for the same purpose on the surface, but thinking one type should be enough for all is flawed. |
|
Back to top |
|
 |
|