Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-16-2002, 08:01 PM   #51
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by TheFLY
But no programming for me tonight damn I need some beers and pussy in that order.
True dat.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 06:00 AM   #52
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by TheFLY
I used to love programming until windows came out. Dude I wish we all still used DOS. I used to love addressing the video memory directly in 320x200x256 -- Mode 3 or something, right?... And fuck all that OOP crap like garbage collection and portability -- like it made programming any better or more fun... Windows was the worst thing that ever happened to programming. I remember when programmers coded their own window libraries... If I wanted to draw a damn window I would draw the fucking window myself direct to the video memory with my own fucking code... If I wanted fonts -- I would draw the fucking letters myself! If I wanted the letters to have colors I'd code my own fucking algorithm to shade them! If I wanted to access the modem I could communicate directly with COM1 or COM2... If I wanted to make a sound I'd fucking talk directly to the fucking sound card! Now you got to jump through the hoops of anal retentive dumbasses...

It just ain't the same man. Too much bullshit.
I completely agree. 320x200x256 is mode 13h - man it was nice to have a linear frame buffer you could access directly. The only problem is that you needed to go to mode x, which wasn't linear, if you wanted multiple frames. But some algorithms just seemed to work just as nicely in modex, since things were drawn vertically (like doom and voxelspace). Anyway, for the applications in question in this thread, the fly is right - all that overhead crap is just shit slowing the system down.

BUT, you can't dis OOP (even though I hate it, personally), because it is respsonible for the fact that I can make a multi-media app for one PC, and have it run on 1,000,000's of others without worrying about which video card or sound card they had. Yes, back in the day mode 13h would work for everyone, but the sound cards were a mess. The fact is, with the capitilistic society we live in, it is impossible to govern standards, so it was bound to happen that everyone had their own unique PC. Bill Gates and all that DirectX overhead enables coding as if we were coding on a video game console - it works on them all (almost). ;)

Man, did I ever hate windows when it started to become popular, though...
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 06:01 AM   #53
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
TheFLY,

What have you programmed in mode 13h anyway? Anything you willing to show me?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 06:04 AM   #54
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by TheFLY
... I'm just trying to stir up some controversy -- some intellectual debate... Let's come up with some new ideas -- new ways of trading traffic... Creativity!
I can see you are doing exactly that. I wish there were more people like this on the boards.
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 09:56 AM   #55
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by HQ
TheFLY,

