/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Previous Thread:

Aw shieet, gatekeeper is back. See you in 6 hrs when we can have proper discussion, bros :^)


"meme"

>No anime image
Shit thread.

>Aw shieet
>bros :^)
>"meme"
I don't want reddit stink nearby. Fuck off.

I hate this web development hell. All I have to do is make a small front end for my Node.js project but I get literal anxiety about dealing with web development shit. Kill me.

I know a guy like you from school. He doesn't shower, nobody talks to him either. He mumbles a lot. Wears New Balance sneakers.

>web development
What the hell does that have to do with programming? Take your garbage to >All I have to do is make a small front end for my Node.js project
Tell that to your retarded friends at

What is this "gatekeeper", please no bully.

Lel

>it's working

>Lel
Your kind simply isn't welcome here. Piss off.

How was school today?

It's "le boogeyman" that all of the redditors on here seem to go on about.

Hi gatekeeper

>le
Your "people" aren't welcome here.

Some guy that got bored with "whom are you quoting" and is now extreme gatekeeping. I'm sure he'll get bored with that and move on to something new and equally annoying.

Friendly reminder to report low quality posts.

It is an anime image

Why are you even here, reddit-kun?

It truly is.

you are delusional if you think that 90% of 4channers don't also frequent /p/lebbit. if you're sick of "normies" and rabbitors then go fuck off to 8ch or something.

Holy shit, could you project any harder?
Piss off.

Because I felt like it, weaboo sama

What if he doesn't?

Some shitty code to demonstrate a question I have:

def select_random(stuff,rrange):
return stuff[randrange(0,rrange)]

def select_random_c(stuff):
rrange = len(stuff)
def select_rand():
return stuff[randrange(0,rrange)]


Above is Python code to select something at random from a list. The second function is a closure where the outer function is called once to set up the environment and from then on the inner function is called.

Is select_random or select_rand going to run faster? Neither?
A)Neither because Python lists are passed to functions as references anyway and no data copying is involved. The passing integer bears 0 signficance because [reasons].
B)select_rand will be marginally faster because there's no need to pass the integer every time it is called.
C)select_rand will be faster because there's no need to pass the integer and list every time it is called.
D)Neither because internally(after interpretation/compilation) of the Python code both functions are equivalent and must be passed the same data each time when called.
E)Other - explain?

He's not wrong tho, you have to be really dumb to limit your internet usage to Sup Forums and be proud of it.

>you have to be really dumb to limit your internet usage to Sup Forums and be proud of it
Who are you talking about? Link?

>the rabbit version of "normalfag"

About whoever tries to use rabbit as a stigma here.

It is a stigma regardless of place and time. Your kind outnumbering us humans doesn't change that.
And you didn't give me a link to a direct quote of someone saying something like "limit your internet usage to Sup Forums and be proud of it"

>You must be really dumb to limit yourself to not eating shit and be proud of it
You really won me over with your argument.
Reddit is fucking shit. The users are fucking shit. Keep your filth away from here.

>Reddit is fucking shit.
Fourch*n is worse

fuck I miss pre-2013 Sup Forums
now it's reddit this, reddit that. also the autism has skyrocketed out of control.

I understand people are going to visit more than one board, and that is ok.
What is not ok is forcing reddit culture on our board. Call it out whenever you see it. They are rude little faggots that should lurk moar.

Reddit gatekeeping started last month actually

Why are you even here?

It was like this back then, too. It seems that the reddit fucks have gotten more "comfortable".

>last month
I guess you've only been here for a month, then.

It's autistic to use internet forums.

Reddit is a good news source, same goes for HN, there's no need to be autistic about.
>Your kind
Funny thing, I identify neither as r*ditor nor as 4ch*nner.

>I'm not like le rest of them XDD
Yes you are. That is what all of the redditcucks say when called out.
Piss off.

>Why are you even here?
It's Sup Forums: it's where you are free to be completely retarded and still get away with it by hiding behind the mask of "anonymity".
I'm here to raid Sup Forums :^)

>Reddit is a good news source
Good. Fuck off to that shithole then.
>there's no need to be autistic about
I don't want rabbit stink nearby. Fuck off.
>I identify...
That doesn't matter. You not being human is a medical fact.

/r/programming actually has some quality content. Some subreddits are decent. If you stay away from the front page and limit your exposure to a few of the less cancerous subreddits, than it's not so bad.

Uhhh.....
Could it be that this faculty method is totally wrong as fuck????

static long fak(int fac){
long faculty=1;
if (fac==0){
System.out.println(faculty);
}else{
for (int i=1; i

Who are you quoting?

They why don't you fuck off to those places, then?

>""raid""
>:^)
>/r/programming actually has some quality content
That's great. Fuck off to /r/programming then.

Your intent.

My intent never said this

Nah. You can't ban me either. I'll continue to post in /dpt/ for as long as I like. I've been using Sup Forums since 2007.

>But that's not reddit. Do you want me to let go of Fourch*n or no?

Reddit is cancer and you should fuck off back to there, inbreed.

>I've been using Sup Forums since 2007.
That doesn't matter. Subhumans aren't welcome here.
is a subreddit. So that's where you and your kind belongs.

Do yourself a favor and leave then.

> I have my whole identity built around an internet site with amusing pictures
Sucks to be you.
> Fuck off
> Fuck off
Make me :^)

If Sup Forums is a subreddit, so is /gee/

>:^)

