/dpt/ - Daily Programming Thread

What emulator are you working on Jow Forums?

Previous:

Attached: 1537117071908.webm (640x800, 1.33M)

Other urls found in this thread:

en.cppreference.com/w/cpp/numeric/math/modf
twitter.com/NSFWRedditGif

hurr durr

She has braces so this girl is probably like 16-18 and yet she's already acting like a whore

>work on feature all day
>merged to dev branch
>get home and immediately think of an infinitely better solution
Just fucking kill me

>asked too late in last thread
Anyone have experience with the STM32 platform.
Would code written for a STM32F4 work on a STM32F7?

What is your favourite data structure?
Why the rush? Just redo it tomorrow

Red-black trees.

How screwed is my career if my first job out of school is SAP ABAP developer?

Attached: 1526589064187.png (1920x1080, 941K)

>SAP
I really hope you are in EU.

I am, actually. Why?

good luck finding a job in murrica with that.

It's shit.

GOD DAMMIT I WANNA NAKADASHI PHOS SO FUCKING HARD

good luck not killing yourself at a job like that

IMO the worst bugs are the ones that are subtle and nondeterministic

Can ABAP developers solve FizzBuzz?

can we cancel this thread and just post source on op's webm

that's what makes it even better, user

bounding volume hierarchies

could you stop posting that thot plz

How have the mods not stopped this by now?

I reported the guy few times now.
The chances are that he is a mod.

>reported the guy
who? OP or user who complained posting thot?

@bellekirschner you horny bastard.

>have two female chinese backend developers
>they are pretty good both of them
>one is easy to talk to and gets shit done
>the other is a stubborn as fuck know it all
>always does everything the way she think is best, ignores everything agreed upon in every meeting, ignores all code conventions and practices agreed to by the dev team as a whole
>shits on documents ordered and signed by customers, she does whatever the fuck she wants even if the features arent agreed upon
>always go over budget
>no idea why we havent fired her yet
>Have a major problem called in all of a sudden, some buffer overflow so our backend server system in UK is down
>OH SHIT
>spend 4 hours debugging, me and another dev
>suddenly get a gut feeling
>look through commits to the master branch
>I had totally forgotten about the 30+ commits chink dev pushed DIRECTLY TO THE MASTER BRANCH because "I had to test some stuff lol"
>DJAFKDAJFKDAJFKDJFA
>Motherfucker pushed 30+ commits of UNTESTED CODE to the master branch containing production code and now disaster struck
>fix mistake, get mad
>she shrugs and walks back to her desk

I like my project lead but he has no balls to confront her.

THOT

Go above the project lead then

I think they're fake so she looks underage

Here's a recent pic of her without makeup

Attached: 29137963_1544899342275556_173479906_n.jpg (720x960, 133K)

maybe she suck your project lead's balls

the guy spamming the webm

>race card
>female card
she's untouchable bro. the moment any kind of review is brought up the higher ups will sweat from "they fired me because of race/gender" "if i was a MAN would they have treated me this way?"
seriously, hr nightmare scenario.

>without makeup
yikes

came for a source for the thot but everyone is discussing the topic. fucking nerds

>start learning Java
>mfw equals()

Who the fuck came up with this garbage?

Attached: 1537178898383.jpg (960x540, 69K)

I don't mind it desu. It's consistent.

learn C#. It's Java but less retarded.

>race card

"operator overloading is bad(TM)"

Confirmed.

its a child of microsoft-evil-corp

so Oracle is holy-pure-good angel?

heap

God, I hate java and C#

Attached: 1526243171655.gif (350x310, 1.93M)

list 2 or 3 oracle sins

C# is great though

You compare Stack with == and Heap with equals()
This is so mindboggling to me that I have to think in Stack and Heap in Java of all things when in years of using C++ I never had to

Yes, great to wipe one's bottom with it.

No you don't, you compare everything with .equals.
== compares referential equality and .equals compares value equality. It makes as much sense as python's is and ==, or scheme's eq? and equal?

I also hate java. I assume that I would also hate C#.