What have you programmed in mode 13h anyway? Anything you willing to show me?
Nope.... I had some simple games -- some spaceships in space and shit. One of my all-time favorite games was Sopwith and Sopwith2 -- I played those for days on end so I tried to code my own version. Probably 2 years ago I dumped about 100 floppy disks in the trash ;) I had also worked on my own BBS from scratch (not a Telegard hack but I had one of those too -- I had devised an ANSI algorithm for my BBS that would essentially compress the ansi by only re-drawing (with x,y) only the parts of the screen that needed to be re-drawn (doing a compare with what was already on the screen) -- instead of redrawing everything from scratch each time (scrolling up)... I was pretty proud of that idea for a BBS -- but highschool got the best of me and that's about the time people were discovering the internet w/ dialup gateways from BBS -> university computers... I met one of the original ANSI inventors at some interview for the Pathfinder Awards (highschool shit) but he seemed pretty un-appreciative of my interest in ANSI graphics haha... Fuckers didn't give me the award -- owell...

Juge I didn't know you wrote code... Can you ICQ me for a fresh trade? #1622420 Hmm I don't see you in my ICQ list...
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 10:08 AM   #56
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by HQ
TheFLY,

What have you programmed in mode 13h anyway? Anything you willing to show me?
I just did a google.com search -- you can still play Sopwith! Wow I wonder if the multiplayer internet option works...?!

"Sopwith2.zip The cult classic!"
http://www.classicgaming.com/sopwith/multi.htm
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 11:18 AM   #57
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by TheFLY
Nope.... I had some simple games -- some spaceships in space and shit. One of my all-time favorite games was Sopwith and Sopwith2 -- I played those for days on end so I tried to code my own version.

...snip...

Juge I didn't know you wrote code... Can you ICQ me for a fresh trade? #1622420 Hmm I don't see you in my ICQ list...
Sopwith 1 and 2 rocked. I played those forever. Digger was probably my all-time favorite. Someone recoded it to work on today's PC's with higher resolution graphics, BUT, they maitainer the original code, so you are still playing the exact same game... very cool.

I just wrote you ICQ, btw. ;)
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 11:21 AM   #58
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Ahhh.. the memories (from http://www.mobygames.com/game/shots/gameId,1380/ ):



Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 11:24 AM   #59
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539




MUSIC (remix):
http://www.soundtrackers.de/archives...nd_reality.mp3

Last edited by HQ; 09-17-2002 at 11:47 AM..
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 11:26 AM   #60
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Pics from:
http://www.fortunecity.com/skyscrape...1/g2ndreal.htm
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2002, 11:42 AM   #61
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Future Crew today:

Crazy Finns Forge 3-D for PDAs
http://www.wired.com/news/games/0,2101,47850,00.html
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 11:22 AM   #62
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
$a000. rings a bell anyone LOL
Mode X was double buffering - not triple.
TheFLY: Windows was not a bad move for programming. If was a move on OS. Programming progressed regardless of Windows. OOP and Garbage collectors were not invented because of windows, nor was multi-tasking (remember autodesk?)
Saying Windows is bad because it complicated your life is like saying cars is bad move because horses were good enough (and safer )
HQ: All the jokers (no offense) that told you all you need is to clean your code.. Ignore them. Getting a car to run 500Mph dont require some extra-weight removel - it requires a Jet engine
Mod_perl is a good tool if you want to still code in perl but make the script run fast. Its not only accelerates the scripts it also gives you DB connection pooling tools - which are essential if you are doing DB things.
Writing in C - instead of perl will solve something but not everything. If you do DB stuff - writing in mod_perl with DB connection pooling will work MUCH faster than C code or even ASM code (with no connection pooling).
Biggest disadvantage of mod_perl = memory consumption. Its a killer. make sure you got atleast 1G mem.
TheFLY: Relying on cookies or approximation to track traffic is a brilliant idea - I would even go further and not require stats from my sponsors - just approximate the traffic I send them and devide by 2000 and multiple by $20.. Good enogh no?
Same thing with diving air/time reserve calculation - Approximation rocks ;)
Who needs Unique?.. Hell - who needs productivity? hehe. Hell - who needs tracking anything??? in average - everything is average - so fuck it
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 04:23 PM   #63
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by XXXManager
$a000. rings a bell anyone LOL
Mode X was double buffering - not triple.
Yes, $A000 sure rings a bell....

Mode-X can be double buffered and triple buffered... hell, I even quadruple buffered with it. It helped when I didn't know how to get an interrupt to fire at the start of the retrace for proper triple-buffering. In 320x200, there's room for 4 pages. 320x240 only had room for 3, and 320x400 only had room for 2.
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 06:01 PM   #64
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
XXXManager,

1GB RAM for mod_perl? I am getting a new server tomorrow and it's only for 512MB RAM. Are you sure I need an upgrade?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 06:21 PM   #65
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by XXXManager
TheFLY: Windows was not a bad move for programming. If was a move on OS. Programming progressed regardless of Windows. OOP and Garbage collectors were not invented because of windows, nor was multi-tasking (remember autodesk?) Saying Windows is bad because it complicated your life is like saying cars is bad move because horses were good enough (and safer )


(...Future Crew music in background...) LOL are you talking about Quarterdeck's DESQview -- I loved DESQiew! There was also OS/2 which was the first to do "preemptive" multi-tasking... and was able to multi-task DOS long before Windows.

