/dpt/ - Daily Programming Thread

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

Attached: saika astolfo hime ferris hacka doll 3.jpg (1600x960, 365K)

Other urls found in this thread:

galois.com/careers/software-engineer/
nick-black.com/dankwiki/images/8/85/Msadvice.pdf
twitter.com/SFWRedditVideos

Please do not use a trap image next time.

How do you avoid memes in your paradigms, /dpt/?

Attached: memes.png (627x110, 8K)

this thread is gay
still better than non-anime OP

Thanks for remember made collage of trans women in tech for day of women in Jow Forums

what langs do non-ethical hackers use?

Attached: 1550909969914.gif (580x518, 1.61M)

C + Vodka

lithps

Russian

not OP but traps are programming related.

Attached: 1550712919657.jpg (1230x854, 153K)

Why is it that the only women in STEM are men

because they're hot as fuck

Rust

V

is anyone here gay

you

owned

cute anime girls can't be gay, silly!

is anyone here *not* gay?

everyone else, samefag.

...

people shit on oop which is understandable when you look at some java code but man, well written oop code can be so nice and intuitive to use

that's just well written code

Realistically, what kinds of jobs can you get if you become an expert at eg. Haskell?

Well written OOP is just coinductive functional programming.

Realistically, none
t. Haskell NEET

Attached: 1549915329553.png (790x960, 1.01M)

Just go on github, the mailinglists, the website, the haskell weekly, the blogs, the papers, the talks, etc.
Why can't you fuckers do a 30sec google search?

going to write a matrix client in java

Wait, hackadoll 3 is a trap? My entire life has been a lie.

only big brain jobs
galois.com/careers/software-engineer/

None
Haskell employed almost begin research or has a lot experience on other languages.

>github, the mailinglists, the website, the haskell weekly, the blogs, the papers, the talks
how much do those pay?

but these are all meme answers

Attached: 1462184686921.gif (960x540, 793K)

sono toori

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

Real blackhat hackers tend to be EE or low level software engineers using C/C++ + asm for exploiters

nick-black.com/dankwiki/images/8/85/Msadvice.pdf

great read about studying computer science

>read the classics
this, but make sure you read them in the original greek and latin

>brainlet giving advice to other brainlets

Is there a better way to learn some API/library with documentation that doesn't exist than simply reading the header files?

I'm tasked with building an API where a third party can push information to.
I'm supposed to make it in Java/Spring, but what's the best data format to open an API they can push to?
Should I just ask them to push an XML document I will parse locally?
Seems easier than asking them to follow my data models.

protobuf

Yeah no not asking the third party to implement anything new since they're major fuckups who I want to keep from developing new stuff as much as possible
They're currently hosting a biztalk server for me but they're not even sure how to do authentication

Just use json

why java? are you forced to use it?

Let's say that I have the following source files with corresponding headers

>butt.c
>dick.c
>poop.c

I want butt.c to have access to the functions described in dick.h and poop.h headers and dick.c and poop.c should have access to functions described in butt.h too, but I don't want dick.c and poop.c to see each other or any butt interaction functions that they shouldn't be using

I'm currently doing this with putting something like
>#define BUTT (or whatever that source file corresponds to)
before any includes in source files and using the following in header files
>#if defined(BUTT) || defined(DICK)
>// BUTT-DICK interaction
>#endif
>#if defined(BUTT) || defined(POOP)
>// BUTT-POOP interaction
>#endif
Is there a better way? What's the best/most common way to do this?

I'd say split the header into butt-common, butt-poop-interface and butt-dick-interface

There's a reason no language invented in the past 30 years uses header files.

Are you including or linking them?
In the latter case, just declare the stuff you don't want to expose static, and you should be good to go.

There's a reason no good languages have been invented in the past 30 years.

I never thought I would see someone defend header files, but I guess I should have expected it here.

Is there a way to do that with modules? Assuming it's even useful in the first place.

JSON

what are some programming lenguages?

Attached: 1551593102642.png (800x1339, 848K)

why do programming, anime and being homosexual goes hand-in-hand

>documentation that doesn't exist
If you can't get anything useful putting it through a documentation generator like doxygen, you're shit out of luck.

