/dpt/ - Daily Programming Thread

old thread: What are you working on, Sup Forums?

Other urls found in this thread:

youtube.com/watch?v=a8xxgt9IjHo
youtube.com/watch?v=_peUxE_BKcU
digicortex.net/node/7
github.com/php
webcache.googleusercontent.com/search?q=cache:0fSHfEYpXFIJ:gawker.com/5693962/Sup
strawpoll.me/10985214
reddit.com/r/chrome/comments/4st0t2/chrome_crashing_when_loading_certain_images/
twitter.com/AnonBabble

Dependent elimination of Church-encoded data in coloured type theory.

delete hasklel

>Github TOS
>You shall defend and indemnify GitHub

Holy fucking shit

junk

actually kek'd irl

muh private company

post your text editor

>He uses a dark theme text editor
>He uses Arch linux
>He uses Java
>He uses C for gui applications
>He uses python for webdev
>He only codes in lisp

That's unironically what I'm working on right now. Step to me again and I'll embed your chin in the pavement.

4/6, no webdev, no lisp

dumb frog poster

...

Reminder the greatest video game in terms of technical achievement and stability is programmed in C and C++, not a meme language

share rc

stupid frog poster
go back to r9k

>unironically using 'unironically'

>using "we" as a pronoun in documentation
trash

>tfw 0/10

You can't even understand that you waste your time.

I'll be quite honest, this many comments just makes your code more difficult to read.
I don't even know SDL and I can figure out your if statement means MAIN MENU because you wrote it as an enum.

Thanks for the (You)s.

>stability
are you mememing hard right now?

What a strange thing to be jimmied about.

It was an assinment for an Intro to Programming with C class, we were told to comment as much as possible

Figured it out lads.
For it to work I had to:
1) Include all the necessary Qt headers in my header file.
2) Include QX11Info and Xlib (with QX11Info before Xlib) in the source file.

Doin homework

Without posting memes, what's so great about lisp?

Also it's not an enum, it's a pointer
Take into account that I was a little fresh to doing this stuff, was a bit over a year ago.
Looks to me like a great CS grad meme, but it was my first semester in CS

easy to translate code to data and vice versa in it

Babby's first language with metaprogramming.

...

...

recursion a shit

why does your font look so fucking bad?

Man I wonder what its like having good eyesight because I cant read shit like that...

What?

How to i fix this?
>linux

Obligatory Pajeet tech support scammer getting owned:
youtube.com/watch?v=a8xxgt9IjHo

You didn't get user's joke, did you?

The joke was there's nothing good about lisp

>What are you working on, Sup Forums?
I've been learning C# for a week, just finished pic related. The code is ugly so I'll clean it up tomorrow, and if anyone wants to laugh at it, I'll post it. Btw, would love to see other anons do the challenge.

all of those comments are pointless noise anyway, the code is self-explanatory

This isn't even on topic, and it's not particularly funny, why do you keep posting it?

install another font pack I believe. Those are special unicode characters, try adding some unicode packs or some shit.

also

the teacher probably wanted a different type of comments, not just a pseudocode transcript

Can you share your config?

lol get out Pajeet
youtube.com/watch?v=_peUxE_BKcU

>Pajeets shitting their poor unoptimized code on /dpt/
>not related to the topic

Take your shitty code to the loo pajeets

Hahahahaha nice meme lol

they're mostly white students, not actual pajeets

It's an underage who thinks shitting streets is still funny despite being a 14-month old Sup Forums meme.

Shitting streets is not funny. Clogging up /dpt/ with code that belongs in the loo is even less funny.
Pajeet-tier code doesn't belong to /dpt/.

report and ignore. Hopefully a vacation will set him straight.

post some god tier code then mr. programming expert

see We're waiting

Fuck off with your SJW language policing bullshit. People can make jokes that are common in the field if they want to. If you don't share their sense of humor, ignore them.

Jokes are funny.

gvim + powerline + base16-ocean + consolas

>called out for repeating shitty joke

>S-SJW language policing bullshit!
Hello Sup Forums! How's /advg/?

Oh, and where's the fucking code?

see global rule 3

basically this. We're waiting user.

Good code:
digicortex.net/node/7

Shit code:
github.com/php

We got a memer here lads.

>avoiding the question
>can't even think of a few lines of good code
If you can't program and don't plan on learning, why are you even here?

rate my life program
pic related
my goal was so that resizing didn't affect the program
but when I make the window shorter, I most of the time get "wmove error"
how do I fix this, can somebody help me

also, this shit is computationally expensive

There's something called threshold.
Sup Forums had always been a place of free speech and expression until the SJW "muh protect my eyes from seeing offensive language" crybabies flooded it (mostly from Reddit and Tumblr).
You would have to spam off-topic and irrelevant stuff dozens of times to get banned back in the days.

If you selectively apply rules to censor stuff you don't like, you can find anything to be a violation of some rule. For example, I found your reply about how language policing is good to be off topic and poor quality.

Should I report you and get you banned? No. Because this is what free speech is about. We aren't living in North Korea.
You aren't being tolerant by not tolerating any innocent joke which hurts your feeligns.

>computationally expensive
you're doing something dumb, try -o3
could just be haskell being haskell

>old and tired "joke" only tangentially related to thread subject
>fuck off
>MUH FREE SPEECH MUH SJW MUH MUH MUH

Get your Nazi frogs back to your containment board poltard.

>Sup Forums had always been a place of free speech and expression until the SJW
holy shit what the fuck am i reading
it's just a weeaboo hobby site you dumbass

nobody is fucking policing you just because they dont laugh at your joke

now stop derailing the thread, there are already like 20-30 posts on this bullshit

post something programming related, not just "haha them pajeets rite"

baka

Do you know what code means?
Also,
import math
def atkin(nmax):
"""
Returns a list of prime numbers below the number "nmax"
"""
is_prime = dict([(i, False) for i in range(5, nmax+1)])
for x in range(1, int(math.sqrt(nmax))+1):
for y in range(1, int(math.sqrt(nmax))+1):
n = 4*x**2 + y**2
if (n

Sup Forums has never been a place of free speech.

See webcache.googleusercontent.com/search?q=cache:0fSHfEYpXFIJ:gawker.com/5693962/Sup Forums-founders-free-speech-hypocrisy+&cd=3&hl=en&ct=clnk&gl=us for a good example.


Not to mention, freespeech implies that an opinion is being censored. Shitposting isnt an opinion.

Also this.

Dont worry user. Summer is almost over.

>Python
IMMEDIATELY dropped
Literal fucking kids language

>
n = 4*x**2 + y**2
if (n

He looks like the fat ghost in Luigi's Mansion

Your SJW bullshit isn't an opinion too by those standards, then. Stop shitposting and focus on the thread.

>Sup Forums
>C
>linking to gawker article
hello newfag

can you do a webm of how fast it is in c?
also, haskell's pretty fast

>shitposter tells others that calling them out is shitposting.

Okay user.

What are you working on?

>implying it isnt just the first shit I found.

And what the fuck? Do you not even know Java when you see it? Are you fucking retarded?

A game of life that size would be much fucking faster in C

Try using bangpatterns to force strict evaluation in certain circumstances (mess around)

Hey, smartass.
Answer this question and provide an explanation:
Can any proposition of first-order logic (by that I mean the language of Peano arithmetic) be solved by an effective procedure?

You have 1 minute to give an answer with a proper explanation that isn't copied from the first page of Google.

Until then, you arne't competent to judge much, if any, code.

Oh and it could just be console IO.
See if it's much faster if you force it to evaluate (all of it) but don't print it.

I was pointing out the capitalized C in "Sup Forums", retard, not your code.

>python
lmfao

>Hey smartass
>...
>Until then, you arne't competent to judge much, if any, code.
>arne't

Probably need to handle the resize event to store the terminal width and height (I think that's WINCH signal?) and then add a conditional to only print at a position if position is less than the terminal size (need to check both width and height).

Also it's probably not "computionally expensive", it's just the terminal drawing that's the bottleneck, try benchmarking it with and without drawing.

This kid is a fucking joke lmao. He starts shitposting in a coding thread, doesnt post any code, and when he finally does, its some dogshit Python code.

Oh fuck u got me famalam -Okay Handsign-

>can't answer a basic CS question
>tries to discredit the person by pointing out an irrelevant typo

Oh boy, the SJW bullshit intensifies.

>falling for the STEM meme

>trying to get other anons to do your homework

wew

strawpoll.me/10985214

reddit.com/r/chrome/comments/4st0t2/chrome_crashing_when_loading_certain_images/

google devs are fucking pathetic

OH MYU FUCKKIGN GOD ARE OYU A FUCKING RETARD YOU IDIOT PEICE OF DONKEU HSIT IDIOT DUMBASS CUNTFACED IDIOTIC SHIT DICK GO FUCK YOURSELF IDIOT

If I use the "choose file" dialog on Sup Forums, and then do stuff in other windows before actually submitting the image, or if I drag images from that file window to open them in tabs (to look at them before I pick them) then sometimes Chrome crashes for me

What language is it written in?

Haskell bashers strike me more as the fedora type than Haskell pros do.

>calling a basic question homework

Ok, you're a fucking idiot dickfaced dumb cunt bitch ass motherfer son of a fucking whore
fucking dumbass degenerate idiot

>X bashers are worse than X shills
I love Haskell but this is a dumb post

Let's see your browser then

I didn't say shill. Not everybody using Haskell ITT is a shill.

>motherfer

tfw Elixir is the perfect language for the job I want to do but I'm a procedural babby and I'll probably waste days before I can write something barely working

;_;

Anyone that uses Haskell turns into a shill for it

>ruby

Epic.