Sure programming "progressed" in small circles -- but Windows took over the market! Nobody had a choice in the matter! Even IBM employees would complain about having to code for Windows... that's where the money went. Windows was being shipped pre-installed everywhere -- you didn't have a choice -- it was force-fed to the consumer. Microsoft did the same thing again with Frontpage! ;)

Sure OOP was an evolutionary step independent of Microsoft -- but personally I think it sucks. And many die-hard coders will agree with me.

OOP sux for the following obvious reasons.

1. More lines of code to do the same thing.
2. Why force inheritance on problems? Take an example from a classic OOP argument. Why does a toaster need to inherit a heating element? So I can build an oven to inherit a damn heating element? NO! Just build the fucking toaster AND THEN build a fucking oven! Why? BECAUSE AN OVEN IS NOT A TOASTER. By trying to be crafty -- "saving work" -- by avoiding "redundant" code -- you have in effect made the same task much more complicated! And you didn't even save any time because you had to a) work within the complications of the OOP methodology/syntax and b) code runs slower and c) since the heating element is not exactly the same for both devices -- you have to make adjustments anyway!
3. OOP is all about "hiding" what's *really* going on -- they call it "encapsulation". Who needs good documentation? Just use these objects! Use these objects and you can build anything! LOL. Now we have hoards of dumb programmers that don't even understand why they are using objects in the first place!
4. Portability is a bullshit issue -- everyone runs Windows anyway. It used to be nice that MAC's were considered graphics machines and IBM's were considered number crunchers, and Amigas were considered video machines. Now we just do everything brute-force instead of elegantly.
5. If you merely want to save reduntant work -- that's called procedural programming -- it was invented long before OOP and essentially does the same thing -- in a more straightforward and flexible way.

It's insane! It's insane how slow computers are given the amazing advances in hardware. It's insane that I can load up a Java application on a Pentium processor and watch window drawing itself. That is pathetic. All this bullshit about Java being platform independent -- big fucking deal! Everyone runs Micro$hit anyway. Same goes for Java's promise about being version independent and more stable -- that's a load of BS -- if you don't have the correct SDK your shit is going to crash.


Quote:
Getting a car to run 500Mph dont require some extra-weight removel - it requires a Jet engine
This is exatly the attitude that pisses me off!!! 500mpg is too fast for human reaction time... this ain't fucking TRON! Stop thinking like an OOP programmer -- your car did not inherit a "engine object"!!! Should all engines be the same? Noooo... Every engine is UNIQUE!!! OOP is Diversity's enemy... It's the enemy of Intelligence. The enemy of Creation!


Quote:
TheFLY: Relying on cookies or approximation to track traffic is a brilliant idea - I would even go further and not require stats from my sponsors - just approximate the traffic I send them and devide by 2000 and multiple by $20.. Good enogh no?
Same thing with diving air/time reserve calculation - Approximation rocks ;)
Who needs Unique?.. Hell - who needs productivity? hehe. Hell - who needs tracking anything??? in average - everything is average - so fuck it
OK while you're busy doing calculations I will be posting on GFY and tonight I'm moving to NYC! ;)

Anyway we aren't diving for surfers -- this is the fucking internet -- not Baywatch.
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:11 PM   #66
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
TheFLY, I once felt like you did for years and years until finally the day came when Windows did *NOT* run slow. I believe this was when I purchased a 200MHz computer running windows 95 or 98. It was the first time ever that I could click on a window and have it come up within 0.5 seconds, as opposed to listening to the hard drive swap memory in and out for 10-20 seconds for every fucking ALT-TAB. At that point, I started to realized that Windows was here to stay and it would make all of our work easier and make us all more succesful. When this really hit home is when 3D acceleration graphics cards hit the market, specifically 3Dfx's Voodoo 2. Games not ran fast on a Windows system for the first time ever, and it higher detail than every previously imagined.

