/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Old thread:

Other urls found in this thread:

github.com/junit-team/junit4/issues/976
ntp.org/ntpfaq/NTP-s-algo.htm#Q-ACCURATE-CLOCK
twitter.com/SFWRedditImages

Is there any merit in learning x86 assembly?

the same image
every
fucking
time

Parallel functional programming thread:

>muh data structures
>muh algorithms

Yes

CS student here
what can I start to learn or work on that would have a practical use? I am tired of learning shit just for a grade

I have an array of vec3 vertices and an array of vec3 colors and an array of glushort indices. How do I draw this model with opengl es 3? I tried several examples but nothing shows up, except the screen clearing color.

You want somebody to write the entire rendering code example for you ITT just so you can learn?

Post the most simplified version of the code you think should work.

Why is the original image never used?

>What are you working on, Sup Forums?
Learning how to make burritos.

public class Identity
{
public T Value { get; private set; }

public Identity(T value)
{
Value = value;
}
}

public static Identity Bind(this Identity a, Func func)
{
return func(a.Value);
}

public static Identity ToIdentity(this T value)
{
return new Identity(value);
}

var result =
"Hello World!".ToIdentity().Bind( a =>
7.ToIdentity().Bind( b =>
(new DateTime(2010, 1, 11)).ToIdentity().Bind( c =>
(a + ", " + b.ToString() + ", " + c.ToShortDateString())
.ToIdentity())));

WriteLine(result.Value);

>Hello World!, 7, 11/01/2010

Now implement the functions in Control.Monad, e.g.

forever
replicateM
mapM

i never implied autist is pejorative. i simply recognized how much of an autist you are.

I've got to crawl before I can walk, user. Give me time to embrace these monads.

I've lost it

why did you feel the need to say that then? what value does it have? so that people think you are "cool" for being able to recognize basic and obvious things? nice.

...

my god, how autistic you truly are.

why don't you use the optimized image?

This is autism.

And not the potentially positive "hey this guy might actually be really good at something technical" autism.

Just the "this person obviously has trouble communicating with humans" autism.

>if only we had an archive where those images and posts are stored

useless fat fuck

Why did you turn it upside down?

cool, why did you feel the need to make this "post" though?
I fail to see the relevance of your post

i'm australian

cool, me too. so? why did you post this though?

i'm so sorry

When did you accept that qt programmer bfs didn't exist?

>why did you feel the need to make this "post" though?

to notify you of your autism, what else?

i just made this post to notify you that you've inhaled oxygen in the past few minutes. what else?

you are an autist.

thanks for reading this reply

cool, why did you feel the need to write this though? do you think i don't know that? or do you think for whatever reason that anybody else doesn't know that?
thanks for writing this "reply"

>why did you feel the need to write this though?

because you are an autist.

why do you feel like this in any way even comes close to answering my question?

Kill urself faggot. You'll never use that in real life.

...

...

Well, no, but I'm trying to learn the idea behind some of these functional concepts that are all the rage.

In some cases, I'm finding that I'm already doing things in a functional way, but really I was just using a language feature because it got the job done.

LINQ is very functional

How would I go about hole punching with TCP and UDP, and how reliable are they?

why don't you google it?

you'll find better answer than here

Sup Forums has surprised me before

