Heh, I just rewrote a block of code ...

Blieb

Diamond Member
Apr 17, 2000
3,475
0
76
I coded an array randomizing function last week ...

Today I was modifying something and busted out php.net as reference, of course, TODAY I find the function that did exactly what I wanted!

Lines saved: 80
Time Lost: couple hours

*smacks forehead*
 
Jun 18, 2000
11,208
775
126
Just remember that just about everything has been coded by somebody before. The key is having the sense to look for it before you start your work.;)
 

Blieb

Diamond Member
Apr 17, 2000
3,475
0
76
Originally posted by: KnightBreed
Just remember that just about everything has been coded by somebody before. The key is having the sense to look for it before you start your work.;)

The key is knowing where to find it and what the coder defined it as!

But this was pretty bone-headed :p
 

boggsie

Platinum Member
Mar 31, 2000
2,326
1
81
Originally posted by: xirtam
If you never reinvent the wheel, you never learn.

I find that the present-day wheel is highly over-rated and needs to be reinvented!

:p
 

ndee

Lifer
Jul 18, 2000
12,680
1
0
I love to write my own functions, also if I could find it on hotscripts or something... I made today some functions like... you have a mysql-result and it will automatic list it as a checkbox-list... you can also specify in how many columns you want it listed :) extremly useful :)

like this: http://pics.airlock.ch/cars/example

this is for different languages.
 

alkemyst

No Lifer
Feb 13, 2001
83,769
19
81
I am the google copy and paste king with code for the staples/basics....it makes absolutely no sense to reinvent the wheel.

Now somethings you can't find :)

When I was in Computer Operating Systems we had to build a model of a 'system' with wait states, a fifo and a filo section, registers and whatever other crap :) It was 8 processes.

Anyways everyone used C++ and pretty much copied everyone else...I did mine in VBScript as I was trying to figure out ways to do more and more with scripting languages that could be made into webapplications.

It was more difficult, but fun in a sense I completed it (the instructor didn't think it would be accurate and offered me a chance should it not work right to reattempt it in a different language)....it worked perfectly.