Then I saw what Bill Gates saw back in 1975 (or sometime around then). The little road bumps here and there that we complained about were insignificant in the big picture.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:15 PM   #67
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
HQ: I would suggest you get 1G. It can run on 512 as well but 1G is definately a requirement (unwritten I guess). MOD_PERL is HEAVY on mem. Get more while you can - its cheap these days. More mem will help you anyway even for non-mod_perl stuff

TheFLY: Hey I truely read all what you wrote. Damn - I dont have time to live now
so...
OOP unlike windows does not come preinstalled with every machine like windows. People would not program it if it was a bad idea. OOP is not good for everything but its a damn good idea for complex object. If you have'nt been a part of such a project you would not understand the need. Hell - I dont use if for everything but when its needed its a bless.

OOP is quite the oposite from what you said:
"More lines of code to do the same thing" - wrong. I would not program a file compression utility in OOP but a banking system or an ERP or any other multi-"essence" system - i will indeed do.

Proceduraly programming sux. Procedures is the nicest way to do things "un"nicely. OOP takes that ugliness and covers it.
OOP is not a syntax - its a way of thinking. Encapsulating (hiding the shit ) is only one aspect of it.

Same thing with Inheritance.

Save redundant work? Writing dumb procedures will get you as far as possible from doing efficient non-redundant work. OOP helps as much as anything today is able to - in saving redundant work. It takes some time to clean your room - but once you did that - its damn much easier to find your lucky socks

"Getting a car to run 500Mph dont require some extra-weight removel - it requires a Jet engine"
This was an analogy for people (you included I think) saying that HQ needs to just tidy his code a little. BS - tidy you code from now till forever - keeping a code in native perl will never be fast if you don't use DB connection pooling and compiled code.

HQ: listen man - if you do DB stuff - mod_perl is better for you than C or ASM - Forget about cleaning your code - you GOT to use DB-connection pooling and use compiled code. doing C DB connection pooling is possible - but you will have to figure out how OR find an already written library for that. MOD_PERL has all of that inside and needs very little porting IF you wrote your perl code right. Get the MOD_PERL running and ONLY THEN think about other smarter moves like really porting your code (atleast the mission critical parts) to C.
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:33 PM   #68
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
XXXManager,

I'll think about the 1GB RAM... I'm leasing, so it is a bit more expensive. $40 extra / month. That's actually not too bad.

Explain DB-connection pooling. Does it keep things resident in memory? Does it keep the connections opened so you do not have to connect and disconnect to the DB all the time? What is it exactly? Sounds similar to what I want mod_perl to do, just keep the fucking thing open and compiled so I do not have to re-do that 10 times every second.

Right now, to remind you, I am using PERL/DBI/MySQL.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:49 PM   #69
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
Quote:
Originally posted by HQ
XXXManager,
I'll think about the 1GB RAM... I'm leasing, so it is a bit more expensive. $40 extra / month. That's actually not too bad.
Explain DB-connection pooling. Does it keep things resident in memory? Does it keep the connections opened so you do not have to connect and disconnect to the DB all the time? What is it exactly? Sounds similar to what I want mod_perl to do, just keep the fucking thing open and compiled so I do not have to re-do that 10 times every second.
Right now, to remind you, I am using PERL/DBI/MySQL.
Well. dont know about prices and server. More memory makes sense. especially 1G. Maybe consider colocated server
Anyway - DB connection pooling:
Once you said you use DBI - I shouldn't care (for that DB conn pooling) what DB you use because its all hidden behind the DBI.
Anyway...
DB connection pooling is - creating a "pool" of opened connection to the DB and when ever your script needs a connection to the DB it takes one from the pool.
This saves the time and resources needed to create a new connection. This actually helps in two places - both your web-server and your DB server (assuming they are different machines). anyway - even if its the same machine - its helps him twice. Openning a new DB connection is very laborious. It takes alot (relatively) time, cpu and memory to do that. Instead - pulling an already connected connection from the pool is very fast and easy on resources. there are mechanisms to ensure the connection is valid (like db pinging etc) but there are all done for you and you need not to worry about them. basically - you keep using your DB as you are now - mod_perl wraps all the DB commands and "covers" them with a layer that does all that funky shit.
Just to let you realize this thing - it can help you turning your script from a server killer to a neat code that can sometimes run hundrads of times faster - literally speaking!
You ofcourse need to configure it right - so you dont have too little connections opened (keeping your script waiting in queue for a connection too long) or too many connections (keeping your resources low and maybe even killing performance)
BUT in general - if you do heavy DB stuff in perl MOD_PERL will help you FAST and ALOT. both DB conn pooling and keeping a pool of processes of the compiled code.
Pools are popular with mod_perl
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:49 PM   #70
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by XXXManager
"More lines of code to do the same thing" - wrong.
Dude it's simple. You take out all the extra syntax required for inheritance and you get fewer lines of code. Why do I need so many parent objects -- when I can compress all the methods into one object with no parent? If you need two objects to inherit the same parent -- you don't need OOP to solve that problem! All your parent objects will be converted into sequential instructions anyway! Code sequentially in the first place -- less code -- faster code.

