Jump to content


Photo

Largest amount of programming on one page


  • Please log in to reply
25 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 21 September 2006 - 08:00 PM

I have noticed when programming in general, a lot of the pages end up being well over 500+ lines of programming.  I ended up programming this one page
http://www.thecampus...ce.com/view.php
The most I ever had on one page was 875 lines of pure programming, and after I am done, it'll be well over 1000.  I have it handling a lot of different stuff from a lot of different pages.  What is the most amount of programming lines you ever had on one page before.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 21 September 2006 - 08:10 PM

ok, i'll bite, although, the most amount of code per page sometimes volunteers you for the most disorganized code as well sometimes ;) . once i have a page that reaches the 1000 line mark, i seriously start looking for duplicate code and ways to extract function calls or OOP into their own structured files. my average files usually end up being around the 400-500 line mark. i'd have to say my biggest so far, though was in the neighborhood of 3,500 lines.

here's the catch, though: when i went back a year later and rewrote the code, i extracted the pieces into three separate files that ran a grand total of just over 2,000 combined. so... you do the math :P
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 21 September 2006 - 08:11 PM

One of my pages for an AJAX backend was over 1400 lines.

Info: PHP Manual


#4 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 21 September 2006 - 08:18 PM

I would be amazed to see 1400 lines of ajax programming, that must have been quite a project.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#5 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 21 September 2006 - 08:26 PM

My average line count is also around the 500 mark per file, but the largest file of mine so far is around 1500 lines which is in a project I am currently working on, the file is pretty much complete though.

#6 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 21 September 2006 - 11:36 PM

businessman, keep in mind that it is just PHP.  The JS part came from a variety of js files.  It was basically just a bunch of functions (28 if I recall correctly) that I called from a TON of different locations within a piece of my application suite.

