Live data from Hacker News

Yii Framework 2.0.0 GA

yiiframework.com

51–55 of 55 posts

Re: Yii Framework 2.0.0 GA

#51
post #45

Earlier quoted context omitted.

Never was a fan of Yii myself. The one PHP framework I really do like though is the Fat-Free Framework.

FFF is pretty rad, as is Slim framework. I like Slim so much I've been cloning it for Hack[0]. With the next week off work, I'm looking forward to getting it close to parity! [0] https://github.com/LeanFramework/Lean

Cool. My personal preference is towards these leaner micro-frameworks in general. I've looked at Slim, seems cool, but never worked with it. Good luck on your project.

Re: Yii Framework 2.0.0 GA

#52
post #30

Earlier quoted context omitted.

That seems to be missing the whole point of symbols/atoms. They are uniquely identified with an O(1) lookup time and persist in memory after the initial creation. Symbols persist across multiple requests; this is a big part of why they are so beneficial.

I'm not disagreeing with you, but > Symbols persist across multiple requests; this is a big part of why they are so beneficial. That is still not really useful, PHP throws the entire execution context away after the request has finished. There is no sharing nor anything to persist unless you're doing so with an external data-store.

Girvo, I was not saying that within the context of how PHP operates symbols/atoms would be beneficial.

The parent stated, "Sorry, but those are entirely trivial syntactic issues, and not very interesting at that either..."

My point was that symbols/atoms are much more than just a syntactic difference and that they are in fact quite interesting. Chicago Boss, an Erlang framework, takes these ideas to an extreme to push the limits of shared immutable memory on a web server.

http://www.chicagoboss.org/about.htm

I'm not a big fan of the way he trashes pretty much every alternative at the beginning of his description; there are many web frameworks built on many different languages that the market has proved out are sufficiently scalable.

It is however an interesting and different approach that I think we can both agree goes far beyond "trivial syntactic issues".

Re: Yii Framework 2.0.0 GA

#53

Currently I working into the Cakephp and Django framework. Now I wanna to work in yii. which is the best between Yii and laravel in large concept application. anyone tell which is best framework for large application in Cakephp, Yii, laravel. please describe.

What do you mean by large _concept_ application? If you mean large or famous projects in production, Yii 2.0 was just released so there aren't many.

For 1.1 there are some:

https://www.facebook-studio.com/, http://2gis.ru/, http://itop.fm/, https://www.humhub.org/, http://www.x2engine.com/, http://zurmo.org/, https://www.rebilly.com/, http://buildwithcraft.com/

Re: Yii Framework 2.0.0 GA

#54
post #36
post #11

> Yii 2.0 helps you to write more secure code. It has built-in support to prevent SQL injections, XSS attacks ... This is just a minor complaint, but it's so pervasive among web frameworks that I must complain yet again. According to the documentation for Yii 2.0, the recommended way to output a variable to a web page is: Not the PHP standard: Because if you do the latter, you will be vulnerable to XSS. But why does…

The cost for auto-escaping everything is too high: 1. You're no longer using PHP. btw., Yii supports Twig that escapes everything by default. 2. Performancewise it's quite a bit hit.

1. Yeah, that's a valid excuse, but only if your framework is written in PHP. So Yii has an excuse, but Django does not.

2. You'll have to escape virtually all the strings that go into the template anyway. So the peformance hit of escaping is almost the same, assuming you don't re-compile the template every single time (which no sane template system does).

Post reply on HN