Discuss Scratch

MegaApuTurkUltra
Scratcher
1000+ posts

Get User's Followers with Node.js?

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
Jonathan50
Scratcher
1000+ posts

Get User's Followers with Node.js?

MegaApuTurkUltra wrote:

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P
Epic lambdas:
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Pretty similar with that implicit return feature.
ChocolatePi
Scratcher
1000+ posts

Get User's Followers with Node.js?

Jonathan50 wrote:

MegaApuTurkUltra wrote:

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P
Epic lambdas:
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Pretty similar with that implicit return feature.
python's lambda is stupid. i hate it.
comp09
Scratcher
1000+ posts

Get User's Followers with Node.js?

ChocolatePi wrote:

Jonathan50 wrote:

MegaApuTurkUltra wrote:

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P
Epic lambdas:
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Pretty similar with that implicit return feature.
python's lambda is stupid. i hate it.
By the time ES2018 comes out, I'll still be stuck in 2008 trying to catch up.


Visit the website of Andrew Sun!


Jonathan50
Scratcher
1000+ posts

Get User's Followers with Node.js?

ChocolatePi wrote:

Jonathan50 wrote:

MegaApuTurkUltra wrote:

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P
Epic lambdas:
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Pretty similar with that implicit return feature.
python's lambda is stupid. i hate it.
they're great but we need want non-implicit return and multiline ones too.
But it doesn't really matter too much;
def annoying_tmp_function(y):
    x = do_stuff_1()
    return do_stuff_2(x, y)
 
some_thing(annoying_tmp_function)
PullJosh
Scratcher
1000+ posts

Get User's Followers with Node.js?

MegaApuTurkUltra
Scratcher
1000+ posts

Get User's Followers with Node.js?

Jonathan50 wrote:

ChocolatePi wrote:

Jonathan50 wrote:

MegaApuTurkUltra wrote:

ChocolatePi wrote:

I disagree. It is not poorly designed. Underneath its clunky Java-esque shell, there lies a beautiful LISP-like core. How would you say it is poorly designed?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar.
Basically it's becoming python :P
Epic lambdas:
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Pretty similar with that implicit return feature.
python's lambda is stupid. i hate it.
they're great but we need want non-implicit return and multiline ones too.
But it doesn't really matter too much;
def annoying_tmp_function(y):
    x = do_stuff_1()
    return do_stuff_2(x, y)
 
some_thing(annoying_tmp_function)
ES6 to the rescue
let sample_function = y => { x = do_stuff_1(); return do_stuff_2(x, y); }
// or
let sample_function = y => ( x = do_stuff_1(), do_stuff_2(x, y) )

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
MegaApuTurkUltra
Scratcher
1000+ posts

Get User's Followers with Node.js?

PullJosh wrote:


I'm doing a photoshop
Lol this needs to be the official image of the ATs

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
Dylan5797
Scratcher
1000+ posts

Get User's Followers with Node.js?

MegaApuTurkUltra wrote:

PullJosh wrote:


I'm doing a photoshop
Lol this needs to be the official image of the ATs
You got that right

Jonathan50
Scratcher
1000+ posts

Get User's Followers with Node.js?

PullJosh wrote:

I'm doing a photoshop
Use GIMP! Open Source Software FTW!!
[/offtopic???]
NickyNouse
Scratcher
1000+ posts

Get User's Followers with Node.js?

Jonathan50 wrote:

PullJosh wrote:

I'm doing a photoshop
Use GIMP! Open Source Software FTW!!
[/offtopic???]
I use GIMP and still say photoshop to mean to modify an image
Dylan5797
Scratcher
1000+ posts

Get User's Followers with Node.js?

EXTREME HACKY CODE ALERT xD
import requests
def getFollowers(usr, page):
    followers = requests.get('https://scratch.mit.edu/studios/addfrom/followers/%s/%s/' % (usr, page)).content.decode()
    f = []
    for x in followers.rsplit('\n'):
        x = x.replace(' ', '')
        if x[:23] == '<spanclass="infotitle">':
            follower = ''
            for y in x[38:]:
                if y == '"':
                    break
                follower = follower + y
            f.append(follower)
    return f

PullJosh
Scratcher
1000+ posts

Get User's Followers with Node.js?

I just use photoshop as a verb now. I was actually using paint.net.

Powered by DjangoBB

Standard | Mobile