SocialEngine Blog

SocialEngine is the best way to create a unique community website. Let your friends, fans or customers geek out about anything you want.

Questions with John

You all gave us great questions for our ASK JOHN feature.

Mootools vs. Jquery

What were the reasons (benefits) for choosing Mootools over JQuery?

At this point, it’s not reasonable to switch to JQuery as the switch would require significant code rewrites for ourselves and also for third-party developers. The choice between using Mootools and Jquery were based around our goal of creating a platform that could be highly customized by anyone with access to the direct code yet easy to use right out of the box. There is a debate that jQuery is more designer-friendly and MooTools is more programmer-friendly. Obviously our choice was MooTools. If you’d like to learn, check out their in-depth documentation.

 

Server-Side PHP debugging

How do you approach server-side php debugging?

I generally just use var_dump() >.> but I have used xdebug with netbeans before.
Here are some helpful instructions on how to install xdebug with netbeans:
http://netbeans.org/kb/docs/php/debugging.html

 

File Permissions

My host has refused to set folders/files with 777 permission- what should I do?

Basically, if apache is running as the same user as their ssh/ftp client (ideal) then you can set the permissions to 777. Otherwise, the files and folders need to be writable as apache, which is why they should be set to 755/644 . Matt has written an excellent
article on tips to selecting a server.

That’s all for now! As mentioned before, we plan to run this feature every few weeks, so post any questions you have below, and we’ll select some to ask John. Don’t be shy about letting us know if this is too technical, not technical enough, or exactly what you’d hoped for!

4 Comments

  1. Peter
    Posted April 28, 2012 at 6:42 am | Permalink

    These posts are great. We just made the change to jquery and will launch in a week or two. We do not use many of the core features – but still it took a while :) Jquery just open the door to a lot of nice features and most important a lot of open source ready to pick up. 

    I would love to let john explain about the cache system. How are the cache handled most efficient and what are the possibilities to cache special eg. views less or longer. Code sampels would be great.

    Also I would like your view on how I best can extent/overide an existing controller. Let say I would like to make chages to the core indexController. Sometimes it would be nice to avoid edit in the controller directly as it will conflict in an update. 

    Cheers
    Peter

  2. Posted April 30, 2012 at 6:00 am | Permalink

    I dont think mootools offers something more than jquery but jquery does. jquery has a large community with thousands of ready-made plugins. I use jquery for all my projects and its a pain in the a** to search mootools docs for syntaxes everytime I'm writing a script for SE.

  3. Kainoa
    Posted May 2, 2012 at 8:46 am | Permalink

    jQuery is just as programmer-friendly (if not, friendlier) than Mootools..

  4. philip
    Posted May 2, 2012 at 2:38 pm | Permalink

    I still think that Jquery is the Future socialengine should switch to that platform as soon as possible.

Post a Comment

Your email is kept private. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>