Finally a break. After all those birthday & new year’s eve parties, finals and some bad accidents(!), I have the time to write. I had a great time on my birthday & new year’s eve, my finals went very well (surprisingly well, if we consider the total time spent studying ._.) , everything was great except; I terribly broke my mac. I wish I had it literally broken. It’s so bad that I can’t even tell the story, but results are; a fried logic board, possibly fried hdd, maybe even the battery is gone. In short, it’s completely fucked up. Actually I was planning to upgrade to a newer model and since most of my data is on my servers, lost is not that big. It’s not the best way to upgrade but who cares, an upgrade is an upgrade. *a single manly tear drops*
By the way I started reading a new book, called “Design Patterns: Elements of Reusable Object-Oriented Software”, a real classic in its field. Though there are some bad comments about it (here) , I believe it’ll worth my time along with the book I’m currently reading. (Data Structures & Algorithms by Robert Lafore, it’s also a well-known book which I would definitely recommend) I wasn’t a book guy until this year, I was thinking that it can’t be learned from the books, books are useless, all must learn with videos and trial-error practices bla-bla.. but now I think books are such a great way to learn too, also a fun way. (at least on these winter days) Some people learn it from the textbooks, some from watching videos, some from other things but in the end it’s inevitable that learning CS depends on practices and spending time on it, it’s the only thing that works for everyone.
Tomorrow I’ll get a new mac and first thing to do is of course installing & configuring PHP 7 w/ZTS. Before you ask; you may think why one puts himself on all that trouble trying to build PHP w/ ZTS, the answer is: pThreads. If you’re like me, not an actual developer but a guy that uses PHP for everyday web jobs, this language can be a nightmare to use since it’s pretty slow without multi-threading. pThreads gives you the ability to create insanely fast scripts. If you haven’t tried it yet I strongly suggest you to give it a shot. Although @krakjoe clearly stated that I shouldn’t use pThreads with Apache, I prefer not to change my old code and still use it with an older version which has non-CLI support.
I’ll install and use an older version of pThreads as I said, but I strongly suggest anyone to not do the same. The problem is I have tons of scripts in my library which runs on browser side and depends on pThreads, I can’t change them all. So unless you’re in this situation too, stick with the newer versions. If everything goes smooth, I hope to share a complete tutorial on how to install PHP7 w/ ZTS on OS X tomorrow.
Edit from tomorrow: I’ve just bought the mac. It’s absolutely great! Compared to my old one; it’s half the weight, boots incredibly fast (thanks god finally a SSD) and the graphics are damn good. Retina screen is more different than I thought, my eyes would need some time to adjust to this but that’s obviously not a problem. Anyways, I’ll share the tutorial once I get rid of this El Capitan bullshit and install my good ol’ Yosemite.
Cúrá, ut valeás!