Just because you've been "on" Sup Forums for LE CRA-Z RANDUM ANONAMOOSE LULZ for a while, it doesn't mean that you know shit about the rest of Sup Forums, or even how a fucking community works.

No

Why did you link me to /r/ - Requests?

@
If you're going to act like a fucking redditor, go to fucking reddit.

>inbreed
Hmm, I'm going to report this to your English teacher, Jimmy

/dpt/-chan, daisuki~

Ask your much beloved programming literate anything (IAMA)

You should use random.choice(L) to randomly pick an element

You don't return select_rand() in the second procedure.

>Is select_random or select_rand going to run faster? Neither?
depends the implementation.

The main difference is that the closure doesn't read the arguments from the stack.

>D)Neither because internally(after interpretation/compilation) of the Python code both functions are equivalent and must be passed the same data each time when called.
There are not equivalent

select_random
2 0 LOAD_FAST 0 (stuff)
2 LOAD_GLOBAL 0 (randrange)
4 LOAD_CONST 1 (0)
6 LOAD_FAST 1 (rrange)
8 CALL_FUNCTION 2
10 BINARY_SUBSCR
12 RETURN_VALUE


The closure from select_random_c
7 0 LOAD_DEREF 1 (stuff)
2 LOAD_GLOBAL 0 (randrange)
4 LOAD_CONST 1 (0)
6 LOAD_DEREF 0 (rrange)
8 CALL_FUNCTION 2
10 BINARY_SUBSCR
12 RETURN_VALUE

As you can see here, the difference is how stuff and rrange are fetch (LOAD_FAST vs LOAD_DEREF)

Please next time use an anime image.

It looks like you are trying to link to a post. To link to a post you type two '>' characters followed by the post you would like to link to.

...

>It looks like you are trying to link to a post.
Yes, it "looks" like it. But that's not the case.

Looks fake. Fuck off shill.

Why haven't you killed yourself already?

Do not tell the trash anything. They just need to go shitpost somewhere else.

> verb
It's time to go back to school, m8.

Trying to implement neural network with javascript-python machine learning AI. Using google API for this, not even memeing

>verb
but you used it as a noun. Is English not your first language?

>HlVvKMQ.jpg
>neural network
>machine """"learning"""" """"AI""""
>memeing
So basically you're admitting that you're a redditor then.

Little Jimmy, I am definitely calling your English teacher, he's going to demote you back to year 5.

i made a python program (or well 4 of them) that md5 hashes all of the files in my porn folder, puts the hashes into a list, checks for duplicate files, then deletes the duplicate files.
python is fun. i thought this would be harder.

Who are you talking to?

Your retardation of the English language is not my problem, dumbass. You just need to fuck off back to your nigger echo chamber.

>>/reddit/

I can write a front end using Angular JS for you too. I have a team for agile development framework :^)

>Your retardation of the English language
PAJEET MY SON

>Python
>hard
lel

>nigger echo chamber
>>Sup Forums

>A*gular *S
>agile """development""" framework
>:^)
I don't want reddit stink nearby. Fuck off.
>lel
>incorrect linking

Nice. What development platform does your team rock with?

pic

Please, don't bully.

Who do you want to fuck off? Who are you talking to?
Also what is /r/abbit? Why are you trying to link me to /r/ - Requests?

>"""development""" platform
>rock with

Are you okay?

It's depends, mostly windows 10 with atom editor (for short and quick ninja style editing) or Visual Studio for real work :D

the real answer here is that if you're genuinely that concerned about performance, don't use Python. micro-optimization of this degree would be questionable even with a much faster language/in a relatively high-performance context. with Python, it's beyond pointless

Why do you even care?

>come to g
>want to discuss problems and solutions to problems
>get into the dpt thread
>two analautists are shitflinging their spermencrusted diarrhea and damage all the equipment.

Why?
Can't you go shove your sexual orientation down each other's throat somewhere else?
Like in you basement?

> windows 10
> atom editor
> ninja style editing
> Visual Studio

>ribbit spacing the '>'
Nice try.

>"""micro-optimization"""
>high-performance
>Python
>language
why don't you fuck off back to rabbit?

Nice, dude. I wish we could collaborate together but I don't think it'll work out.

>come to g
>to discuss problems and solutions to problems
You have to go back to newfriend.

>g

I rate your github/bitbucket/whatever on 10.

Who are you talking to?

>>,
Of course a redditard would deny being in reddit.
Fuck off.

I am writing a web front end to my iOS app that uses iOS cloud api. Should I try dart?

>web
>app
Not programming related.
Discuss that on