/dpt/ - Daily Programming Thread

What are you working on?
Previous:

Attached: 1526404189266.jpg (3840x2400, 930K)

Other urls found in this thread:

phauna.org/papers/anime/anime.pdf
discord.gg/4TuhPhr
github.com/copy/v86
copy.sh/v86/
bellard.org/jslinux/
sourceforge.net/projects/win-agui
)
letsencrypt.org/
discordapp.com/privacy
twitter.com/NSFWRedditVideo

>/prog/ is dead
>there are no good programmers left on the four chins

Attached: 1516835476392.png (409x325, 164K)

posting int this one because the other one uses that retarded webm

>softwareonly animeNEETs think they know anything about hardware

Attached: 1525691272161.jpg (800x790, 67K)

non pleb way of writing this?

def score_game(self, X, y):
scores = self.score(X)

count = 0
for i in range(len(scores)):
if scores[i] == y[i]:
count += 1

return count

Can it be done in less lines or use a special function I'm not remembering?

Reminder that a fucking hobo can write better PHP than that of 4chin's

What book for c# ?

>google an error
>only result is the source code where the error is thrown

Attached: SWEATING FURIOUSLY.png (415x367, 142K)

Why have you not switched to Go yet, Jow Forums?

Attached: gorocks.png (597x458, 76K)

It's python. There is no way to make it non-pleb.

Because I don't anticipate 20,000,000 http requests per second.

>her website
10/10

Attached: file.png (681x60, 2K)

Waiting for 21 century features. Like GENERICS FOR EXAMPLE.

>20,000,000 http requests per second.

for what reason??

>20mil/sec

Is that even possible or just BS?

/dpt/-chan, daisuki~


harmful

something like this
return sum( (x == y for x, y in zip(self.score(X), y)) )


phauna.org/papers/anime/anime.pdf

Please, don't say that. /dpt/ is still the best programming community on the web.

Thank you for using an anime image.

Attached: circuitgirls2.jpg (1500x938, 88K)

I implemented a master-slave flippity flop using ur mom lol
How about you beat python first?

Attached: Blank+_ab34699fb81c66c491deb778ae9cd461.jpg (508x493, 20K)

>highly optimized parsing for a very narrow use case
yeah

>the state of this delusional weeb animeNEET
absolute cringe

>I've broken the 2 HTTP requests/second ceiling with Wordpress for the first time!

that solder looks awful.

>this is a "hello world" in Go
LMAO

Attached: 0_1YuoubeiC1RDxWvG.png (800x373, 72K)

Attached: best-csharp-book.jpg (832x1118, 778K)

it's paste before it goes through the oven

(reduce (fn [acc x] (+ acc (if (= (car x) (cdar x)) 1 0))) 0 (zip scores y))

>benchmarking hello worlds
the state of Jow Forums

I find it hard to believe that you can serve an HTTP response in 50ns.

do fizzbuzz next

you could use reduce but what you're doing there is perfectly clear and readable
don't undervalue clarity

>written in hindi
>cover has a bunch of white people on it

>n-not in this case
>muh highly optimized for specific task
>muh 20Mil
>same perf as java

Those are diversity hires obviously.

Learn C# is a good one for beginners and C# in depth which discusses the language and its history for someone with an intermediate knowledge of C#

may someone repost the invite to the dpt discord, please

for the nth time there is no /dpt/ discord

This one? 8VuQrkC

i am pretty sure there is one

discord.gg/4TuhPhr

#NotMyDiscord

chromium:
>background-color:
>background-image:
can be in any order

FF:
>If background-image is above background-color it fucks up the positioning of the background

thanks senpai

That's because it is not yet rewritten in rust!

Wow rood. Why did you ignore the server I posted?

not funny, are you 12 yo or something?

Why are you so mean?

Horrible bloated ASP.NET MVC web app with some shitty bootstrap theme on the front end. Visual Studio is a shit show and I'm losing my mind with Entity Framework

...

This is programming retard.

I never asked for this, I wanted to be a programmer

Webshit is really not programming

How is it not?

Explain your reasoning.

p.s. this is gonna be good

