Recent submissions

Comment · 7 years ago
I've been using vue, nuxt and typescript without any issues so far (6 months with TS though). It's not vue that's at fault for troubles with TS.
Comment · 7 years ago
I often run into this argument - "inconsistent syntax", followed by zero proof. Then I wonder - is the person making the comment even using PHP or is the person behind the comment.. even capable programmer?

Yes, PHP has been "cleaned up" and you have always had the option to use clean, concise way of coding without language interfering or hindering you in any way.

There's no programming language out there that makes up for the sloppiness and inability of the person behind the screen.

Comment · 7 years ago
Quake 2 is one of the most difficult FPS games to play competitively. I played the game for 10 years, 1998 - 2008. I can tell you're looking at the game from a different perspective (I'm assuming you're referring to its singleplayer), however - its multiplayer component was nothing short of amazing. Game actually takes a huge physical toll on the player due to complex controls (strafe jumps, circle jumps, doublejumps, circle-strafes, occasional rocket / grenade jump), and the movement aspect combined with aim and general awareness made it one of the best games I had honor to play.
Comment · 7 years ago
Basically, what irks you is that Vue separates presentation (visual) from the logic via <template> and <script>, reusing components via HTML elements is poorly thought out and binding values to attributes is bad because hey, you can actually use JS to compute the value.

Naturally, even though you can disregard the templating and resort to idiomatic JS, like one in React, you managed to develop an opinion after not using the features you like.

This just makes no sense honestly. I'm all for people having opinion to the point where you can blatantly say "I hate Vue because I like React more", there's literally no need for justification.

But spewing nonsense just to justify your preference is just bad. Are you a junior dev by any chance?

I've used both extensively and I can recommend Vue over React because React is a pile of mental manure. I never understood React hype, but then again - IT is a fashion business, and when "leaders" invent crap - flies tend to follow.

Comment · 7 years ago
I've been in frontend for a long time, since 1999. The dev console is my workplace. I have to use and be familiar with all popular browsers. Chrome's dev tools are far better in my opinion.
Comment · 7 years ago
> What’s fascinating to me is the length people go to in order to justify freeloading.

I can tell you didn't read carefully what I wrote, but that's fine.

Here's what Spotify tells me: "Spotify gives you instant access to millions of songs – from old favorites to the latest hits. Just hit play to stream anything you like."

Where's "but we'll also monitor you and inject whatever code we can, we might allow our customers to do so too, we don't know what it might be but since we wasted $0.003 to acquire you, we need to make at least $5 off of you and we don't really care what happens to your device or if someone breaches our customer and does bad shit to you."

I believe in reciprocity - and the odds are worse at my side if I "freeload" :)

Comment · 7 years ago
It's fascinating how we, humans, are lazy. We're lazy to the point where we'd gladly allow services like Spotify to control our computers just so they can make sure their ad was delivered. We'll even justify it by "well, I really listen to a lot of music". All I want is to push a button and get some bearable-noise during my 8 hours at work.

I don't know about the rest, but I really hate when someone makes a fool out of me. I'm a lazy person too, if a service that I like asked me bluntly "hey dude, wanna give us all your info and let us sniff your traffic so we can stick ads in, we're even gonna sell it" - I'd say - sure, you were honest enough, screw it - go ahead, I didn't have to navigate through a wall of text critting me for 9000000 to get that piece of info.

But no. No one behaves like that. Long user agreements, service agreements, catchy call-to-actions on websites that promise wonderland filled with unicorns shitting M&M's and what not just so they get those few bucks out of me...

Oh well, hello foobar2000 my old friend, seems like I'll un-lazy myself just to spite these prying assholes.

Comment · 7 years ago
We created higher level languages to reduce time spent coding. We wouldn't be using assembly.

It appears that we think about different terms when visualizing what "incompetent" means.

We create languages to tackle different sets of problems, and we want to minimize human error - that part, I believe, we can agree on.

However, if you perform "SELECT * FROM mytable" (table grows indefinitely) and then sort / limit in the language and not database - you're incompetent, you simply lack knowledge and you didn't even think abstractly what can happen by doing so. There's no language out there that can teach you "right tool for the job" or "keep it simple" or "should I do it, maybe there's another way, did someone else have this problem?", no matter what wizard creates it.

We will never weed out incompetent people by creating languages and a language shouldn't cater to a moron.