people will defend anything about C, it doesn't matter how bad it is

look at samples or tests if there are any

Here are some numbers that I'd like you to see

Attached: basedsuicide.png (738x669, 186K)

you tell me.

traps aren't trans, dumb frogposter

traps != trannies, you retard frogposter.

learning c++. only programming I've done was some this-and-that in java and python a couple years back. give me a project to work towards that's reasonable.

Attached: 1512155353966.gif (633x773, 11K)

>if you don’t have at least 100 semi-frequent, provocative/informative RSS
feeds you’re checking a few times daily, you’re not learning enough.
so which RSS feds does /dpt/ follow?

Every aspiring C++ fag should write a shit raytracer

t. aspiring C++ fag

Jow Forumsprogramming!

I think I am too much of a brainlet for serious robotics. Should I go for compiler construction again or just ignore dynamics of the robots and build a simple one?

Attached: asdasdasd.png (866x900, 95K)

I don't follow any, but then again I haven't reached the esteemed position of second year CS student yet

Alright I have a categorical variable, months and a numeric variable x.

x gets a new value each month. How would I go about creating a value that subtracts the first x value by the last x value?

I'm doing statistical analysis in SAS

come on user, it's a master's degree

i didn't when i did my masters

a ray-what?

Attached: 1503241345483.jpg (645x968, 210K)

traps aren't homo

I'm not gonna make it bros

How do I use a debugger and which one should I use?

Attached: 1525534913978.gif (500x493, 631K)

just put a bunch of prints in your program tbhdesu

Attached: 1547770702138.png (256x256, 115K)

Doesn't help.

What does your commit history look like, Jow Forums?

Attached: unknown (1).png (1163x891, 126K)

what history

Attached: firefox_2019-03-03_22-23-33.jpg (745x194, 28K)

""real"" """""hackers"""" simply don't care about programming languages.

if you dont use git i dont know why your here

>implying anyone actually writes shellcode these days

but I use git
that's my actual history

Attached: 1493849730493.png (320x294, 152K)

If someone can help, please help: .

When learning programming, how do you determine if your solution to a challenge problem is a good solution? How do you determine how better or worse it is compared to other peoples solutions?

why the FUCK are u here if you dont do anything

linux: GDB
windows: visual studio debugger

Well it's pretty obvious, isn't it?
>>if that is the case the position of the current cursor is saved into std::vector all_coordinates using std::vector::push_back method, that is created to hold struct Coordinates, that only has two fields: x and y, which of course represent cursor's coordinates
>after each coordinate is saved into all_coordinates a method that redraws the drawable area is called to draw 5x5px black square (multiple brush colors are planned) for each coordinate in the vector
Move your mouse around rapidly on your desktop. What does it look like? Does it look like a line?

Make some criteria and evaluate it based on that. Such as:
- readability
- time and space complexity

Parsing JSON in C. Should I write my own or import another's solution?

I like reading the thread, it's the only one that doesn't make me angry

This.

Attached: 1543094556396.jpg (1242x673, 82K)

>Parsing JSON in C
I looked into this as well and decided that JSON is a pretty awful format. There can be arrays but you don't know the lengths in advance. You're either forced to make something that is inefficient or use a different format.

Where can I learn more about awk? I want write an HTML parser using bash, curl and awk, but I don't really understand how standalone awk scripts work.

is there anything to readability beyond correct spacing and good naming?

does time and space complexity mean doing the most things you can in the smallest number of lines?

That sounds like a gross misuse of awk.

>is there anything to readability beyond correct spacing and good naming?
Absolutely. When I say readability, I don't just mean spacing and naming. I have the overall architecture in mind. Perhaps passing callback functions is a lot more readable than a humongous bunch of nested if statements, switch cases and for loops.

>does time and space complexity mean doing the most things you can in the smallest number of lines?
Time complexity: How fast is the execution time of it, and how does it scale to the problem size.
Space complexity: How much memory is needed and how does that scale to the problem size.

Please do not use an anime image next time. Thank you.

Where do you think you are?
Although OP posted fucking "draw a girl but call it a boy" fag shit.

Attached: Dz5MXqFUwAA5SiC.jpg (452x498, 44K)

ok I think I understand better now. Thank you for the advice