Quote:
Proceduraly programming sux. Procedures is the nicest way to do things "un"nicely. OOP takes that ugliness and covers it.
OOP is not a syntax - its a way of thinking. Encapsulating (hiding the shit ) is only one aspect of it.
Hate to inform you bro, but OOP is just procedural programming with lots of syntactical sugar added. Procedural programming is only ugly if you are using things like global variables and goto statements... And I never said that OOP wasn't "a way of thinking" -- it's just a dumb way of thinking.
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:56 PM   #71
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by TheFLY
Why do I need so many parent objects -- when I can compress all the methods into one object with no parent? ...[cut]... Code sequentially in the first place -- less code -- faster code.
Steve Gibson?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2002, 07:56 PM   #72
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
Quote:
Originally posted by TheFLY
Hate to inform you bro, but OOP is just procedural programming with lots of syntactical sugar added. Procedural programming is only ugly if you are using things like global variables and goto statements... And I never said that OOP wasn't "a way of thinking" -- it's just a dumb way of thinking.
Bro - Computer programming is all about syntax.
Saying OOP is a "programming with lots of syntactical sugar" damn - what? of course - thats why its good!
If you don't like OOP - good for you. If like my father - he don't like computers - he believes he can write with pen and paper much better. he never had a paper crash on him. Explain to him that he can copy and paste things he already wrote, spellcheck etc...
OOP rocks and explaining it here will be futile and stupid - there are books about it - and the fact that so many people use it - and that the better software are written in OOP prooves enough to me. I can do in OOP a complex thing in a year - which will take me 3 in procedural programming (and even then I will try to mimic OOD) and still will be not-mantainable.
I would love to discuss this but lets open a new thread about OOP. Call it "OOP sux! .... not !/?"
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 05:56 AM   #73
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by TheFLY
This is exatly the attitude that pisses me off!!! 500mpg is too fast for human reaction time... this ain't fucking TRON! Stop thinking like an OOP programmer -- your car did not inherit a "engine object"!!! Should all engines be the same? Noooo... Every engine is UNIQUE!!! OOP is Diversity's enemy... It's the enemy of Intelligence. The enemy of Creation!
Fly, you have quite a few good points against OOP. I think OOP works well for certain things, like the GUI of an OS or program. But, you are right... there are TONS and tons of programmers out there that don't have a fucking clue what is going on. There are tons of teachers out there teaching these fuck nuts because they dont have a clue, either. I've gotten questions wrong for describing how shit actually works, and not desribing it the way they think it magically works (the teachers think I miss the generalilty of the question - fuck you!). I never understood how someone can program something without having a fucking clue of how it works... it's amazing.
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 08:16 AM   #74
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
Quote:
Originally posted by Juge
Fly, you have quite a few good points against OOP. I think OOP works well for certain things, like the GUI of an OS or program. But, you are right... there are TONS and tons of programmers out there that don't have a fucking clue what is going on. There are tons of teachers out there teaching these fuck nuts because they dont have a clue, either....
Having some people who dont know, or dont like (because they dont know) OOP dont make the "points" against it right.
The points pointed are wrong, and there are other cons for OOP - not the ones suggested.
Indeed - some people dont know OOP and babble shit about it - some programmers dont know how it works (or how to think) and they are a pittiful excuse for programmers, BUT they dont make OOP less good - they just suck
As to your point - "OOP works well for certain things" - you are correct. OOP does'nt suit everything.
Having a script that goes through files and find the ones with the letter "a" in the filenames requires no OOP.
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 11:30 AM   #75
Script Dude
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 86
Interesting Thread