Comment · 7 years ago
In the context of what you're doing with PHP, that one-fits-all data structure is all you need. I sincerely doubt you had hurdles in your career because of PHP's array :)

However, let's prove once more that languages evolve: http://php.net/manual/en/book.ds.php

The "classic" you're referring to is far from something objective. There will always be problems with languages. That's why we have the human factor who is supposed to be intelligent and work around the apparent issues and make the computer do useful work despite apparent tool glitches.

Sadly, we're just creating better idiots who are only getting better at whining.

Comment · 7 years ago
So.. what you're trying to highlight is that a language is supposed to make up for the incompetence of the person using it?
Comment · 7 years ago
The dev console is better than Firefox one. It's faster. Minimalistic interface is great. HOWEVER - Firefox console is catching up. Firefox is fast enough. Chrome is getting more and more bloated and interface is starting to suck compared to initial version of Chrome. Now they're trying to do stupid things and promote ads more and more. It gets worse every day and hopefully, they'll screw up to the point it dies. I loved Google before, now I'm disliking them as much as I do Facebook. I root for Firefox, but it's still not there yet.

Guys who maintain Firefox - thank you. I hope I'll join the FF users once more in the near future.

Comment · 7 years ago
Laravel does have a lot of magic, however you can be aware of what's going on. https://github.com/barryvdh/laravel-ide-helper

Framework continues to evolve, for the better of course. With the introduction of PHP 7, I believe Laravel will get rid of magic eventually. Meanwhile, we've got tools to help ourselves.

Comment · 7 years ago
PHP recently received an extension that exposes an asynchronous programming framework, called swoole. It's extremely promising (but not perfect). Here's the link https://www.swoole.co.uk/ and it produces some very, very, very interesting results - both in synthetic benchmarks AND real world. Link: https://www.techempower.com/benchmarks/#section=data-r17

In certain use cases, it literally annihilates Golang for example and leaves node.js way, way, way behind.

Now, ignoring the numbers, there are many things you can do using PHP:

- web applications

- background services

- queue systems

Imagination is the limit (but that applies to any language these days)

There's plenty options to choose from, from web-related frameworks to community provided libraries, even the command line interface received a ton of cool libraries to play with. I can't state that you can do X in PHP but can't do the same in Y, Y being another language. However, frameworks such as Laravel make it trivial to bootstrap a project, create an API, create a nice UI using Vue (Laravel comes with excellent Vue tooling) and deploy the whole thing in a few easy steps to popular hosting providers.

Granted, it's not language specific, there was a huge community effort behind everything PHP related: from standards, to package manager, to tooling, utilities and so on so the ecosystem is quite healthy and progressing.

The nice thing about it, ultimately, is that it's really fast enough and keeps getting faster, with new (useful) language features.

If you're after a tldr version and don't care about the wall of text above:

Strenghts:

- excellent ecosystem http://www.packagist.org, http://www.getcomposer.org

- excellent *nix support, easy installation: https://launchpad.net/~ondrej/+archive/ubuntu/php

- great object oriented model that supports strong typing: http://php.net/oop

- excellent choice of web-app frameworks: https://laravel.com/, https://lumen.laravel.com/, https://symfony.com/

- big choice of extensions that expose additional functionality, such as swoole: https://www.swoole.co.uk/ or zeromq: https://github.com/mkoppanen/php-zmq

- great performance for an interpreted language

- easy scaling due to php-fpm http://php.net/manual/en/install.fpm.php (this has been available for a decade)

Comment · 7 years ago
I second this.

Without going into what I've tried and yadda yadda yadda, white noise, my credentials and so on - PHPStorm id the IDE. No Atom / VSCode or whatever can't compare. You get ctrl+click go to definition, you get ssh terminal, you get XDebug integration, it plays with Vue/ES6/React, you get MySQL integration, Vagrant integration, extensions to get VIM bindings and so on. Next to proper keyboard, monitor and mouse - buying PHPStorm is hands down one best money spent when it comes to what I work with every day.

I'm NOT saying "you can't get X with Y editor which is free" - sure, I believe you can, but this thing completely satisfies my every requirement and I don't have to spend time looking for integration extension or whatever. It saved me a ton of time so far, it will do so in future - I approve it, however I don't think anyone's editor "sucks and you should go with PHPStorm". Everyone should go for what they think brings them the best experience / value.

Comment · 7 years ago
They are, quite good and the performance keeps improving with every new version. We're expecting another huge performance boost with version 7.4

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton