Jump to content

Stopofeger

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

Everything posted by Stopofeger

  1. Well comments. I actually make very fewer comments. And only because i forget what i thought or changed quickly so i need make them sometimes to make me aware what happened. as far as //,#,/**/ goes. obviously // is the easiest to type. But doc generators such as doxygen uses /**/ to generate docs so probably if i make a big soft sometimes that needs api docs, i wud use it.
  2. Well im after a week. Ok lets get back to the topic. Mark said it all. I actually never heard of mvc before i took those frameworks. And now it seems mvc is the best framework for web. Ya to me. All those other framworks are suitable but basically they for gui app that needs to handle events.MVc is just what a web app is. The db, the script and the html. Just it is called model-controller-view thats it. So this framework really helped me to grasp mvc and now im really not seeing any other pattern so capable as this(i do love singeleton though). Yes u can use external libs easily with cake. just put them in vendor folder and import by changing $vendors var from ur controller.
  3. Hi guys, i found a cool thing today and for windows users running php this will be great. Phalanger, Php compiler for .net I was looking to learn asp.net lately but its tough, when i hear asp.net supports 40 languages i thought why not php? here it is i see. We can now do almost anything that c# can do. use all the .net features and even run php apps like phpbb and phpmyadmin without modification. I searched some google for its reputation and most articles regarding it praised it quite well. And the best thing is its faster then normal php interpretation. i suggest peoples not willing to use C# but want to build asp.net apps, this can be the thing to go for. u can go to there website here: http://php-compiler.net/
  4. I wonder how relliable w3schools is? here is a quote from them: And the percentage of internet users interested in w3scools? 1%? 2%? As most of them are tech savyies so they will definetly use 17" to 19" monitors. I think most of the people still use 15" monitors because u simply dont need more then that for day to day works and bigger monitors means bigger overhead for eyes. its not tv that we watch from 3-4 meters away. And trying to see texts in 15" monitors with a 1024-768 resolution is....well..
  5. well i dont remember the full source code of requestAction() but the psedo code is something like this: requestAction($url,$options) { if($option["return"]) { //return the output flag } $disp=new Dispatcher(args) ob_start() $disp->dispatch($url) $output=ob_get_clean() } this is almost like that. u can check the source urself.
  6. Well, Its way too late to reply, But still I say. If its asp? then say goodbye. Asp is an obsolete technology. Everyone shud learn and think of Asp.net now. Asp.net is really complicated and hard grasp. Especially as it has all those event handling in server side which i dont know how its done in http.
  7. Nope, not possible. Atleast without browser plugins. I dont think there is any browser plugin that can do this. ActiveX can be an answer, Im not sure whther there is any image library in activeX. but why do u need that?
  8. Hi there, I have a kind of hetitation using pear as there is those installation, pear script bla bla needs to be done. So i have prefered phpclasses over pear. But still i have a question, Can i use pear classes without this installations? Say, copy pasting? As not all hosts may allow shell execution. So is there any way to use pear classes with pear.bat setup?
  9. Ok after doing some profiling myself in the dispatcher and the requestAction definition i got the answer. requestAction() function runs the dispatcher again restarting the entire process of controller initialization, rendering and uses ob_* functions to get the output. So its like requesting the page multiple times. bakesale uses requestAction too much making it really slow. So a suggestion to all, Don't use requestAction until there is no alternative at all. Keep ur generic methods in the models.
  10. You are right. For example, free webmails have been there for ages but still companies employ their own mail server just because they dont want to tangle up with some other company.
  11. well its in CI, Yes looked in to the dispatcher. It didn't looked to have much problem. But i really have this feeling about requestAction(), it even returns rendererd output, that means we need to dispatch it again. Btw, is there any way to use a controller within another controller but not with request action? we can use models with $uses var. what about other components?
  12. I think you are doing too much criticism. This is not criticism, this is clear cut offence. There is ways to do criticism that doesn't feel like offence. Criticism can be done in a sober manner, not like this. It seems you hate everything he does? Why so much hatred? Php is not a language that forces "things shud be done this way, that way bla bla". These are just styles and suggestions, not oppression. Different people has different style of coding, that doesn't mean that way wrong untill it works. Object orientation is something relatively in this world and there is nothing wrong if someone uses procedural stuff. And I think u know that most of the programs we use are written in procedural way including the very own php and apache. What is wrong if someone uses a directory structure he likes and suggests other to use it. You don't have to just blow it apart. If it works what's wrong with it? Please know there are still fans of so called "spagetti code" and that doesn't make them bad programmers. It's all about style. Maybe OOP is the current trend but that doesn't mean its the answer of everything. So please emphasize OOP not force or scold someone. Who are you to ask what names one shud have or what way they shud take? What if I say "Your name is just untolerable". won't it hurt u? Its everyones taste. my username has no meaning, Its just came to my mind and i liked it. simple. But i tell you please learn to tolerate peoples taste. Atleast try to be open minded. Thats what open source is all about. Being open to all sorts of software, people and most importantly mindsets. If u can't than just don't criticise. Because the way u criticise doesn't help people to understand their mistakes.
  13. There is a better "suggested" solution then using display as the display property removes the element from the document flow completely. use visibility. document.getElementById("id").style.visibility It will not remove the element completely but just will make it invisible.
  14. Although i haven't seen CI api but I have looked through cake. And I must say it uses REGEx too much. the inflector have about hundred patterns. RegEx are much slower then str functions. And their requestAction() function probably is the main suspect of slowness as it's like running multiple page request. BTW, red can u tell what exactly takes all the cputime? in cakephp and how can i bypass this? Because the current speed impossible for production use. Caching is not alway the answer in dynamic pages.
  15. Well, about the google apps. I think i heard something called office live to be provided by ms using live.com. Is it just like google ones? Although i have doubts about these app's as Its just clean monopoly of data. As all the stuffs are stored by google, if we see a masive popularity surge, google can actually control or atleast persuade enterprises as they have all the Important data right under their sleeve. I dont think companies dont want that. Yes online office is good. But only when its available as a download say, phpbb. So people can setup their own server and dont have to worry about their data in someone else's hand
  16. Hi there, after reading the manual and coding a bit on both cakephp and codeIgniter. I can surely say cakephp is definetly what a "Rapid Development Framework" shud be. So I thought I would use it. There is a lot of apps building in cake so i downloaded some and installed bakesale, a shopping cart. But its extremely slow. it takes 6-7 seconds to fully load it. So i looked at my cakephp hello world app. It takes 2.5 seconds? Why so slow? I tried ab benchmarking tool on both oscommerce and bakesale and cakehello. Both of them donbt stand a chance against oscommerce. I tried searching and found a benchmark with the most least coding possible. http://paul-m-jones.com/blog/?p=238 Just look at it. How come in 2700page/s server just serves 114 pages for cakephp and even 53p/s for symfony. The fastest is solar with not more then 170. If this goes, how we gonna use them? It will make things unbelivably slow. And they didn't mention CI as an MVC framework. And it is actually not the answer.
  17. I wonder why php used this syntax as they couldv'e easily used the "." operator as all other C type langs do. Java, C#, javascript and obviously c++. Technically, "->" operator is used in c++ when accessing an object from a pointer. that is, [code] obj* obj1= &someobj; *obj->method; [/code] I don't know the internals of php. But I think "->" is used just because "." is already "married??" with string concatation. Not because php uses pointers to access objs.  Ok way offtopic. I call it dot. why bother using another word.
  18. Hi there guys, Im basically a big microsoft fan. Very unusual in this forum probably but i like them and their products. This year is probably the most imp year in ms's life. As they launched vista, office 2007 and some more services. Where do u see microsoft, specifically windows (as it is the base of everything they do) after 10 years maybe. Will they reign the soft world as they now? Or we shall see other companies (Google?) taking over their position.
  19. Innodb is basically for huge sites/db's that has to perform thousand queries per second and needs to handle gigs of data. It also supports transactions and table locking. So in short, For the biggies. While MyIsam is suitable for all the avarage stuffs. So you choose.
  20. Hi there, If you want a user manager you can surely tap in to phpclasses.com You will find some cool classes handling them. If you want some MVC flavour then there is a user management app for cakephp. You can get it at cakeforge.org
  21. Good question. But the client wants it that way. Everyone's talking about why this shud be done. I want to know how it should be done. Does the Update keyword accepts several row of data? Same question goes for Insert keyword also.
  22. Well, I also had same amount of confusion Joel had, and posted her too redbullmarky explained the pros and cons of them two really well. I started with CI initially thinking it is better. But when i just read Cakephp manual and started coding, i just can't see anything near it. So easy and cool. It does tendersome things for u. All u just do is think and code less. I have tried to know about RoR and it seems cakephp is the most similar to RoR. Zend is inefficient. u simply cant inigrate a 5mb framework with a 500 kb project. one amaizing thing both cakephp and CI code has the exact same file size. 1.4mb something. i woder if they are having competition to keep file size minimal.
  23. Hi there, I need to update field and set it from an another fields grouped avg. But can i use sub queries that produce multiple rows in SET? example i need to select this SELECT AVG(field1) from table1 Group BY field2 and update it into table1.field3 Is it possible, i know i can do it with php by first retreive it then update? but for that i wud to make a query for each row. what is an efficient solution to this?
  24. wow. thanks man. great description of both and helped me alot choosing. im following ur suggestion and trying the codeIgnighter
  25. I think this question have been asked several times here, but i couldn't help but asking again. Which framework shud i choose? I have been a php prog for a about year. i have also done some opensource apps including a forum system. But its just few  days i have decided to do freelancing. But what i have seen in the freelance sites. One either need to extremely fast coder or have a company which i dont have. So the thing is to be able to build apps rapidly. For that i wud need loads of classes ready so that i can do all those repeated tasks like validation, user management, login management by creating an object. Is there any framework to be able to manage these repeated but mandatory tasks?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.