github.com/copy/v86
copy.sh/v86/
>"not programming"

Attached: wow anon.jpg (884x574, 78K)

The hilarious thing about asp C# is it's a fucking compiled language, and they are using it to serve fucking websites.

There is a designated thread for webshit. Fuck off websoy

Attached: DI_fAfQW4AAPqmF.jpg (484x484, 41K)

akariposter is not a webshitter please do not insult him

Still working on my toy Lisp interpreter, added loops and pattern matching yesterday.

That is a special case.

I guess this is the designated programming circle jerk thread

lmao

What's so hilarious about that? Interpreted languages are more prevalent on servers only for historical reasons.

Lol

bellard.org/jslinux/

>Run Linux or other Operating Systems in your browser!

That they stuck the entire build process together, ie you can't work on css without waiting for the entire dotnet build to complete, why would anyone think this is a good idea when gulp is a thing?

Dont kid yourselves into thinking that this is what you normally do in webdev

Dont kid yourself into thinking that this is what you normally do in programming

What did you mean by this?

Attached: c639f708b4e640a1763ce29a9eb75da1.jpg (914x1249, 266K)

That's quite neat.

Why would changing CSS entail recompiling the project? CSS should be in a separate file(s) that the server program loads after it's launched. Same thing with HTML and JS. Even if HTML is really a HTML template, in most cases you should be able to change it without changing the source code of the program. Golang works like that.

It doesn't matter, that doesn't mean that compiled languages are flawed for this, it just means the framework sucks because it doesn't let you dynamically reload static content.

You are probably right, the waiting is just getting to me

What the fuck are you on about? You can modify css even after compilation.

I wouldn't know, it's just the other user said you cannot do that in which case I'm saying the framework sucks if that's the case, if it's not then that's all fine.

anyone have experience with utlist.h bindings. i didnt want to have to write all the shit for linked lists in c so i just used that but it doesnt seem like the LL_FOREACH is working. that or im not prepending my elements correctly. Anyone know whats up?

I think you might be stupid.

Launching the IIS and the web browsers are normally the slowest steps when debugging.
Just leave those two open and you don't have to wait a lot anymore. The compilation step is literally milliseconds even on a turtle.

>/dpt/
>Jow Forums
>using discord over irc
jesus fucking christ

I'm starting to think so too

You can delete your account with just one click.
And it has optional javascript convenience when adding channels.

Attached: 2018-05-16_15-14-25.png (801x581, 15K)

metachannels.ga

forgot link

Just upgrade to C++.

>not writing your own container library

Attached: 13b.jpg (1369x1183, 338K)

sourceforge.net/projects/win-agui

imagine being this fat

You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.

>Password fields present on an insecure () page.
>This is a security risk that allows user login credentials to be stolen.

step your game up

no
maybe but i dont really want to

Work on extending glass to client region and aligning elements/insreasing icon size

imagine inserting two newlines after post number

you did

No macro windows.h and few very light wrappers over certain types in c++17.

thanks, will fix vue issue
doesn't ssl license cost extra money?

letsencrypt.org/

>Let’s Encrypt is a free, automated, and open Certificate Authority.

to add onto this. you can script letsencrypt to auto renew you every time it expires.
they may even provide the script themselves now.

irc died a long time ago and doesn't have the tenth of features provided by discord.

Attached: 1_8DmHnyL3kaqh13wOAiXCQQ.png (1600x3080, 689K)

Fuck off webshits

Attached: ae9c0d868eb8b95c49f4a79b703ae213.jpg (236x205, 8K)

read this sentence.

this

discordapp.com/privacy

out with you

>irc died a long time ago
lmao ffs. it's still the best place to ask questions on open source projects/get involved.
>doesn't have the tenth of features provided by discord.
>Jow Forums doesn't have a tenth of the features provided by facebook!!
sure is starting to feel like summer. get your faggy gamer trash client out of here.

Attached: summer.png (984x954, 1.03M)

>ssl license
OI m8, CAN I see yer SSL Loicense?

how did UK fall into this pathetic state?

This triggered me. Get the fuck out.