HNHacker News
TopNewBestAskShowJobs

settler4

34 karma · joined July 12, 2018

submissionscomments
settler4··on PHP Apprentice – An online, open-source book for learning PHP
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/

settler4··on PHP Apprentice – An online, open-source book for learning PHP
And composer!
settler4··on PHP Apprentice – An online, open-source book for learning PHP
This is a very good resource for PDO: https://phpdelusions.net/pdo
settler4··on ECMAScript modules in Node.js: the new plan
> import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts";

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

settler4··on Someone hacked printers worldwide, urging people to subscribe to PewDiePie
Great way to raise awareness. Now use the printers to warn people their IP cameras are exposed too.
settler4··on Dot Dot Considered Harmful
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.
settler4··on Japan's cyber-security minister has 'never used a computer'
Do whatever the one that donates more money to him wants him to do.
settler4··on Sr.ht, the hacker's forge, now open for public alpha
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!

settler4··on Sr.ht, the hacker's forge, now open for public alpha
This sounds too good to be true. Who's funding this project?
settler4··on Bytedance said to be valued at over $75B in new round
The solution is to upgrade the users to know better than to get baited.
settler4··on If You're Not Writing a Program, Don't Use a Programming Language [video]
And then find a way to run that and so turn it into a programming language?
settler4··on Falling in love with Rust
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?
settler4··on The Mirai Botnet Architects Are Now Fighting Crime with the FBI
You can buy it as a gift... to 300 of your close friends who are incidentally named like you and live in your house.
settler4··on Leaving Apple and Google: /e/ first beta
At least it's not /r/os
settler4··on How to write X in both Python 3 and JavaScript
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.
settler4··on SETI spots dozens of new mysterious signals emanating from distant galaxy
Are we broadcasting signals?
settler4··on The cyclist behind an anti-cyclist Facebook group
4chans version:

"Ironic shitposting is still shitposting"

settler4··on “I'm basically giving myself a permanent vacation from being BDFL”
> (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.