Welcome, Guest. Please Login or Register.
May 09, 2025, 05:06:47 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  !Heredoc must go! « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: !Heredoc must go!  (Read 2165 times)
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
!Heredoc must go!
« on: June 01, 2002, 07:58:04 AM »
Reply with quote

Two reasons I hate heredoc:

- Only linux line feeds (newlines, aka \n) are allowed after the heredoc end (EOT; in the case of YaBBSE).

- Error reporting is crooked. I gives wrong line #'s and just totally makes you want to slam at your computer with a hammer cause you can't figure out where the frigging error is.

Please escape from html when html is needed or use print tags. I suggest you control the whole html using one style sheet and one class file: class.formatting.inc.php

Which contains the following objects:
table (to create tables)
form (to create forms)
pakman (the one used to create packags)
font (to format text)
href (to make links and anchors)

That will increase yabb's usuability and will also generate more mods writers as mods will be easier to make then.

This tip = less html in code = faster board
                         ||
                better usability

Just my 2 cents. I hope I am still free to give my personal opinion.
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:!Heredoc must go!
« Reply #1 on: June 01, 2002, 10:28:38 AM »
Reply with quote

Yes Now Think About template system driven by db and class function queries?  how fast do you think this will be
Logged

ALL MODS Cancelled projected terminated
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
Re:!Heredoc must go!
« Reply #2 on: June 01, 2002, 10:44:56 AM »
Reply with quote

Fast. It will probably give speed boosts around 50% (guess).

Nother idea:
Limit sql queries by executing them only once and then defining them as constants or globals. I know this is already done with some of the queries, but I know for sure not with all.

Developer Idea:
Make a function to execute sql queries and then break the querie so error finding is easier. Like this:
function sql_query($query)
    {
    $sql_debug = 0;
    if($sql_debug === 1) {print("SQL query: ".str_replace(",",", ",$query)."<BR>");}
    $result = @mysql_query($query);
    return $result;
    }
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
RE: Templating system
« Reply #3 on: June 01, 2002, 12:46:41 PM »
Reply with quote

As the person writing the new templating system for v2 I can tell you a little about it:

* HTML will be in separate files
* Templating details will be kept in separate files (i.e. index, Message Index, Board Index) to avoid having to load masses of variables and to keep in modular.
* The rest... :-X

Once I've debugged it should provide something simple and flexible that makes it easy to move buttons/bars/elements of the design around and edit them. Code identification should be easier for those looking to make alterations too :)
Logged

You can't have everything... where would you put it? -- Steve Wright
Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:!Heredoc must go!
« Reply #4 on: June 07, 2002, 10:08:47 PM »
Reply with quote

Quote from: Mephidmann on June 07, 2002, 07:39:05 PM
Quote from: groundup on June 07, 2002, 06:47:51 PMHEREDOC RULES!
You're the first one to say that in my face  ;)

Um, okay, I'll be the second person to say that to your face: heredoc rocks. ;)

QuoteOnly linux line feeds (newlines, aka \n) are allowed after the heredoc end
So use a real editor, like Emacs or Vi. :P And they're not "linux line feeds," they're just plain old form feeds/newlines. Microsucks Winblows uses CRLF, two characters: carriage return (\r) and linefeed (\n).

QuoteError reporting is crooked. I gives wrong line #'s and just totally makes you want to slam at your computer with a hammer cause you can't figure out where the frigging error is.
It happens with any errors in PHP. Pity PHP's error reporting isn't as cool as Perl's. :(

QuoteI hope I am still free to give my personal opinion.
Heh, why wouldn't you be?

Btw, did you check out the updates I posted for the mod review script?
« Last Edit: June 07, 2002, 10:11:23 PM by michael » Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:!Heredoc must go!
« Reply #5 on: June 07, 2002, 10:17:28 PM »
Reply with quote

TY michael!  what would your alternative be? print ""?

that is just terrible :'(
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
Re:!Heredoc must go!
« Reply #6 on: June 08, 2002, 03:57:04 PM »
Reply with quote

Quote from: groundup on June 07, 2002, 10:17:28 PMTY michael!  what would your alternative be? print ""?

that is just terrible :'(

