/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1555240509177.jpg (1280x720, 140K)

Other urls found in this thread:

linux.die.net/man/1/write
wiki.sei.cmu.edu/confluence/display/c/DCL04-C. Do not declare more than one variable per declaration
en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
twitter.com/NSFWRedditGif

posting in incel thread

Attached: C26CCB1C-35C2-419C-9F78-E985305F115B.jpg (400x300, 22K)

have sex

my daughter renge is so cute

Attached: 1555241652300.png (1920x2443, 1.58M)

OCaml rulez!!!

Attached: cover.png (2100x2756, 2.55M)

Which hole?

About to pair program in JavaScript, because it rocks!

Attached: collection-2-06.jpg (800x1200, 162K)

Anus, of course.

haskell stack is shit and doesn't work on any platforms

all of them

>he likes types
>he doesn't like runtime errors

Attached: 1539362613271s[1].jpg (250x202, 7K)

dumb javascript "programmer"

Female anus

Studying. CS50 is kicking my ass.

Alright me and my gf will do as you command

Attached: 5CF0A4B6-6BD2-48E8-90D6-D94CD8923927.png (500x725, 439K)

It's not the tool's fault you personally can only misuse it.

Attached: IMG_1057.jpg (1000x1500, 181K)

What's a better alternative?

>he literally needs a little cuck label to tell him when he's been a bad boy and forgot the type of the variable he's using

back into your cuck shed, my friend

always wanted to make a toy OS, did a few attempts on amd64 in QEMU is my rookie years
got a job working with 32-bit arms in embedded, mostly baremetal but sometimes freertos as well. came to conclusion that I can totally implement this for cortex-m4.
decided to make n project os OS for raspi3. It's still ARM but at least not so primitive and I'm curious about multicore. plus there is both physical platform and QEMU support
Hopefully it will be fun. Plan is to do microkernel and study seL4 and HelenOS along the way.

it's a computer program, not your girlfriend

i want renge and dagashiya focused manga and anime

>please daddy, restrict my freedom! Choke me harder, daddy!

retard

Can i, in some way, feed a picture of an error window to a python script so i can make my script do something whenever the error pops out?

Attached: mess-error-image4.png (307x170, 16K)

don't downplay database normalization, guys.
two hours ago i had a single table file using 60MB, now the entire database uses just 33MB.

yeah just print command error

god why are pythonlets such idiots

shoudn't normalization make it larger since you now have more foreign keys columns?

>normalization
>larger

Found the American.

k then explain more where the space optimization come from
did it remove duplicates or what?

working with keras

still working on tab completion c library

as well as my chatroom program for multi-user networks like university servers
it's pretty similar to write - linux.die.net/man/1/write
but supports arbitrarily many chatrooms and multiple users at once

hey, webfriends. Fizzbuzz monkey at it again.
Now I'm trying to reproduce my Pascal's exercises in C. I need a little help here:

#include
#include

int main (void){

int s; i;
s = 0;
i = 1;

while (i != 0) {
printf ("Your total is %i.\n", s);
printf ("Enter a value to be added: //enter 0 to exit the sum\n");
scanf ("%i", &i);
s == s + i;
}
printf ("Your new total is %i.", s);

return 0;
}


I'm getting this message:
|error: 'i' undeclared (first use in this function)|
Pic related is the code in Pascal.

Attached: zHcyD9q.png (534x323, 9K)

Fuck if I know.

I'm just out here harvesting (You)'s

I don't program in C. But I think it's:
"int s,i;" or "int s; int i;"

comma separate multiple variable declaration, but still this is bad practice and not encouraged

you tell me
I don't have to use this language

cant have the semicolon between s and i in declaration
also
s == s + i; is a boolean operation and literally does nothing in this context
%d is regularly the thing to use for integers in printf too

SOPA

Does anyone here have recommendations for a complete Noob to SQL and programming in general?

Attached: aPDL94G_700b.jpg (643x700, 124K)

can you please elaborate?

beware functional programming snake oil salesmen

UMA

beware python oil sailsmen

op here, yes there was some duplication (both physical and semantical).
after normalization there is just physical duplication of some values, but they are semantically different because i'm also making sure i have alternate keys properly UNIQUE'd.

one thing that helped reduce the total database size after the normalization is that the fulltext index files are drastically small too (from multiple megs to 100kb in the most noticeable case).