>You compare Stack with == and Heap with equals()
not really. the equality operator compares two operands that are either numeric, boolean, or reference.

.equals() is 9 characters and takes much longer to type out than ==, and it looks less clean too
That's my problem with Java, everything turns into a wordsalad

For instance if I wanted to take a text file and turn it into a series of objects, I can overwrite >> and it looks like
f >> obj
in a for loop. Elegant.
You try this in Java, it's always going to be a fucking alphabet soup

That’s such a Pajeet post

Are you retarded?

Attached: joel-santos-india-19-340x280[1].jpg (340x280, 32K)

c/c++ has too many black magics for me

C/++ is more like alchemy than magic since you need to do everything yourself

>do everything yourself
c/c++ has libraries.
assembly doesn't have libraries.

maybe

What makes you say that? Are you trying to say she just got them removed

if(that.class==That.class) if(this.intoInt(this.getDoubleParam()).equals(that.thatIntoIntSecondVersion.Arrays.getfirstof(that.Arrays.getArray(that)))) this.copyParametersOfThat(that);

Attached: 1519311063230.png (645x729, 105K)

great, like all the other ms products
ps win vista one love

Who even uses C#?
Not even Microsoft uses C#

When I see what people have used operator overloading for in scala, it makes me appreciate the java way.
+ I can pick up anybody's code and understand what the fuck is going on
- The code I write is a bit verbose
In a professional setting the first point is invaluable, the second one is a minor inconvenience.

sauce on that qt nun?

"Please show me your programming socks and make a disgusted face"

Dokidoki Little Ooyasan

How do I check if the variable has a floating part? If not, convert to the int. std::is_floating_point?

Attached: 1527280616931.jpg (420x333, 123K)

Imagine penis there

i have defined function like so:
double F(double x) {
return x*x+8;
}
How do I calculate derivative of this function in C#?

x == (int) x?

x%1

%2

you mean, if a floating point variable is a whole number? Just do round(val) == val. Or if you want a little slack in the check, abs(round(val) - val)) < 0.000001

For example, if we take 10.2345, return false since it's .2 here, if 10.0, return true.

damn this is pajet tier shit

here's a super lazy way
x => (F(x + 0.0001) - F(x)) / 0.0001

how do you format code like that?

meant for

code goes here, also use square brackets instead

how would you do it fucking turbo genius?

not like that i can tell you that much

>lazy
>does ~ 10 000 cycles for every single number

Can anyone explain why this XOR encryption doesn't work? It works like 80% of the time but certain character combinations cause it to fucking die.

#include
#include
#include

std::string encrypt(std::string str){
char key = 'A';
for(auto &c : str){
c ^= key;
}
return str;
}

int main()
{
std::fstream file("save_file.txt");
std::string str("[]ppp][]p[]p");
file

then just stop please

Does Stallman approve of bitcoin?
It's open software yet it was developed by an unknown organisation

who are you to tell me what to do lmao

i'm you but stronger

if you say so bud

let me guess
all the people who knew how to program fucked off and 95% of the posts are made by tards

not really no

pretty much yeah

not exactly no

Everyone who knows how to program hates programming and the last thing they want to do is discuss it in their free time

If an on-site interview lasts 30 minutes and there's no tech screen, does that mean I've fucked up and they don't want to hire me?

If an interview is longer than five minutes you probably have a chance

>Had one interview that lasted 2 hours + 60 minute whiteboard
>Didn't get a callback
im getting mixed signals here

Attached: 1513440274465.png (514x500, 344K)

en.cppreference.com/w/cpp/numeric/math/modf

template
std::optional to_int(const T &t)
{
constexpr auto epsilon = 0.001f;
T i;
auto r = std::modf(t, &i);
if (fabs(r) > epsilon) return {};
return static_cast(i);
}

>try rust
>error: please use spaces instead of tabs
>try haskell
>error: please use spaces instead of tabs
Wtf is this utter CRAP?

please, don't think your situation is the norm.

I know right. Who the fuck uses tabs in 2018 of all years?

People with a triple digit IQ