/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1492872720853.jpg (400x450, 123K)

Other urls found in this thread:

lomont.org/Math/Papers/2003/InvSqrt.pdf
github.com/friendlyanon/Sajtkukac
twitter.com/SFWRedditImages

right now i finished a php&sql website it was my first """""big""""" project i'm pretty happy about it but it was a pretty meh code bc i didn't use MVC bullshit now i'm learning that on the side i'm also coding a VN with my friends on discord its comming togheter pretty good but we still have a few problems when it comes to writting the story

Have you read your SICPtoday?

Attached: 1545646803884.jpg (1920x3272, 2.01M)

OOP more like POO

Post some code

Attached: 1551817660798.png (1920x1080, 424K)

some code
never will

Attached: 1547816204146.jpg (1280x720, 356K)

hey user quick question how did you learn asm ?
i remember learning it for one of my class and almost crying about it. did you use some kind of book or something ?

no idea

the screenshot is from here

ffs user
i'm working on a uno game on unity but i don't know unity so i coded it in java.
me and my friend plan on making a shit load of phone games then uploading all of them at the same time in the hope of one of them catching on one day

I'm relearning a little C++, but the next few days will be starting off Lua to program a simple 2D game

Attached: [SallySubs] Wakaba Girl - 03 [BD 1080p FLAC] [D5C9A8A7].mkv_snapshot_05.09_[2017.06.14_04.37.34].jpg (584x1000, 117K)

>posting some other anons code on /dpt/
why

Attached: 1547831821549.png (640x720, 340K)

Does it have cute girls?

why not?

>posting a weeb character some other weeb made

Excuse me?

alright guys real question did any of you guys understand the sqrt function in the id tech 2 engine ? i have spend about 2 weeks on it and its driving me actually insane. the best i could find is that it uses newtone's methode but that is all i got

This one won't. It's just to get the hang of it. [spoiler]None of the ideas I have involve cute girls[/spoiler]

>500 line of Java code due two weeks from now
>too busy masturbating
My boss is gonna kill me

Attached: 1535923562173.jpg (591x716, 28K)

alright next question does it have cute girls with giant dicks

lomont.org/Math/Papers/2003/InvSqrt.pdf

Because when you post a screenshot like that it usually implies it's what you're working on, I feel cheated. Also don't talk shit about the anime girl images.

Attached: 1546900526083.png (599x510, 356K)

Games that don't have cute girls are worthless

Cute girls can be added to every game, you must try harder

include

int main(int argc, char **argv) {
printf("No.\n");
return 1;
}

import (java_code)
ur welcum

how do you do that user all my codes are about porn.
my first website was porn related and my first video game is a VN about porn

Is that the quake code?

what is it about?

>500 lines
probably an android app or something

yeah the inverted sqrt that does the sqrt 4times faster

That one really pissed me off

>Think it was invented by Carmack, and the wtf comment was done by Romero
>Turns out an anonymous poster on usenet just dumped the algorithm online, Carmack copy-pasted it, and he added wtf because he is a fucking brainlet

I just want to port games that don't have anime girls in them already, but on second thought one of them do have a cute anime girl in them

wait was it not made for the id tech 2 ?

Attached: 1551783043899.png (584x1000, 771K)

This is a really cute edit. Thank you, user

I want to write a good parser. Consider the following block:
some_block
normal_sub_block
x = "this is a string"
literal_sub_block
y = "this is not a string" "quotes don't matter
end


Is it a context-free grammar production? If it is context-free, how can it be tokenized without analyzing the context — i.e. tokenizer should know whether the string is a parseable string or just a literal sequence of characters, right?

Attached: hqdefault.jpg (480x360, 11K)

>771KB

Attached: f.png (584x1000, 153K)

i'm planning on learning cobol is it a good idea ? since i really fear not having a job so i'm learning a lot of languages.
i managed to learn by now : PHP,java,c++,python,SQL
i also know html,css but not a lot and they are not coding languages desu
i kind of want to add to the list so i deserve a job what do you guys think ?
COBOL is still used in banks

>Linearize function with a variable
>Use function to calculate initial guess
>Pick variable to get low error on this guess on average
>use guess and calculate one step of Newton's method
>Optimise initial guess using bit shifting instead of multiplication

thank you user you are a big help !!!

I don't get it
is it not a string if there's an odd number of quotes? A literal of what is it, if not a string?

a float

"this is not a string" "quotes don't matter
how is this a float?

i was joking user

I can't tell what's different

Attached: 1532375911062.jpg (400x400, 24K)

I'm confused user

>overcompetent with web development
>bored with underpaid web dev job

>capable of quickly learning/adapting to more demanding/challenging stuff
>
>high school diploma

i'm desperate for a challenging C/C++ job at this point

can't stand php anymore nor the fact that my boss is incapable of charging/paying for my skills

what do I do

prep those CVs and look for a new job

I'm wondering how to tether an Oracle database with BLOB columns to a shell script; sqlplus alone won't do.
The standard Perl DBI interface probably is still the least painful solution, considering that the database installation contains it and a suitable database driver already.

nothing, thats me in the op pic

start writing obfuscated code so if you leave the company dies

I re-read my question.
I realized that it was poorly formulated.
I tried to re-formulate it to make the question more clear.
I found the answer while looking for a way to ask it better.
Now the original question doesn't matter anymore.

Everyone thanks for attention.

Attached: ad6.jpg (600x703, 24K)

