Better HN
topnewbestaskshowjobs
Log inSign up

settler4

34 karma · joined Jul 12, 2018 (8y ago) · 19 submissions

Submissions

comment 7y ago · link · parent

One of the best things of PHP today is the ecosystem. The PSR [0] interfaces let you build your own framework using libraries from the major frameworks or independent libraries seamlessly.

[0] https://www.php-fig.org/psr/

comment 7y ago · link · parent

And composer!

comment 7y ago · link · parent

This is a very good resource for PDO: https://phpdelusions.net/pdo

comment 7y ago · link · parent

> import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts";

This feels both very pragmatic and frightening at the same time.

comment 7y ago · link · parent

Great way to raise awareness. Now use the printers to warn people their IP cameras are exposed too.

comment 7y ago · link · parent

Maybe if your experience using a shell is only Window's CMD. I live in the shell. My Linux machines are configured to automatically open a terminal upon login and the first thing I do when I get a new Windows installation is getting bash working on it even if it's not for development.

comment 8y ago · link · parent

Do whatever the one that donates more money to him wants him to do.

comment 8y ago · link · parent

Thanks, I also found this information in the site: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C2018071822544...

It seems a fresh revenue model after so much the-user-is-the-product models. Here's is to your success!

comment 8y ago · link · parent

This sounds too good to be true. Who's funding this project?

comment 8y ago · link · parent

The solution is to upgrade the users to know better than to get baited.

comment 8y ago · link · parent

And then find a way to run that and so turn it into a programming language?

comment 8y ago · link · parent

Doesn't the chained version still iterate over all the elements and squares them before taking the first 3 bigger than 5? the second version only goes over the minimum necessary elements and then breaks. How can the first be higher performance?

comment 8y ago · link · parent

You can buy it as a gift... to 300 of your close friends who are incidentally named like you and live in your house.

comment 8y ago · link · parent

At least it's not /r/os

comment 8y ago · link · parent

It would be nice to have a sectioin with things that work differently in both languages. For example in python `if []:` evaluates to False while in javascript `if ([]) {` evaluates to True.

comment 8y ago · link · parent

Are we broadcasting signals?

comment 8y ago · link · parent

4chans version:

"Ironic shitposting is still shitposting"

comment 8y ago · link · parent

> (a := b)

Will `with` start using this syntax instead of `b as a`: `with open('foo') as a:` == `with a := open('foo'):`?

Update: found my answer on the pep. `with EXPR as VAR` actually calls `EXPR.__enter__()` so it's not the same.