Any "SQL for begginers" book should do. SQL is easy enough.

beware anti python oil salesmen salesmen

*snailsmen

Int i, s;

beware salesmen in general

>indexes
oh, that didn't occur to me

i'm reading learn python 3 the hard way and you can't stop me!

Attached: Screenshot_2019-04-27_17-09-49.png (1366x768, 266K)

Now, the problem is it isn't adding like it's supposed to. It just gives me 0.

Thank you. It was a typo.

why?
what's the right way to do it then?

>s == s + i; is a boolean operation and literally does nothing in this context
should I just put "=" then?
>%d is regularly the thing to use for integers in printf too
this is the 7th exercise I'm doing. In every one of them I used %i. What's the difference?

DELÍCIA

Attached: sCBZx9S.png (1301x557, 38K)

bend over, faggot.

Anons i want to learn C#, is there a good standalone compiler for it? I dont want to install mono

>makes it concrete

this man is a glitch. He's almost a clone of Andrew Yang, just with two fewer letters in his name and Vietnamese. Otherwise indistinguishable.

Attached: AndrewNG-TA[1].jpg (2400x1800, 342K)

>what's the right way to do it then?

declare each variable on a new line

wiki.sei.cmu.edu/confluence/display/c/DCL04-C. Do not declare more than one variable per declaration

I'm not particularly inclined to stop you from sucking dick

.net core is as smol as you will get. net framework is bloat.

Fuck if I know.

I'm just out here harvesting (You)'s

You can start by not posting such godforsaken images in our thread.
Learn a programming language, learn a sql dialect/DB, then google "how to use from " and go from there. There's no secret sauce.

Also, is there something like "clrscr;" in C? So after the sums, all the texts are cleared and the result can be printed alone.

you could do s = s + i or s += i
%d is decimal, i doest

Truly brave, user.

Is it just me or is it too hot to fucking concentrate on programming anything?

Attached: 1555868800088.jpg (1019x541, 58K)

Is there no way to compile it to binary like gcc? I dont want to compile it to intermediate

...

>VS needs like 7 gigs to build a c++ project
the absolute state

no. c# was never intended to be used like that. if you want a c#-like language that compiles to a binary look into vala.

Google CoreRT.

>"learn [language] the hard way!"
>book is actually easy as fuck to go through

more like you need to install 7 gigs of VS tooling to not be a shitty programmer

The absolute state of C++, indeed.

I don't use it, I just saw someone trying to build a project in a video and they had to install 6gb + adittional 300 and 600mb to build it
(you)

If you're on windows csc.exe comes with .net

gee that's a bummer, c# looked pretty neato, how's the situation with vala

He's not correct user. CoreRT lets you build native binaries.

can you link?

No because it's literally the first fucking result on google.

I don't like R

sorry what i meant to ask is is there any way to compile cil/msil to native?

correct

build tools is like a gigabyte tho

are you dense
what part of CoreRT are you not understanding
hows about you spend 5 or 10 minutes trying to read some shit instead of trying to be spoonfed every little goddamn thing

AAAAAAAHHHHHHHHHHHHHHHHHHH.

>CoreRT is a native toolchain that compiles CIL byte code to machine code (e.g. X64 instructions).

Boost is neat innit

i'm a lazy faggot so it's perfect for me

Can someone explain to me how you would kill a subprocess thats launched from a multiprocess you started in python?

Working on processing and studying for useless uni degree

I wager 20% of /dpt/ is people making things such as this
en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
in languages besides English.

Attached: cows.png (1398x1120, 1.14M)

english is a joke

It's a good one.
Rule won of the English language: Their our know rules.?

Attached: laid.png (560x720, 275K)

I'm pretty sick of all you retards who've heard a few dumb statements and complain about English

No only "formal" English is a joke. That sentence really isn't a real sentence in "real" English which is the language everyone speaks.

Latin is the one trve lingua franca and all languages that stem from it have tools to prevent barbaric retardation like that. I myself enjoy Spanish because there is no room for confusion:

"El búfalo bufalea al búfalo de Búfalo"

Attached: englishghotifish.jpg (683x470, 142K)

Who the flip says wimen? I say woomen.

The quality of a language is determined by how "needlessly" difficult it is for foreigners to fully grasp it. This is why English, Japanese and the Haskell programming language are the best languages.

>tfw like C# better than Java but like Linux better than Windows

>automação industrial
how different is this from mecatrônica?