I am the guy who in the current company does the "custom sites"
... also, I suck at time assessments .. and tend to be lazy
@MichaelCalkins you are either extremely proficient with it and have extensive experience with said framework or completely clueless and are just following the latest hype ... those are only groups of people who unconditionally suggest a specific framework in this chat room
I don't think your that lazy or something, I think that your work is not that exciting and you fail with assessments, I suck at being code monkey, but can deliver something complex, sometimes. If they don't understand that, their bad.
btw .. correct me if I am wrong, but any IQ score above 130-140 is not actually an indication of higher intellect .. it only means that you can answer all question for longer time
because question themselves do not get more complicated
I've been forgetting to have lunch lately aswell. I just finished up college related stuff at the end of Feb and since then I have just been coding like a lunatic all day everyday
@tereško You wouldn't like my extended web programming teacher. She teaches to pull the data from the model in the controller and push it into the view haha
@tereško We had a project(a web app) and an actual exam at the end of year, basically developing a tiny web app in the 3 hours. Not enough time to do anything good
@tereško IMHO you're wasting your life/time thinking about it, I do to, I'm already old and I'm still 5 years younger than you. I try to progress daily but I can't beat myself up all the time when I see the smart people here. Acquire currency while your brain is young because this isn't going to last forever, if you're in top 1% (or 10%), you're still going to be wanted. I don't if this makes sense, but, meh.
@webarto you haven't been paying attention to latest research results. The "you can only learn while you are young" is considered to be pure bullshit in moder neurology. Actually, till age of 25 you cannot take full benefits of brain plasticity, because prefrontal-cortex is still developing
@NikiC well .. I managed to get in an strange period in my university. They were still trying to get full accredition for the Computer Science program, which is why they just threw at us everything that they was as "useful"
@tereško that it is a solid reason for that architecture on the web. Most websites don't need a lot of strong abstractions and otoh it does have built in abstractions that cover the most basic uses.
My brother got a few CS exams to prepare for bagrut a few days ago... Those questions, I still have to wash my eyes every time I remember what was on those papers -_-
@BenjaminGruenbaum Part 1 was to define an object "BiStone" which is supposedly some sort of gaming stone, sure, whatever.
Then it has you create an object "Stones" which is a collection of BiStones, and as the constructor, you need to generate all of the possible BiStone combinations (total of 49), in the constructor.
Bad practice ^
I'm not saying Dependency Injection or something, that's clearly too high level for a mere highschool student </sarcasm>, but at the very least make it a differnt freaking method!
Oh God it's this question again. Blah blah, can't parse HTML with regex, blah it will fail with <body someAttr='<body>'> or <head data-foo='<body>'> or whatever. Blah regular languages and HTML not being regular, blah using a stack. Blah blah DOM API blah built in blah document.body.style.backgroundColor='blue' . Blah the center will not hold it is too late. Obligatory link stackoverflow.com/a/1732454/1348195 blah. Happy coding! — Benjamin Gruenbaum1 min ago
Although PHP DOM apis are silly. Especially given $("script").remove() is how you'd do it with jQuery or Array.map(document.getElementsByTagName("script"),function(el){ return el.parentNode.removeChild(el); }) with plain dom.
@BenjaminGruenbaum I know it well, if I had replied with DOM thingy someone would say "not what the OP asked", or similar, it was just an "experiment" :) I will update, sometimes.
Still, it's a perfectly valid solution for sane HTML.
@SecondRikudo I've been doing some reading on font scaling on websites. It seems that while it does make reading the site easier it does mess around with users who have already set their default font size to be larger than the default anyway.
(I do this on my high-res laptop)
I'm used to changing zoom from site to site so it didn't bother me too much, but it is a valid concern, I suppose.
If I use constructor that initiates a connection to MySQL, and then a destructor that nulls the connection, do I need to manually close the connections each time I use the MySQL?
@SecondRikudo, I use $database, but I made the destructor null the connection when the object is no longer used. Not sure if this is needed, I thought it was clever :P
> Upon successful connection to the database, an instance of the PDO class is returned to your script. The connection remains active for the lifetime of that PDO object. To close the connection, you need to destroy the object by ensuring that all remaining references to it are deleted--you do this by assigning NULL to the variable that holds the object. If you don't do this explicitly, PHP will automatically close the connection when your script ends.
> In my opinion the person who is responsible for the PDOException error message should be slapped in the face! It is unusual to reveal passwords when an error occurs.