>desperate for a challenging job
wtf

Attached: 1551561830761.png (1324x1125, 210K)

should I aim for embedded dev positions?

>Your qualifications:
>Bachelor in Computer Science, Mathematics or similar technical experience

this is killing my morale but I keep applying

>25
>no family
>no wife, children
>no higher ed

all I've got is this underpaid codemonkey job and the clock is ticking

stagnation is death

embedded and c++ in general aren't very junior friendly, you should expect to kick doors, no one will open it for you

>should I aim for embedded dev positions?
Only if you love boomer/spaghetti code written by underpaid EEs.
.t embedded dev

how is a challenging job going to get you those
have you tried hitting on women

Attached: 1548911174725.jpg (401x500, 32K)

>have you tried hitting on women
that's story mode, I'm a hard core gamer

don't @ me ever again weeb

>you should expect to kick doors

that seems to be the problem, there's a wall in front of and a mass grave behind me

perhaps I should aim for a slightly better paid codemonkey job first

afraid of consequences thought

dude I write php for a living and can't catch a break to even start thinking about education

0 self respect at this point

you guys talking about coding job is amking me want to end it

Why the hell do you space your posts like that?
Maybe you should work on your English skills first.

Attached: 1453302491365.png (314x278, 129K)

i don't understand

Attached: 1549364210957.jpg (704x484, 101K)

its reddit spacing don't mind it

I do fucking mind. It looks terrible and brings the entire quality of this place down.
Also, people aren't going to consider hiring your if you can't type like you're not mentally deficient.

Why do companies all expect you to know shit like Visual Studio? What's wrong with Notepad++?

RAGIE WAGIE
STOMPS HIS FEET
RAGIE WAGIE
CANT BE NEET

IF HE DOES
HE WONT EAT
IF NO SLAVING
SLEEP IN STREET

RAGIE WAGIE
STOMPS HIS FEET
RAGIE WAGIE
SCARED OF NEET

WAGIE CRY AND WAGIE MOAN
WORKS HIS FINGERS TO THE BONE

WORK AND WORK NO TIME FOR FUN
ONLY EXIT IS A GUN

Attached: 1541581019452.png (195x195, 66K)

Dude I started college at 26, just do it

Attached: return of the wage slaves.png (858x187, 65K)

i'm in no way a neet i'm a student learning how to code so i have a piece of paper proving that i know my shit since all the project i have done until now don't

>What are you working on, Jow Forums?
Trying to figure out why SetWindowPos takes forever to do its thing.

Attached: 2019-03-05-2318-30.webm (1364x768, 1.33M)

żeanne go to bed

>looking at job listings
>Looking for Erlang developer!
>"Functional programming is an important part of any modern business development"
Okay, which one of you was this?

all me

nice file name faggot

nice use of sepples features, what type is trayMap's iterator returning? is it a pair or is there a way to do destructuring for any type?

because learning to build software projects can be a non trivial task. why do they want to pay someone to spend company time to learn something like that if they don't have to ?

Yeah, love the RAII and Andrei's scope exit macro.
It's a std::unordered_map so the value_type is std::pair

where did you get this photo of me?

cringe

winAPI looks like cancer tho

cringe
based

imagine being a grown ass man and writing this

>man

what do you think your parents would say if they knew you pretend to be a girl online?

You tell me.
But it was either this or C#, so this gave me a reason to start poking C++. Would be great if I could find out how to make use of CacheRequest and why SetWindowPos is so slow, but the MSDN documentation is absolutely dogshit.

You're missing the point. he might be a male, but he isn't a "man", if you catch my drift

and why are you doing this project in the first place? have nothing else to do with your free time?

The only other software that does this kinda thing is a paid software, so I just made a free/libre open source version instead.
Gave me a reason to start using the best language in existence for something.

>None of the ideas I have involve cute girls
Not gonna make it.

and what does your software actually do? couldn't' tell from the webm.

And do people even want this?

>4 weeks to go to do my dissertation
>fucking around with MFC instead
>it's not even a CS degree

Attached: 4182374237412.jpg (1242x1217, 141K)

Not as bad as when they found out I let big buff men 20 years older than me fuck me in the ass

github.com/friendlyanon/Sajtkukac
I wanted it, so other people wanting it isn't out of the question either.

Should I learn Lisp if I hate Jews?

Your email address is funny

HH

>I'm a hard core gamer
have you tried hitting women?

>hitting on real women
Ew, no.

Attached: 1538927682335.png (805x720, 553K)

Attached: maosicp.jpg (1280x720, 166K)

Daily fizzbuzz thread
main(i){for(i=0;i++

>\0 at the end of a string literal
you just wasted 2 chars loser

Why do people complain about C's string handling?
I found it just fine. The file handling, however, is both platform-dependent and garbage. The time handling, utter rubbish. Random, also shit.
How hard would it be to write a new time() that gives you the time in milliseconds or similar since the epoch as a 64-bit integer?
How hard would it be to write a rename() function that fails if target already exists instead of overwriting?
How hard would it be to add in functions to check if there is a file at path X?
How hard would it be to add in functions that do rand within a range?

And that's why you target POSIX instead, and use all of the POSIX functions which provide the things you're talking about.
Standard C's concept of a file is extremely loose. In fact, it doesn't really mention anything about a filesystem at all. The "paths" are just arbitrary strings that the implementation is free to interpret as whatever the hell it wants.