Sim Posted August 23, 2015 Posted August 23, 2015 You didn't say what language but here goes =} typeof "12" typeof 12 typeof {} typeof [] null == undefined 0.1+0.2+0.3+0.4 0.1+0.2 1: string 2: int 3: obj 4: obj 5: false 6: + 0.5 7: + 0.3 6 & 7 are strange ones =) Quote
Dayo Posted August 23, 2015 Posted August 23, 2015 Ahh, unlucky, last two are "Number". Nope last two are 1 and 0.30000000000000004 Quote
jcvenom Posted August 23, 2015 Author Posted August 23, 2015 Love the way my question wasn't answered thanks guys Quote
Dayo Posted August 23, 2015 Posted August 23, 2015 Love the way my question wasn't answered thanks guys Sorry for going off topic, but actually reading back you have asked no questions you have merly stated that you have made a portfolio and people have commented back some usefull comments. Quote
KyleMassacre Posted August 23, 2015 Posted August 23, 2015 (edited) Love the way my question wasn't answered thanks guys What was your question? I recall answering any questions you asked. Answers: String number Object Object true 1 0.30000000000000004 Why 7 is like that is beyond me. Also I have no clue why null would equal undefined, I figured they were different. What if I wanted it to be null and not undefined? [ATTACH=CONFIG]2172[/ATTACH] Edited August 23, 2015 by KyleMassacre Quote
Coly010 Posted August 23, 2015 Posted August 23, 2015 [MENTION=64684]Dayo[/MENTION] [MENTION=68711]KyleMassacre[/MENTION] his question: OOP(I only know the basics and I don't know how to use it or where to use it I don't see it's use) Node.js & socket.io (I can build chat systems, with PHP & JS etc but when it comes to real time I've never worked with either of those languages) Frameworks (If I don't use OOP then frameworks haven't been an option for me) I really don't know what I have to do next, I can code PHP, CSS, HTML, JS AND JQUERY whats next after that? What do I need to know in the languages I already know, good help and Advice would be greatly appreciated!. [MENTION=69823]jcvenom[/MENTION], learn frameworks. PHP : Symfony, Laravel, CodeIgniter JavaScript : Angular.JS , Node.JS, Express.JS, Socket.IO Learn CSS Precompilers : LESS, SASS Quote
jcvenom Posted August 24, 2015 Author Posted August 24, 2015 [MENTION=64684]Dayo[/MENTION] [MENTION=68711]KyleMassacre[/MENTION] [MENTION=69823]jcvenom[/MENTION], learn frameworks. PHP : Symfony, Laravel, CodeIgniter JavaScript : Angular.JS , Node.JS, Express.JS, Socket.IO Learn CSS Precompilers : LESS, SASS Frameworks as in PHP frameworks? Quote
~Rob0t Posted August 24, 2015 Posted August 24, 2015 (edited) Frameworks as in PHP frameworks? Yes, I would assume that's what he was implying. However, I wouldn't make it plural. Learn one framework inside and out and become efficient in it. Why just one? In a professional environment, you won't (realistically) work on multiple projects running multiple frameworks - unless management/upper-development make an avalanche from a simple snow ball. If you're stuck on which to learn, have a read of this list on SitePoint. All popular frameworks have excellent documentation and employ the best (or a variant of) practices throughout. This GitHub repo lists the popular frameworks and links to their respective GitHub repositories. Edited August 24, 2015 by ~Rob0t Quote
KyleMassacre Posted August 24, 2015 Posted August 24, 2015 Frameworks as in PHP frameworks? It's all up to you really. If you want to learn some PHP frameworks go for it. There are also JavaScript frameworks out there too that are becoming popular Quote
~Rob0t Posted August 24, 2015 Posted August 24, 2015 It's all up to you really. If you want to learn some PHP frameworks go for it. There are also JavaScript frameworks out there too that are becoming popular Yeah, like a new Javascript lib/framework being released almost daily. Some funny tweets :) Basically all these Quote
Coly010 Posted August 24, 2015 Posted August 24, 2015 Frameworks as in PHP frameworks? Not neccesarialy just php. And as [MENTION=71587]~Rob0t[/MENTION] said, learn one inside out. However, Id also say to familiarise yourself with the rest as you are currently working freelance and a client could request you use a certain framework and it's not the one you know best. So familiarise yourself with the popular ones but pick one of them and become a guru in it :p guru is a bit much, but just really learn it. Also most frameworks use OOP. So learn it. Quote
jcvenom Posted August 24, 2015 Author Posted August 24, 2015 Not neccesarialy just php. And as [MENTION=71587]~Rob0t[/MENTION] said, learn one inside out. However, Id also say to familiarise yourself with the rest as you are currently working freelance and a client could request you use a certain framework and it's not the one you know best. So familiarise yourself with the popular ones but pick one of them and become a guru in it :p guru is a bit much, but just really learn it. Also most frameworks use OOP. So learn it. I got some opinions from other developers and they said they don't learn frameworks like Laravel or Symfony, as they don't like using other peoples things so they make there "OWN" frameworks.. Quote
~Rob0t Posted August 24, 2015 Posted August 24, 2015 (edited) I got some opinions from other developers and they said they don't learn frameworks like Laravel or Symfony, as they don't like using other peoples things so they make there "OWN" frameworks.. Heh, goodluck with that. It's favoured a lot on a CV (if you were to enter a professional establishment) that you had experience with a popular framework. But, if you do develop your own framework, this GIF is appropriate; Though there are some pro's for doing your own framework, in my experience, they don't outdo the cons; http://programmers.stackexchange.com/a/35927/112871 Edited August 24, 2015 by ~Rob0t Quote
jcvenom Posted August 24, 2015 Author Posted August 24, 2015 Heh, goodluck with that. It's favoured a lot on a CV (if you were to enter a professional establishment) that you had experience with a popular framework. But, if you do develop your own framework, this GIF is appropriate; Though there are some pro's for doing your own framework - though, in my experience, they don't outdo the cons; http://programmers.stackexchange.com/a/35927/112871 Ofcourse I wouldn't be able to create my own framework "YET" as i'm still learning OOP which is quiet easy... I wouldn't say it would be relatively hard to make one with simple functions, I could probably create something like an ajax response framework, supporting either HTML or JSON that would auto fill form inputs with the previously entered values. Quote
~Rob0t Posted August 24, 2015 Posted August 24, 2015 Ofcourse I wouldn't be able to create my own framework "YET" as i'm still learning OOP which is quiet easy... I wouldn't say it would be relatively hard to make one with simple functions, I could probably create something like an ajax response framework, supporting either HTML or JSON that would auto fill form inputs with the previously entered values. A good framework - which takes into consideration future-proofing - will involve; Class abstraction Class namespacing Class interfaces Class inheritance Ability to support multiple DBMS; including SQL and noSQL A suitable directory structure Excessive documentation on code methodology and conventions General use utilities and libraries - both extendible (Generally speaking) MVC design pattern (or even MVVMC - basically a separation of business logic (incl. business rules), view logic and routing Some tight security, addressing various vulnerabilities, such as session hijacking, file uploads, data validation, data sanitisation, etc... A testing suite (incl. performance tools) - unit testing, integration testing, component interface testing, system testing, OA testing, caching and benchmarking The fundamentals of object-oriented programming is a somewhat "easy" task to comprehend, but the implementation isn't "quiet easy" if you were to focus on the above points and produce a valuable piece of software. I could probably create something like an ajax response framework, supporting either HTML or JSON that would auto fill form inputs with the previously entered values. Sounds like a library and not a framework. http://stackoverflow.com/questions/148747/what-is-the-difference-between-a-framework-and-a-library Quote
jcvenom Posted August 24, 2015 Author Posted August 24, 2015 A good framework - which takes into consideration future-proofing - will involve; Class abstraction Class namespacing Class interfaces Class inheritance Ability to support multiple DBMS; including SQL and noSQL A suitable directory structure Excessive documentation on code methodology and conventions General use utilities and libraries - both extendible (Generally speaking) MVC design pattern (or even MVVMC - basically a separation of business logic (incl. business rules), view logic and routing Some tight security, addressing various vulnerabilities, such as session hijacking, file uploads, data validation, data sanitisation, etc... A testing suite (incl. performance tools) - unit testing, integration testing, component interface testing, system testing, OA testing, caching and benchmarking The fundamentals of object-oriented programming is a somewhat "easy" task to comprehend, but the implementation isn't "quiet easy" if you were to focus on the above points and produce a valuable piece of software. Sounds like a library and not a framework. http://stackoverflow.com/questions/148747/what-is-the-difference-between-a-framework-and-a-library Hence the word "learning" I did say I was learning OOP which im currently doing now, I don't understand the points, due to me never working with or even looking at frameworks... but thank you for listing them, your points might not help me now but may aid others who are considering or creating a framework. Nothing is Impossible, In time I will get better, and you do realise some learn quicker than others? right!.. I'm new to this OO programming so less of the constructive type of criticism Quote
Coly010 Posted August 24, 2015 Posted August 24, 2015 (edited) I got some opinions from other developers and they said they don't learn frameworks like Laravel or Symfony, as they don't like using other peoples things so they make there "OWN" frameworks.. LOL! That's devs being ignorant. There are some devs that feel like you just do everything yourself and other devs which feel you should use things that make your life easier. I've worked with CodeIgniter and decided that I didn't want to use it or Laravel for my current project as it is overkill. There's too much there that aren't needed or won't be needed, so I set up a very very basic framework for my project. VERY BASIC, as it doesn't use namespacing etc. It should, but the framework is still being developed. You can make your own, but good luck. You need to learn a ****e ton about http, routing, etc The first four points are OOP, not framework. You'll learn, you don't just learn OOP overnight. It's what I call progressive learning. After learning the basics, As you use it, you learn more. As you see code examples using it, you learn more. Etc Edited August 24, 2015 by Coly010 Quote
~Rob0t Posted August 24, 2015 Posted August 24, 2015 [...] I've worked with CodeIgniter and decided that I didn't want to use it or Laravel for my current project as it is overkill. There's too much there that aren't needed or won't be needed, so I set up a very very basic framework for my project. VERY BASIC, as it doesn't use namespacing etc. [...] Off-topic, but you do realise that Laravel does supply a micro-framework - http://lumen.laravel.com/ which would only involve the core and not any helpers or libraries. Quote
Script47 Posted August 24, 2015 Posted August 24, 2015 (edited) Off-topic, but you do realise that Laravel does supply a micro-framework - http://lumen.laravel.com/ which would only involve the core and not any helpers or libraries. Off-Topic That site's design looks damn good. Edited August 24, 2015 by Script47 Quote
IllegalPigeon Posted August 24, 2015 Posted August 24, 2015 (edited) Off-topic, but you do realise that Laravel does supply a micro-framework - http://lumen.laravel.com/ which would only involve the core and not any helpers or libraries. I've been a Laravel developer since Laravel was starting out, I love it. When they announced Lumen, I was so happy. Lumen is fantastic for creating API's. But, even still, Lumen isn't HUGELY faster than Laravel anyway because Laravel is quick in itself. LOL! That's devs being ignorant. There are some devs that feel like you just do everything yourself and other devs which feel you should use things that make your life easier. I've worked with CodeIgniter and decided that I didn't want to use it or Laravel for my current project as it is overkill. There's too much there that aren't needed or won't be needed, so I set up a very very basic framework for my project. VERY BASIC, as it doesn't use namespacing etc. It should, but the framework is still being developed. You can make your own, but good luck. You need to learn a ****e ton about http, routing, etc The first four points are OOP, not framework. You'll learn, you don't just learn OOP overnight. It's what I call progressive learning. After learning the basics, As you use it, you learn more. As you see code examples using it, you learn more. Etc See, you say this, but I've just created to instances on homestead. One using your Chaoticframe Framework, one using Laravel. Both just returned a view with "Hello world". Even your MASSIVELY smaller Framework cannot compete with Laravel, and this was without caching too. I've proved screenshots of both tests. ChaoticFrame code: [ATTACH=CONFIG]2175[/ATTACH] Laravel: [ATTACH=CONFIG]2176[/ATTACH] Edit: I'd just like to add, Laravel wasn't installed during the first test, on just the Chaoticframe code. I did multiple tests, took the average one, then installed Laravel after removing the original code. The directory name is just the same. I also did page load times, and, Laravel won again. But, as it's calculated in microseconds, it really wasn't worth screenshotting. Edited August 24, 2015 by IllegalPigeon Quote
Coly010 Posted August 24, 2015 Posted August 24, 2015 (edited) I've been a Laravel developer since Laravel was starting out, I love it. When they announced Lumen, I was so happy. Lumen is fantastic for creating API's. But, even still, Lumen isn't HUGELY faster than Laravel anyway because Laravel is quick in itself. See, you say this, but I've just created to instances on homestead. One using your Chaoticframe Framework, one using Laravel. Both just returned a view with "Hello world". Even your MASSIVELY smaller Framework cannot compete with Laravel, and this was without caching too. I've proved screenshots of both tests. ChaoticFrame code: [ATTACH=CONFIG]2175[/ATTACH] Laravel: [ATTACH=CONFIG]2176[/ATTACH] Edit: I'd just like to add, Laravel wasn't installed during the first test, on just the Chaoticframe code. I did multiple tests, took the average one, then installed Laravel after removing the original code. The directory name is just the same. I also did page load times, and, Laravel won again. But, as it's calculated in microseconds, it really wasn't worth screenshotting. You are really starting to piss me off. You seem to have something against me and what I do. I never said it would compete with Laravel, I never said it would be faster than Laravel. I stated that it was an extremely basic framework. Not once did I say it was in anyway better. I simply said that Laravel had a lot of features I didn't need. I never said that I wanted my own framework because it would give me any more benefit than Laravel would. If you read the topic I created on ChaoticFrame, I said about how it was a challenge to myself to be able to set it up and create it. I never said it would give anyone any benefits over any other framework. I HAVE NEVER CLAIMED TO BE AN EXPERT DEVELOPER, I DO NOT KNOW EVERYTHING ABOUT EVERY LANGUAGE AND FRAMEWORK. There you happy [MENTION=71663]IllegalPigeon[/MENTION] ? Edited August 24, 2015 by Coly010 Quote
IllegalPigeon Posted August 24, 2015 Posted August 24, 2015 (edited) You are really starting to piss me off. You seem to have something against me and what I do. I never said it would compete with Laravel, I never said it would be faster than Laravel. I stated that it was an extremely basic framework. Not once did I say it was in anyway better. I simply said that Laravel had a lot of features I didn't need. I never said that I wanted my own framework because it would give me any more benefit than Laravel would. If you read the topic I created on ChaoticFrame, I said about how it was a challenge to myself to be able to set it up and create it. I never said it would give anyone any benefits over any other framework. I was simply pointing out that, just because a Framework is (in your words) "overkill", doesn't mean it's going to under-perform. I have nothing against you, if it was someone else, I'd do the benchmark for them. I believe that your problem is that you don't like being told your wrong. I don't see why you can't just say "yeah, you're right" and accept the information being given to you. None of my comments have been said with malicious intent and are informative. Now OP can look at this and say "Hey, Laravel is pretty ****ing quick. I might take a look at it". When he does take a look at it, he'll be in awe because Laravel is amazing, and adhering to L5's coding standards and practices will intern make you learna lot more. Don't feel like I'm attacking you, you're the only person I've seen in the last 2 days providing incorrect information, I was simply correcting you. When you argued with me over the sessions thing, I just carried on proving more data to prove to you that your information is incorrect, you're the one that started crying. Don't comment on things if you don't like the thought of someone saying "hey, actually, you're a bit wrong there..." Edit: I HAVE NEVER CLAIMED TO BE AN EXPERT DEVELOPER, I DO NOT KNOW EVERYTHING ABOUT EVERY LANGUAGE AND FRAMEWORK. There you happy [MENTION=71663]IllegalPigeon[/MENTION] ? This is neither here nor there. I have never once mentioned your abilities or tried to insult your abilities. I am again only providing information based on some incorrect information you are providing people. This forum is quite inactive. If I see someone else post something that I feel is wrong, I will happily tell them about it. You're taking offence to someone correcting you when you should be soaking up the information. I do not care for your coding abilities. If you're telling other people incorrect information, though, then I'll simply tell you that you're wrong and provide reasons or examples where needed. Chill, bro. Edited August 24, 2015 by IllegalPigeon Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.