SitePoint Sponsor

User Tag List

Page 4 of 7 FirstFirst 1234567 LastLast
Results 76 to 100 of 175
  1. #76
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by arkinstall View Post
    So guys, what annoys you when writing applications?
    Text editors that second-guess my curly bracket alignment. But there's nothing you guys can do about that.

  2. #77
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey guys, I'll be back on Sunday and put a lot more work into this, I'm taking the weekend off!
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  3. #78
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Cool.

    In the meantime, I'm ripping apart my site and making it run on Retro. Do you have any code updates from b6?
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  4. #79
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    153 Post(s)
    Tagged
    3 Thread(s)
    I will have a think of what could be done better that annoys me at the minute guys, and if you want to use Dave the Penguin then I can retro him up a bit for you!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #80
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Disco dave! Might give him a home ontop of the vinyl LP

    A disco/hippie penguin ontop of an LP - Don't the words 'retro' and 'open-source' just jump into your mind!
    Last edited by Jake Arkinstall; Sep 26, 2008 at 17:32.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  6. #81
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've been integrating my current site with Retro, and I have to say it's going great.

    Due to the simplistic nature of the framework, you have to expect more running time. For example, the generated queries return all the columns and rows - so you'd expect it to run slow.

    Suprisingly, it doesn't. At all.

    It's taken me about 3 hours in total to learn how to build a simple site in Retro (thanks to Yam's video tutorials - great for learning), gotten to grips with using the controllers and methods, and almost fully integrated my existing site into it - including keeping the topic-recursing directories etc.

    I've changed a bit of the existing library code due to some errors I received in testing, stuff like accessing a row which doesn't exist. Also, the result object automatically puts the keys to lowercase, so I used strtolower() on the field sent to the __get method to fix errors due to casing.

    I am loading my site with it for a few reasons. Firstly, I've never used a framework before and I'm in full support of this one - I think it's fantastic. Also, I some framework ideas may work in theory but fail when putting them into full practice - so I'm building a fully functional site with it to do some propper testing.

    It also means that things are easier to change, and when I actually get round to loading content to my site and getting traffic, the site will be proudly wearing that penguin-mounted-LP logo on the bottom, getting more publicity for the framework site itself. Heck, I could have articles on the site ABOUT Retro, and gain traffic for both.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  7. #82
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds promising. I've noticed the build releases have slowed. Does this mean you're close to releasing a final version?

  8. #83
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Two reasons.

    Firstly, a full version is quite close. I'm guessing by the middle of next week, maybe before.

    Yam's taking a break for the weekend and I'm constantly slightly modifying framework code to work correctly when a site is built with it. Currently it does allow sites to be built, but on certain conditions it can fail. An example is when you have a controller such as 'searchController' and a class such as 'search', by default it looked for the 'search' class before finding a controller class, which of course created a nice fatal error. I changed it to look for the controller-suffixed class and it's more stable.

    I've also made the way the script parses the template slightly different, because I had a few problems when outputting some variables.

    So when I've fully made a site with it, I'll upload the framework code.

    I'm also considering distributing the full site code too, for a price, to generate interest for the framework and some revenue too. Of course I'd want Yam's approval before selling code which uses his framework.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  9. #84
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I'm back. Now I have to say I would like to get all the fixes anyone made and implement them myself, and of course I'd allow selling it. It's licensed under the GNU GPL.
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  10. #85
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And also - spikez, I really love your illustration skills, it would be simply great to have you design the logo for my framework!
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  11. #86
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  12. #87
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Update:
    Validation is now more like:
    Code:
    <form>
    	<title>
    		<min-chars>4</min-chars>
    		<max-chars>32</max-chars>
    	</title>
    </form>
    And I'm working on making it generate Javascript validation as well.
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  13. #88
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)


    Oh and anyone interested in joining the group and lending a hand, just email Yam. After the next few stages, our ideas will get more and more complex so, well, we may need a hand

    We'd also love some more ideas! Anything that is annoying or too complicated, too awkward to write or takes up too much thinking power.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  14. #89
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Build 7 up for grabs. Probably the last development version.
    http://code.google.com/p/retrophpmvc/downloads/list

    Main Todo's:
    in libs/record.php : Pagination class and Records:get_pagination($countPerPage) method
    in libs/validation : using JS/jQuery - a js_validate($formID) function that validates either via AJAX or JS implemented validations (second is preferred)

    New stuff:
    Big fixes
    Validation

    As soon as we get a logo: Website, online documentation, video tutorials

    Needed from contributers:
    Logo
    Extra libraries (preferably dependency-free)
    Working on TODO's
    Spotting and reporting bugs

    Desired result:
    Easiest PHP framework yet.


    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  15. #90
    SitePoint Addict Mastodont's Avatar
    Join Date
    Mar 2007
    Location
    Czech Republic
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Class Record, record.php:

    PHP Code:
    foreach($filters as $key => $value)
    {
        if(
    $value !== null)
            
    $query .= $key ' = \'' $value '\' AND ';
        else
            
    $query .= $key ' = null AND ';

    Do you quote each type of field (numeric, boolean)? Or the filters could be only strings?

  16. #91
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Simple fix for that, will implement before next release.

    PHP Code:
    foreach($filters as $key => $value)
    {
        
    $query .= $key ' = ';
        if(
    $value !== null){
            if(!
    is_numeric($value)){
                
    $query .= '\'' $value '\'';
            }else{
                
    $query .= $value;
            }
        }else{
            
    $query .= 'null';
        }
        
    $query .= ' AND ';

    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  17. #92
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Build 7.1 Uploaded.
    Code:
    ChangeLog:
    **************************
    CV.php:
    	Line 51: (Tpl->fixVarScope()) Replaced existing function with a preg_replace variant. This fixes a bug in which any occurance of a variable name (in PHP tags or not, without $) was replaced - e.g. <title> was before replaced with <this->title>.
    Uriparser.php:
    	Lines 119-122: (UriParser->parseUri()) Added support for get $_GET strings (Now $_GET values are parsed into $_GET)
    Vars.php
    	Lines 006-027: (Dump() and _Dump()) Func_Get_Args() returns an array. Now if only one item is passed, it dumps that item rather than Func_Get_Args().
    Tags.php
    	Lines 134-137: (Breadcrumb()) The crumbs variable now defaults to null, and is converted to an empty array if that value is null. This means that if you call the function with either null or array(), it has the same effect as calling it with no parameters.
    Record.php
    	Line 89, 142, 490: Spelling fix - from setValues to the correct set_values
    Request.php
    	Line 51: Spelling mistake fix - from gett_post() to get_post()
    There could be a couple of small things which I have forgotten to write, but nothing major.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  18. #93
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Numeric & Booleans & Dates: The SQL databases I worked with didn't have any problems with this, and I saw in an official MySQL article somewhere that it's actually recommended to quote everything.

    I'll take a look at the bug fixes!
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  19. #94
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by CoderMaya View Post
    Needed from contributers:
    Extra libraries (preferably dependency-free)
    I use my own Session class that isn't dependent on PHP's built-in session support. I was going to update it for my new app, but since I'm now thinking of using Retro in that app, it seems (at the moment) that it would make more sense to just write it as a Retro add-on.

    The new version will use MySQL instead of files. Instead of a normalized table, I'm thinking of putting a serialized array of session variables into a single BLOB or TEXT column. I think this would make it much easier for the user, because he could add session variables without having to add columns to the session table.

    Here are the properties and methods of the current version. I haven't thought of what else I'd want to add yet.

    $id
    $instance
    $data
    __construct
    getInstance
    set (set a session variable)
    get
    (The foregoing could be changed to override magic __set and __get methods in PHP 5+)
    clear (unsets all session variables)
    exists (similar to session_is_registered)
    isAdmin
    isModerator
    registerForm
    loginForm
    changePasswordForm
    register
    login
    logout
    changePassword
    retrievePassword
    save
    __usernameIsRegistered
    __usernameIsValid
    __emailIsRegistered
    __emailIsValid
    __clone

    Your thoughts?

  20. #95
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also I really like how you listed the change log with lines because when I upload I still continue to work on it so changing whole files is a bad idea.
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  21. #96
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  22. #97
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just added a few final injection fixes for find() methods so again, 7.x is still a development version, but the final one.
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  23. #98
    SitePoint Addict Mastodont's Avatar
    Join Date
    Mar 2007
    Location
    Czech Republic
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by CoderMaya View Post
    an official MySQL article somewhere that it's actually recommended to quote everything.
    Yes, but MySQL is damnable exception. Some people say it is not a database at all

  24. #99
    Coding and Breathing CoderMaya's Avatar
    Join Date
    Feb 2008
    Location
    Atlit, Israel
    Posts
    470
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some people say the world lays on giant turtles, too.

    I'll make SQLite and Postgre handlers as well. If they give me any problems there, I'll add type-handler.
    Learn about the new Retro Framework
    Code PHP the way it was meant to be coded!

  25. #100
    SitePoint Addict Mastodont's Avatar
    Join Date
    Mar 2007
    Location
    Czech Republic
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PostgreSQL would be very nice, because MySQL is really piece of ****. Only a few notes for dates, could I afford them? - Supported range for DATETIME from 1000-01-01. Ugh. Forget the Rome empire and the ancient world. Shocking check for date values (2008-02-32 goes through as zero value.) No timestamp with time zone. Ugh. No fraction of seconds. Forget sport.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •