DPT – Daily Programming Thread

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

Other urls found in this thread:

realpython.com/blog/python/the-most-diabolical-python-antipattern/
stackoverflow.com/questions/21553327/why-is-except-pass-a-bad-programming-practice
stackoverflow.com/questions/10594113/bad-idea-to-catch-all-exceptions-in-python
blog.gauffin.org/2010/11/do-not-catch-that-exception/
projecteuler.net/
twitter.com/SFWRedditVideos

First for XML!

First for size(size_t) == 3 on IA-32!

Please stop with the gay anime little girl shit

Thank you for handling my fuckups.

> implying you know C++

Nobody knows C++

Reminder that unspecified exception handling is the root of all evil in python.

realpython.com/blog/python/the-most-diabolical-python-antipattern/

stackoverflow.com/questions/21553327/why-is-except-pass-a-bad-programming-practice

stackoverflow.com/questions/10594113/bad-idea-to-catch-all-exceptions-in-python

blog.gauffin.org/2010/11/do-not-catch-that-exception/

Every time I see DPT a voice in my head goes "dual penetration thread". Fuck you.

get laid fag

>Exception handling is the root of all evil.

ftfy

Using a Turing complete language to build everything is like using a nuclear bomb for all construction work

How can I average two units in prolog?

average(x, y):
yes

So... what non-Turing complete language you use to program?

speak for yourself, webshit

Not even Bjarne knows it

Cfags BTFO

3D realistic cheese pizza MMORPG that you can play on the browser and is decentralized (no server, clients inform each other of location etc data)

I wish my computer had a 24 bit type

it would make audio programming a tiny bit more elegant

Why dont you just invent one fag

because that would be less elegant

Write a class that aligns the value to 24 bits and overload the operators to fiddle the bits.

I'll fiddle YOUR bits, user. ;)

...

Honestly, there are a lot of natural frequencies / calculations that would make more sense if we had a system built up from 3 bits rather than 4.

Hey HEY, none of that bit fiddling in my thread

Currently finishing up writing a program that does the following:

Factor trinomials
Find slope of the line/y-intercept.

Written in C++. Proud of the slope/y-intercept code, but the factor code is shitty. I wanted to implement the Master Product algorithm method, but it was easier to just use the quadratic formula.

I was thinking of cleaning it up and maybe making an android version. Sell it for $.99

I don't understand that facial expression, please explain.

>Sell it

Simply-typed lambda calculus.

Hey now user, if you were jealou syou could've asked to come too ;P

/but to be more on topic, I really need to pickup angular again, might need it for a work thing soonish. Will probably write a shitty little thing that's just a couple of forms and shit, since what I'm doing is Health industry shit.

[spoiler]But really though, who wants their bits fiddled?[/spoiler]

fuck. we don't have that here, do we?

>angular
kys

It was a joke. No one is going to pay for this program.

I'm trying to become a better coder in C++ by taking on mathematics based projects, though. I'm also learning MATLAB, doing basic DSP.

just stfu and put it in your mouth slut

So how do you use this in a practical non academic manner?

Mmmm, why don't you make me?

> Learning MATLAB
> not learning python with numpy, sympy, etc.
Why?

projecteuler.net/

I didn't chose it, it's a pre-existing project. I personally despise all Javascript.

too much effort for some non-passable autistic faggot on Sup Forums lel

Awww, you killed the mood. ;P No how am I supposed to troll on Sup Forums if people wont enable my autistic bullshit?

Besides, maybe I legitimately like getting all faggoty with smart people.

Because MATLAB/C++ is used in engineering more often than Python.
Thanks! Looks perfect. Any other recommendations???

I know you want the dick but I'm not in the mood to do the work lel. Shoot me an e-mail or something so we can um get to know each other deeply.

>Not even Bjarne knows it
so? is that supposed to make you feel good about your incompetence?

I would need an email address for that you silly fagget~

I really hope one of you is LONDON

Speaking of C++, did anyone else see what they added in for the C++17 spec? Not very impressed with it all myself.

So I'm migrating over to C++ from MATLAB for some numerical simulations because I hear that even without all the convenience of MATLAB's inbuilt functions for linear algebra and vector handling C++ processes the code much quicker and thus is vastly superior for computationally heavy simulations. I just got visual studio and I have no idea where the fuck to start, especially since 90% of the guides are either at an intermediate level or they are oriented towards people looking to develop applications and GUIs. I just want to code maths and eventually want to use the results within MATLAB since it makes nice plots and visualizations and want to see where to start. Help a retard out.

No, I don't know any other sites like that. Those challenges are perfect to learn MATLAB if you like maths. I had a lot of fun with them.

>itt: retards think the C standard is relevant.

All that matters is the assembly the three real compilers emit.

Good luck validating data and enjoy your mmo played with hacks by every user

>an e-mail or something
>I would need an email address for that you silly fagget~
i changed my mind

No fun. And here I was about to do ALL the fun gay things to you.

How to tell a computer scientist apart from a programmer: Gauge their reaction to seeing the church encoding of the booleans + "basic" (not, and, or) boolean operations

>rereads own post
>realize it implies I have no email
>fuck
Also, do note I was talking about your email address, yes, I have email.

gay exclusive (no traps) /dpt/ when?

if = λpxy.pxy
true = λxy.x
false = λxy.y
not = λpxy.pyx
and = λabxy.a(bxy)y
or = λabxy.ax(bxy)

>implying gays can code

In my experience they're worse than women. Even autistic weeaboos are better than gays.

You willing to participate?

>autistic weeaboos
>better than gays
really? the mentally ill are better than the mentally ill?

I'll believe it when they program the perfect waifu

I'd like to see the definition of that λxy struct

so autistic weeaboos are better than daddy turing? kill yourself

sure, why not

It's shorthand. The following are equivalent:

λxy.M

λx.λy.M

Well, if ever responds we can have a big, gay party. Got an email address we could engage in faggotry on?

>implying Turing didn't steal his with from that woman in his lab

Kek. Gayfags are so delusional.

wow, you're really thirsty for my dick huh. shoot me your email address

>boolean operations
Do you mean 'logical operators'? The BHK interpretation of lambda calculus and the CH correspondence concern intuitionistic logic, which is a Heyting algebra not Boolean.

Amateur.
if = id
true = const
false = not true
not = flip
and = λpq.p(q true false) false
or = λpq.p true (q true false)
ftfy

lol, stay delusional japfreak, daddy turing x daddy alonzo x daddy hilbert were totally getting it on and it's a fact that the entire field of computer science is obscenely gay

i do, but what kind of faggotry would we engage on? i don't want to erp or anything, i just want gay buddies who like to program

>implying I'm weebshit

All I said was that gays are worse than them. Apparently they can't read either, so gays might be worse than Pajeet too.

only weebshits defend other weebshits over gaybros

I dunno. I like having gay buddies who code too. Why don't you hit me up at [email protected] and we shall see where it goes?

Can I come too, even if I don't have a penis?

im the guy you've been so eagerly waiting a reply from lol, imma hit you up now. i like how eager you are ;p

what are your qualifications

Yes, yes you may. Programming buddies are best buddies, regardless of genitailia.

I aim to please, and to have smart gay men to surround myself with like a hyper intellectual harem.

I have a BA in CS

SHIT, misspelled the email, [email protected]

hope you got some strong jaws and energy then, it says recipient failed tho, rewrite your address

you can come but you have to like penis

[email protected]

come pay me a visit, let's chat and enjoy ourselves~

Eww

you don't need to like penis, women are super annoying and boring tho, stay away bb

>/dpt/ is now a hook up thread for fags
Suddenly I remember why I stopped coming here.

they're just cargo culting turing

it's specifically not hook ups man, if they start doing weird hook up shit I'm leaving and not talking to them

I just want other /dpt/ fags. you know you'd want a /dpt/ girl to talk to if there were any in here

>be me
>troll reply about bit fiddling in a programming thread because lol
>actually get hit on by smart gayboys and an alleged lady
>victory.jpg?

I apologize to you user, but I am not sorry

easy, just have the game logic on the server

dw you'll be given lots of opportunities to show us gratitude x

Oh my. Not that could go a lot of ways, most of them interesting.

>no server
>just ... on the server
Ok user.

Now*

So, are you joining this party or what? I wanna chat CS with you dammit

we should make a group of some sort

I could setup a discord or some shit.

it could get pretty intense ;D
you kids do your hangout thing, imma keep using mail

ethereum or some other cryptoblock validation meme

I should certainly hope I could. and I have only received emails from two of you nerds, one of ya is holding out on me.

>reCAPTCHA really likes fucking storefronts today

I should hope it could get intense. Also, I have only received emails from two of you, I am minus one Sup Forums friend to hang with. How sad.