News for hackers. Stuff that matters.

settler4

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/

And composer!
This is a very good resource for PDO: https://phpdelusions.net/pdo
Re:ECMAScript modules in Node.js: the new plan on Wednesday December 26, 2018 @02:44PM (#18764278)
> import { test } from "https://unpkg.com/[email protected]/testing.ts";

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

Great way to raise awareness. Now use the printers to warn people their IP cameras are exposed too.
Re:Dot Dot Considered Harmful on Wednesday November 28, 2018 @04:41PM (#18555934)
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.
Re:Japan's cyber-security minister has 'never used a computer' on Thursday November 15, 2018 @07:13PM (#18464856)
Do whatever the one that donates more money to him wants him to do.
Re:Sr.ht, the hacker's forge, now open for public alpha on Thursday November 15, 2018 @10:57AM (#18460248)
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!

Re:Sr.ht, the hacker's forge, now open for public alpha on Thursday November 15, 2018 @10:32AM (#18460002)
This sounds too good to be true. Who's funding this project?
Re:Bytedance said to be valued at over $75B in new round on Friday September 28, 2018 @11:12AM (#18094011)
The solution is to upgrade the users to know better than to get baited.
And then find a way to run that and so turn it into a programming language?
Re:Falling in love with Rust on Wednesday September 19, 2018 @04:42PM (#18027535)
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?
You can buy it as a gift... to 300 of your close friends who are incidentally named like you and live in your house.
Re:Leaving Apple and Google: /e/ first beta on Friday September 14, 2018 @07:49PM (#17992008)
At least it's not /r/os
Re:How to write X in both Python 3 and JavaScript on Friday September 14, 2018 @11:35AM (#17987979)
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.
Are we broadcasting signals?
Re:The cyclist behind an anti-cyclist Facebook group on Friday August 10, 2018 @10:36AM (#17733579)
4chans version:

"Ironic shitposting is still shitposting"

> (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.