Quote:
Originally posted by TheFLY

OOP sux for the following obvious reasons.

1. More lines of code to do the same thing.
Good OOP results in less code for the same thing, but allows you to take on bigger tasks.

Quote:

2. Why force inheritance on problems?
Inheritance is very misused in OOP. Inheritance can result in very brittle programs. The primary benefit is enabling polymorphism in languages such as java and C++. Other OOP languages such as SmallTalk and Objective C can handle polymorphism without using inheritance.

(Polymorphism can be much better than the old style case statements. If your code has case statements, its probably not OO from a purist point of view.)

Quote:

3. OOP is all about "hiding" what's *really* going on -- they call it "encapsulation".
True. This hiding is absolutely required in any large program and just darn useful in small ones.

Good programming (Clear programming) is all about limiting unwanted interactions and putting things that are related close together in the program.

OOP is intended to do this. That doesn't mean that everyone uses it correctly.

Quote:

Now we have hoards of dumb programmers that don't even understand why they are using objects in the first place!
Oh, So very very true.

Quote:
4. Portability is a bullshit issue
Java <> OOP.

Quote:
5. If you merely want to save reduntant work -- that's called procedural programming -- it was invented long before OOP and essentially does the same thing -- in a more straightforward and flexible way.
Paradoxically, It takes a lot of effort to save redundant work.

There is no difference between an Object library and a procedural library for these purposes, except that OOP gives you more tools for program organization.
Script Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 11:48 AM   #76
Juge
Confirmed User
 
