Discuss Scratch
- MegaApuTurkUltra
- Scratcher
1000+ posts
Get User's Followers with Node.js?
ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
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?
Epic lambdas:ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
Basically it's becoming python :P
(x, y, z) => x[z] + y
lambda x, y, z: x[z] + y
Not yet a Knight of the Mu Calculus.
- ChocolatePi
- Scratcher
1000+ posts
Get User's Followers with Node.js?
python's lambda is stupid. i hate it.Epic lambdas:ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
Basically it's becoming python :P(x, y, z) => x[z] + yPretty similar with that implicit return feature.lambda x, y, z: x[z] + y
- comp09
- Scratcher
1000+ posts
Get User's Followers with Node.js?
By the time ES2018 comes out, I'll still be stuck in 2008 trying to catch up.python's lambda is stupid. i hate it.Epic lambdas:ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
Basically it's becoming python :P(x, y, z) => x[z] + yPretty similar with that implicit return feature.lambda x, y, z: x[z] + y
- Jonathan50
- Scratcher
1000+ posts
Get User's Followers with Node.js?
they're great but we need want non-implicit return and multiline ones too.python's lambda is stupid. i hate it.Epic lambdas:ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
Basically it's becoming python :P(x, y, z) => x[z] + yPretty similar with that implicit return feature.lambda x, y, z: x[z] + y
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)
Not yet a Knight of the Mu Calculus.
- MegaApuTurkUltra
- Scratcher
1000+ posts
Get User's Followers with Node.js?
ES6 to the rescuethey're great but we need want non-implicit return and multiline ones too.python's lambda is stupid. i hate it.Epic lambdas:ES6 (and 7) start to fall away from the C-like syntax and add awesome concise grammar. 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?
Basically it's becoming python :P(x, y, z) => x[z] + yPretty similar with that implicit return feature.lambda x, y, z: x[z] + y
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)
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?
Lol this needs to be the official image of the ATs
I'm doing a photoshop
$(".box-head")[0].textContent = "committing AT crimes since $whenever"
- Dylan5797
- Scratcher
1000+ posts
Get User's Followers with Node.js?
You got that rightLol this needs to be the official image of the ATs
I'm doing a photoshop
- Jonathan50
- Scratcher
1000+ posts
Get User's Followers with Node.js?
I'm doing a photoshopUse GIMP! Open Source Software FTW!!
[/offtopic???]
Not yet a Knight of the Mu Calculus.
- NickyNouse
- Scratcher
1000+ posts
Get User's Followers with Node.js?
I use GIMP and still say photoshop to mean to modify an imageI'm doing a photoshopUse GIMP! Open Source Software FTW!!
[/offtopic???]
- 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