How would I name a module that holds hiragana (monographs, digraphs), katakana (monographs, digraphs and kanji with their romaji?

org.junit.ComparisonFailure: expected: but was:
at org.junit.Assert.assertEquals(Assert.java:115)

what die he mean by this?

Read about sockets in general. TCP and UDP are just protocols on top of them.

github.com/junit-team/junit4/issues/976

It's easy to miss if you keep using crappy software and writing crappy code.
But computers are stupid fast.
It's very rare for your implementation to be slow if you just use SIMD and multithreading reasonably well.

But don't write code too well. Using computers will just jade you after that. You look at an application that takes more than a second to launch and feel insulted. Like they didn't even care for the user enough to do the most basic shit to make it run acceptably. So you're stuck there waiting for their garbage abstractions to do their useless work.

weeaboo_faggot

kana

animu is degenerated and a sign of a shitty programmer

pic related
AFAIK kanji isn't part of the kana, but w/e.

it is okay to work without getters within methods, right?

for example, inside a Point object, use this.attribute = 3, instead of this.setAttribute(3)?

make something you can use yourself

Haha, no

Not to write it, but maybe to be able read compiler output

what does your day as a programmer look like?

>work at 9.00 AM
>breakfast
>head to work
>program for 3hours
>lunch
>back to work
>"program" til 6 PM
>go home
>browse 4chins til midnight
>bed
>repear

Only when the the purpose of the object in question is to hold data.

>it is okay to work without getters within methods, right?
Yes.
Getter and setter methods are the odd case really. Schools teach them the wrong way.

If you've made a conscious decision between public and private variables anything goes as long as you stay within those bounds.

If the getters/setters don't do any additional logic, I wouldn't bother.

If they do, you may find that it gets duplicated if you don't use them. Also, in the case that they do, even if you have a public getter, I would make a private setter, again to reduce that duplication.

How accurate is my system clock, assuming it gets the time from an NTP server?

>wake up at 6:30am
>eat, clothes, leave by 7:00am
>arrive at 7:30am
>response to emails
>deploy to staging
>get the most important cards done for the day
>snack
>coffee
>hackernews/reddit/Sup Forums
>lunch
>get all other cards completed that I had planned for the day
>3pm, play a game of dota with the coworkers
>complete more code if I need to
>deploy to staging
>response to emails
>leave around 4-5pm
>code personal projects at home if I don't have anything social planned
>shower/sleep

My average day in web//mobile app development.

Accurate in what way?
As in its granularity?
Consistency syncing across different systems?

I don't know but you'd probably like to be more specific.

Consistency across multiple computers. I'm assuming it is pretty accurate to itself

junior C# code monkey here. I'm currently dealing with a bunch of consultants in order to learn the proper .NET way of doing things, but so far I fucking hate what I'm seeing.

shit basically goes like
>make absolutely everything public always
>pair every single class with an equivalent interface
>force IoC via dependency injection, always
>design any and all code around the expectation that it will be called externally

this is a ton of boiler plate and project clutter, and the benefits that I can see are minor in comparison.

whenever I ask them to explain their rationale, I get vague answers about how it's "cleaner" and "best practice" or that "everybody in the industry does it" and "you'll understand eventually as you code". I'm starting to think they don't even fucking know.

help me see the light /dpt/

i'm going to begin in mobile app developement.

any tips you can give, if you don't mind?

if you dont have anything besides Sup Forums to do with your free time, you might as well kill yourself.

>if you dont have anything besides Sup Forums to do with your free time
what do you suggest?

>I'm starting to think they don't even fucking know.

they dont fucking know either.
they once were junior C# code monkeys like you and saw a senior C# code monkey doing it. now they are seniors themselves, they pass it down to juniors.

you will also go the same path.

ntp.org/ntpfaq/NTP-s-algo.htm#Q-ACCURATE-CLOCK

i do lots of activities, but they are unique to my location, family and personal taste.

the thought of having nothing but Sup Forums and work in life scares the shit out of me.

First of all, please read the Yellow Book before codemonkeying around, since making everything public in the code is a disaster waiting to happen.

do what they tell you, finish your work and then fap to anime girls

just to be clear, I'm looking for informed opinions, not neetfags suffering from Dunning-Krueger effect

this is the authentic Sup Forums lifestyle.

drugs, porn and videogames

im am neither a neet, nor overestimating my competence.
you underestimate the amount of inertia behind people coding for years.

Which book is that from?

should I export my projects as .jar or as .zip?

.zar

.tar.xz

.bro

whats the fastest way to take thousands of images and import them to a database table? they have to match up with an item number, too. Please tell me I don't have to do this manually.

.mp3.exe

.bix

>stumble hungover into the office between 5:30AM and 7:00AM
>check email to see if there's anything important to do today
>initial browse of current /dpt/ and other threads
>get a bit of work done, fix a few issues and send emails to clients/internal staff notifying that it's done/working now.
>continue shitposting on Sup Forums while working on pet projects
>grab a few beers from the office fridge around 11AM
>go home at 3PM and enjoy the rest of my day with alcohol, food, and cat

.raw

optimised png

>I have no idea why IDE users are worse in my experience
That's dumb. At least try. You're writing a book.
Don't have an opinion if you have nothing to say.

>wake up at 10
>log into skype so I'm online
>sleep until 12
>wake up again and make breakfast and shower
>fix some menial bug and check it in so it looks like I'm working
>mess around on my main rig until 6pm, occasionally doing actual work on my laptop
>make 6 figures doing this for 2 years now
feels alright

i would chastise you but you used an anime image so you're alright

What is the most retarded, forced and obnoxious "feature" in a major programming language ever?

And why is it definitely the declaration/definition split of C++?

Mutable state

dont you have to deliver some actual productivity if you work from home?

i work for a mid-size company, not even a small one, and even here it becomes immediately noticeable if a project member slacks off.

Some companies' management staff are really, really poor at their jobs.

Luckily, capitalism will either set them straight, or their end-product is so valuable that they can afford all of that waste, in which case the consumers are to blame for paying those prices.

Yes.

I'm not exactly a 'programmer', more data analyst. But similar enough.

>wake up at 6:50
>roll out of bed and into home office
>set Lync status to "available"
>doze in recliner until 9AM
>clear inbox full of trivial bullshit questions
>lunch
>clear production queue / troubleshoot EDI errors / generate reports for the day
>3:30PM set Lync status to "off work"

laptop on the side of my desk open to Sup Forums throughout this entire process

what does an data analyst does?

you mess with R and graphs?

Maybe

OOP

mutable types