Join Date: Feb 2001
Posts: 1,917
Quote:
Originally posted by XXXManager
Having some people who dont know, or dont like (because they dont know) OOP dont make the "points" against it right.
The points pointed are wrong, and there are other cons for OOP - not the ones suggested.
Indeed - some people dont know OOP and babble shit about it - some programmers dont know how it works (or how to think) and they are a pittiful excuse for programmers, BUT they dont make OOP less good - they just suck
As to your point - "OOP works well for certain things" - you are correct. OOP does'nt suit everything.
Having a script that goes through files and find the ones with the letter "a" in the filenames requires no OOP.
Yes, I agree with you. Because the majority of people who learn a language stink at it, does not make the language stink. I 100% agree that OOP enabled the windows GUI to become what it is today, and allow programs to easily ALL use the same file-open dialog box which makes it easy for the programmer, and easy for the user (since they don't have to 'learn' each new program - we have to realize the majority of computer users suck, and this is what windows is for).
Juge is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 12:15 PM   #77
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
I think OOP only becomes beneficial on large scale projects. This problem has to be defined more precisely before anyone can start calling the others wrong.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 12:41 PM   #78
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by Script Dude
Paradoxically, It takes a lot of effort to save redundant work.
Save($Effort) {
$Effort += $Time; # Work
Save($Effort);
}



I loved your post Script Dude!!!
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 12:58 PM   #79
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Years ago one of my perl scripts was getting to many requests, so I was in need of a quick temporary fix because it was getting the server DOWN.

I searched for weeks and I finally found the solution.
And it is what I call a permant temporary solution, ya know ?
I said years ago, but it still running sweet. I just love it.

No one posted this solution here yet.


Quote:
The more I read your posts the more respect I get for you dude
I agree with HQ.

Yeah, we need scripts just for saving time and making money.

Jer
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 01:00 PM   #80
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Yeah, I'm teasing you all !
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 01:58 PM   #81
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
What is it???????????????? I will *let* you sign up under me in some sponsors if you tell me.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 02:13 PM   #82
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Quote:
Originally posted by HQ
What is it???????????????? I will *let* you sign up under me in some sponsors if you tell me.
But I'm already promoting PurityScan and Adult Platinum, sorry.

Yeah, yeah, I'm teasing !
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 02:15 PM   #83
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
You won't need to install any modules or other stuff but will need telnet or ssh access (duh!).
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 02:27 PM   #84
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Gotta run, there better be an answer here when I get back!!!!!!!
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 03:38 PM   #85
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Tsc, Tsc, HQ.

Ask nicely and I'll post the solution here, ok?

I'm just a bad boy.

Jer
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 04:56 PM   #86
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by Jer
Tsc, Tsc, HQ.

Ask nicely and I'll post the solution here, ok?

I'm just a bad boy.

Jer
Jer

New server tomorrow, so it makes no difference now.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 06:55 PM   #87
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Quote:
Originally posted by HQ

Jer

New server tomorrow, so it makes no difference now.
Since it makes no difference now I'll post.

http://mirrors.develooper.com/perl/A...tils/perlcc.PL

Copy this script and upload it to your server. I don't know if I'm correct (have the command line on another computer), but I think it is:

Telnet or SSH:

perlcc.pl your_RAM_eater_script.pl the_new_script.pl


Thanks for the love.

Jer
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2002, 06:56 PM   #88
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
If you wanna kill me remember: GOD IS BRAZILIAN.

;)
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 05:19 AM   #89
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Excellent, thanks Jer!
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 08:07 AM   #90
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Care to explain what perlcc.pl does and where it comes from?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 09:32 AM   #91
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
I have no idea what it does, really. I don't need to know this.
I tried using it, it worked and compiled my script, SWEET. I'm happy.

I read about PHP and MYSQL stuff. The last time I looked for info about perl was maybe 2 years ago.

Jer
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 09:32 AM   #92
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Did it work for you ?
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 11:22 AM   #93
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by Jer
Did it work for you ?
Haven't tried it yet. I want to know what it does first!
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-20-2002, 11:25 AM   #94
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Quote:
Originally posted by Jer
I tried using it, it worked and compiled my script, SWEET. I'm happy.
It compiled your script?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2002, 07:45 AM   #95
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
bump for Jer.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2002, 08:33 AM   #96
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Yes, it compiled my script. Isn't working for you ?

I didn't download this script from the URL I posted here, I had the one I downloaded years ago on another computer.

I'll turn it on and see if the command line is wrong, ok ?
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2002, 09:22 AM   #97
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Actually, I am unable to try it yet, as I am migrating all my stuff to a new server so I cannot change anything on one server or the other. I just want to know what you mean by 'compile'. What does it do? How does it make your scripts go faster? Where can I get more info on it other than a directory listing of the file. Enough questions!?!
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2002, 11:13 AM   #98
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Just search Google for "perlcc" and you'll find all the info you need. This scripts makes a executable file, so it's like a compiled script. It runs without opening RAM queries (I forgot the right term) all the time. You'll the difference in RAM usage by your script.

With the normal perl script (script code, text file) it was fucking my flat text databases all the time (lots of IDs almost everyday). Now it runs with more traffic and database crashes like every just 15 days with just 1 ID. So it really made difference for me.
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2002, 11:16 AM   #99
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Now teach me english, please.
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.