Escaping out from php maybe??
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
Re:!Heredoc must go!
« Reply #7 on: June 08, 2002, 04:01:00 PM »
Reply with quote

Quote from: michael on June 07, 2002, 10:08:47 PM
QuoteOnly linux line feeds (newlines, aka \n) are allowed after the heredoc end
So use a real editor, like Emacs or Vi. :P And they're not "linux line feeds," they're just plain old form feeds/newlines. Microsucks Winblows uses CRLF, two characters: carriage return (\r) and linefeed (\n).

I know what I'm talking about.

Vi sucks, I like ViM waaay better. Emacs, I hope you mean x-emacs, emacs for shell is just tooo anoyining (I hate typing commands).

I use Scite for Linux(yes, it has linux line feeds), I am needing a new editor becuase I have used this one long enough. I will probably step over to x-emacs, if only I could find my mandrake disks somewhere...
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:!Heredoc must go!
« Reply #8 on: June 08, 2002, 07:20:06 PM »
Reply with quote

Quote from: Mephidmann on June 08, 2002, 03:57:04 PM
Quote from: groundup on June 07, 2002, 10:17:28 PMTY michael!  what would your alternative be? print ""?

that is just terrible :'(

Escaping out from php maybe??
OH god.. if the devs go the phpbb2 way I am gonna be screwed.  I hate the way that looks and it is harder to understand because you have to keep finding the tags
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:!Heredoc must go!
« Reply #9 on: June 08, 2002, 07:43:21 PM »
Reply with quote

Quote from: Mephidmann on June 01, 2002, 07:58:04 AM- Only linux line feeds (newlines, aka \n) are allowed after the heredoc end (EOT; in the case of YaBBSE).
Just put a semicolon always after the EOT, and you dont have to care for the line delimiter style. Also windows style line delimiter is working fine on unix servers, if you use "EOT;" and not only "EOT" to end the heredoc.

I like heredoc a lot, and use it a lot, because it makes the php source code very well readable.
Logged

Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:!Heredoc must go!
« Reply #10 on: June 08, 2002, 10:29:12 PM »
Reply with quote

Quote from: Mephidmann on June 08, 2002, 04:01:00 PMI know what I'm talking about.
Heh, listen, there is no such thing as "Linux line feeds," AFAIK. Line feeds are line feeds, period.

QuoteVi sucks, I like ViM waaay better.
Sorry, I meant ViM, I haven't used the original Vi.

QuoteEmacs, I hope you mean x-emacs, emacs for shell is just tooo anoyining (I hate typing commands).
I'm currently using the windows binary of GNU emacs and I like it a great deal.

QuoteI use Scite for Linux(yes, it has linux line feeds)
Lol, Linux line feeds again..

QuoteI am needing a new editor becuase I have used this one long enough.
If it's good, how could you have used it "long enough?" I haven't tried it, any big features that distinguish it?

QuoteI will probably step over to x-emacs, if only I could find my mandrake disks somewhere...
Er, why don't you just download it?
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:!Heredoc must go!
« Reply #11 on: June 08, 2002, 10:45:14 PM »
Reply with quote

woah people.. keep it civil
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:!Heredoc must go!
« Reply #12 on: June 08, 2002, 10:46:35 PM »
Reply with quote

Quote from: groundup on June 08, 2002, 10:45:14 PMwoah people.. keep it civil
Er, it is.
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:!Heredoc must go!
« Reply #13 on: June 08, 2002, 11:34:26 PM »
Reply with quote

Yes I Think There Are Two Binary Editors Xemacs And CyGwin I Think  :).. I Have Both But Dont Know Where They Are  ::)
Logged

ALL MODS Cancelled projected terminated
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
Re:!Heredoc must go!
« Reply #14 on: June 09, 2002, 08:37:55 AM »
Reply with quote

Quote from: michael on June 08, 2002, 10:29:12 PMHeh, listen, there is no such thing as "Linux line feeds," AFAIK. Line feeds are line feeds, period.
I can call them what I want.

Quote from: michael on June 08, 2002, 10:29:12 PMEr, why don't you just download it?
The darn thing is 20 megs, and with dialup and PPM, I'd rather just use the one I have on cd somewhere.

BTW, Scite's website is: http://scintilla.org/
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  !Heredoc must go! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.116 seconds with 20 queries.