Damn I miss that job :(

Info: PHP Manual


#7 neylitalo

neylitalo
  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 22 September 2006 - 12:19 AM

at my place of employment, our systems take PHP's OOP functionality to a level that is almost pushing the boundaries, so my/our files tend to stay under 400 lines. The average class is about 200 lines. But then again, we have 2,486 PHP files in our system's tree, 172 XML files, and 1166 .tpl files, so it adds up to a rather substantial amount of typing.

The commands I used to determine this:
$ ls -R ./* | grep '.php' | wc -l
$ ls -R ./* | grep '.xml' | wc -l
$ ls -R ./* | grep '.tpl' | wc -l

http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#8 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 22 September 2006 - 05:41 AM

I would be amazed to see 1400 lines of ajax programming, that must have been quite a project.


There is no such thing as AJAX programming. The programming/scripting in AJAX is just JavaScript. AJAX is when you use XMLHttpRequest in JavaScript.

#9 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 22 September 2006 - 12:21 PM

I know, but with me, what I consider ajax programming, is anything that you are actively putting together the proper elements to get the concept of ajax.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#10 neylitalo

neylitalo
  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 23 September 2006 - 08:31 AM

I would be amazed to see 1400 lines of ajax programming, that must have been quite a project.


There is no such thing as AJAX programming. The programming/scripting in AJAX is just JavaScript. AJAX is when you use XMLHttpRequest in JavaScript.


I would have to disagree with that. AJAX isn't a programming language, but neither is "OOP" - AJAX, like OOP, is a term to describe the technology or methods/techniques used to create a program. I'd say "AJAX programming" is a perfectly valid term.

Edit: I suppose, though, the term I should use is "OO programming"... or else it would expand to "Object Oriented Programming programming". And that's no good.
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#11 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 23 September 2006 - 09:01 AM

I know, but with me, what I consider ajax programming, is anything that you are actively putting together the proper elements to get the concept of ajax.


In that case, why is this on your website :

Ajax - (I have been studying this language since it's creation)


If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#12 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 25 September 2006 - 02:24 PM

http://en.wikipedia....X_(programming)
Just because I carry that opinion doesn't mean I don't know how to do it.  Also just because I don't use ajax all the time doesn't mean that I don't know how to do it.  I started looking up ajax quite a long time ago.  Which would be about 8 months, it's been out since 2005, so maybe not since it's creation I think I need to change that.  I guess your right, I shouldn't have put since it's creation, that doesn't really match the truth, it was more of about 6-8 months ago, it wasn't long after it came out, but I still need to specify that.  However about teh term Ajax, if I did ajax as a concept, then it's just putting multiple languages together, but I get annoyed when I hear terms like AHAH, asynchronious html, and http.  Or other like terms, because I feel that ajax itself is a very special form of programming, it is very powerful, but when they come up with all these otehr terms, ajax itself starts loosing it's powerful philisophically as a language.  I feel it's a very good term to use "programming language" with javascript because of it's nature.  WIthout the proper elements it doesn't work, and it's not called ajax. 

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#13 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 25 September 2006 - 02:29 PM

Maybe we should clarify the "creation" of AJAX..... which was actually several years ago.  The technologies that make up "AJAX programming" have existed for quite some time.  The fact that browsers only recently started supporting some of the methods is an entirely different subject.  If you truly wanted to talk about the creation of AJAX-type applications, you'd have to go back to the creation of XML and JS... which is WAAAAAAAY before 2005.

Info: PHP Manual


#14 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 25 September 2006 - 02:34 PM

Just because I carry that opinion doesn't mean I don't know how to do it.  Also just because I don't use ajax all the time doesn't mean that I don't know how to do it.... I feel it's a very good term to use "programming language" with javascript because of it's nature.  WIthout the proper elements it doesn't work, and it's not called ajax. 

wow. he wasn't even attacking your knowledge of the subject at all. he simply questioned why you used the term programming language to refer to AJAX on your site, but then above you said you know there is no such thing as AJAX programming. no question of your knowledge was implied, it's just inconsistencies like that that can really damage your credibility.

also, keep in mind that technically speaking, javascript is not a programming language at all, but a client side scripting language. if you want to get really technical, you could even argue that PHP is not a programming language, but rather a server side scripting language, too... but that one is up for debate ;) ... suffice to say, most of the time, people really aren't going to care whether or not a coder feels it is a good term or representation of a technology, but rather be sure you are using terms and descriptions that are widely accepted.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#15 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 25 September 2006 - 02:36 PM

If you truly wanted to talk about the creation of AJAX-type applications, you'd have to go back to the creation of XML and JS... which is WAAAAAAAY before 2005.


bingo... hence the coined name AJAX (Asynchronous JavaScript and XML).
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#16 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 25 September 2006 - 03:13 PM

Also just because I don't use ajax all the time doesn't mean that I don't know how to do it

sounds like the husband justifying to the wife why the toilet is still dirty...

I have some thoughts of my own on terminology (although i'm concious that this has gone WAY off topic).
Terminology, with regards to programming is generally used for one of the following reasons:
1, to make a coder sound knowledgable.
2, to make the coder sound better than another coder
3, to join the "Web 2.0 bandwagon" (or anything else that's "in" at the moment)
4, to make ones intentions clear to another, by using a generic "language".

so if none of the above really apply, then the terminology is somewhat irrelevent - especially as the final consideration comes down to results, not what stuff goes on in the background. The average end user couldnt care less as long as they have a nice, easy browsing experience.

AJAX is one of these things that (whilst i like it and clearly can see the benefits) is one of those buzzwords that seem to get used as a 'knowledge benchmark' - "you don't know AJAX? you must be rubbish then!!!!" or "wow!!! you know AJAX!!! you are god!!!"  (trust me, look around on certain forums and you WILL see these type of comments) - my question is though - before AJAX was widely introduced, did that mean coders that werent using it were rubbish?
didn't think so.

so after all that waffle by myself, my point is that it really doesn't matter whether it's AJAX Coding/AJAX programming/AJAX toilet cleaning/AHAH/AIAWOT.

back on to the original point - my files are generally as big as they need to be. I never really get to worried about the size of my pages, as long as it does the job effectively. however, sometimes if a page gets HUGE, i will make a point of putting a kind of index at the top of the file just so as I know exactly whats in there without hunting things down. most of the time i'll do that anyway.

Cheers
Mark
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#17 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 25 September 2006 - 03:19 PM

suffice to say, most of the time, people really aren't going to care whether or not a coder feels it is a good term or representation of a technology, but rather be sure you are using terms and descriptions that are widely accepted.

obsidian, if i'd have read this bit properly, i wouldnt have waffled on for ages lol

still, point well made
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#18 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 25 September 2006 - 03:26 PM

No, I never get offended with anything barand says, he has helped me so many times, I always love hearing his suggestions, I was just saying, I would never get offended by anything he said with how many times he helped me.  As for programming, yes javascript I would consider a scripting language, but if you look at some major javascript applications, it can get really heavy after awhile. Some javascript programming can be harder for me than php programming, and I have done javascript for longer than php. 
I thought ajax came out in 2005, if that's the case, when I update my site I will update that with the time period, when i first started with ajax, the first place I checked was wikipedia, it said 2005, since then I stated since it's creation, I am going to change that on the next website change. 
as what redbullmarky is saying, I don't really know anythign at all about web 2.0 itself because everything I look at web 2.0 it seems affiliated with .net and asp, and i don't like those languages much, I see ajax associated with web 2.0 but the thing with that, is it always seems to be associated with .net as well.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#19 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 25 September 2006 - 03:45 PM

I don't believe you could in no possible way be offended by anything he might say.

#20 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 25 September 2006 - 03:48 PM

I think my head hurts.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users