/dpt/ - Daily Programming Thread

What are you working on, user?

Infuriating OP image edition

Other urls found in this thread:

raw.githubusercontent.com/bertho-zero/react-redux-universal-hot-example/master/package.json
csapp.cs.cmu.edu/
twitter.com/SFWRedditImages

My bible came in the mail today.
>Pic related

>he compiles any code with MSVC

This statement catches an exception

>JBlow's hot opinions episode 300

Oh wow, it's nothing. And to think, I was looking forward to blowlang.

you probably use libraries too. fucking retard

REEEEEEEEEEEEEE!

>infuriating

You can blowlang me anytime bb

enjoy your meme language, kid

SHART

This is an issue of user error and not necessarily a language problem.

Any language that requires functions be coupled to a "class" is a meme, face it.

How do i learn EVERYTHING that matters about a certain language?

The old thread is not over the bump limit you fucking asshat niggerian.

what's this _meme_?

There's no requirement for that. C# has structs which can just be composite data types.

The only thing it really doesn't have is free functions, which I don't like.

Yeah, C# and Java cucks should just end themselves.

Some people use ALL CAPS on certain words to convey a certain tone, and others use underscores. Mostly because they are autistic.

There is literally no reason to not just allow free floating functions. Otherwise you wind up contorting your architecture in ways that don't really make sense when you have a function that needs to be shared between several different classes, but doesn't require any state of its own.

>There is literally no reason to not just allow free floating functions.

I agree, but it seems that (((Hejlsberg))) does not.

what is up w/ the javascript world and dependencies

raw.githubusercontent.com/bertho-zero/react-redux-universal-hot-example/master/package.json

>what are static methods

It's because javascript is a hot mess that cannot be undone.

>MyCustomMathClass.doTheMathThing(); vs doTheMathThing();

This is what namespaces exist for, not classes.

>some languages add hack features to classes instead of properly supporting modules
kek

>what is static import
and how the flying fuck is MyCustomMathClass::doTheMathThing() better than MyCustomMathClass.doTheMathThing() you insufferable autist

I can do using with namespaces, you retard

>what is static import
kys retard

Still a bad design decision. Why not just let me write code instead of wrapping everything in a class?

fuck off and die you horrible idiot

Are you _autistic_?

>a class is a blueprint for an object
>so it's a constructor?
>well no it's also used to look up methods for dynamic dispatch
>so it's also a vtable?
>actually there's reflection too
>classes are constructors, vtables, AND objects, gotcha
>you forgot about static methods
>...and modules
>yeah

>all these boilerplate apologists in my /dpt/

How's New Delhi this time of year, Pajeet?

So you are you _autistic_.

Gotcha.

The monsoons are probably making their bowels crankier than usual.

you're fucking delusional i bet you're the retard who whined that GLSL wasn't compatible with C lmfao

>Our son has a future in programming
>Fuck! let's bring that to a screeching halt
Fucking soccer moms man. I hope that kid at least fucked his sister out of spite.

Python is just a lisp with no macros and a simpler syntax and set of tools. Prove me wrong

Is that article even real? it reads like lol so 00's fanny article

i think it's satire/bait, that poll is ridic

>ridic

They're both memeguages.

>'tism

Only scientists use Python (and that's because they're all too lazy to learn a real language like Java). LISP has literally no users, it's a total meme language. No one gets paid to write LISP, but there are TONS of Java jobs and TONS of Javascript jobs.

>replying to the carposter

>i bet you're the retard who whined that GLSL wasn't compatible with C lmfao
1: That was me
2: This is not what I argued about, what is that supposed to mean anyway? Pajeet

well thanks for sharing your hot opinions here's your (You)

It has no proper lambdas and bad scoping.
There, proved you wrong.

">muh payment" is not an argument. Moreover if you want to work on a company as a pajeet with a language you do not know, you just learn the language in a week. Learning new languages is trivial.

literally kill yourself pajeet carposter

How do i legitimately crash a C++ program without it giving any errors?

Is there a tidier way to do this in c#? Trying to assign a sun sign based on the players birthday

I shared no opinions actually, Pajeet.

wat

shart in mart

imma huge memer and want to pretend im killing myself

Dictionary StarSigns

assign the key/value to each then just

starsigns[birthDate.Month]

if (You) say so sperglord

*(int*)0;

delete this;

Yeah but star signs are retarded and start in the middle of a month, would that method still work?

FOY

I used a %d to print a float, hoping it truncates the mantissa, but it just prints 1, why?

I need to do what's written at the bottom in white.

I try to do it, and I don't have the options.
What should I do?

i saw this just a while ago.
cant remember where.

Oh never mind just actually looked at your code properly.

Not really no, because you've gotta deal with the offset nuance.

I mean you could do the dictionary thing and use `DayOfYear` and then just quickly work out what days of the year it flips over to the next star sign and use that instead.

It'd take you a bit of time to work out all the days exactly, but it'd be a lot more compact.

maybe in /dpt/ i posted it at least once before. not sure where i got it from or if i thought of it myself (derived from the "DELETE THIS" meme but it also kind of means kill yourself)

Allright, thanks for the help

private string GetSunSign(DateTime birthdate)
{
int i = birthdate.DayOfYear;
if (i

That looks a lot nicer, but how come you use the 28th day of January for the cut off point for Capricorn? It ends at January 20

I don't know, was Lunix really invented by the Soviet computer hacker Linyos Torvoltos?

>>what is static import

To be avoided.

I don't know the first thing about that astrology horseshit, and your image was lowres as hell, It looked like an 8 to me.

using static System.Console;

I don't think I could function without this anymore. Writing CLI stuff is painful without it now.

maybe.
how do you know for certain that lunix doesn't exists or if that name is an alias?

You might be able to do with it TimeSpans. The year doesn't matter, but you could match the given month/day.

I'll vomit.

when can I use sizeof without parentheses?

why was i born?

Get the other bible to go with it:
csapp.cs.cmu.edu/

tip: you can go on Abe Books and find the International Edition which is 10% the price of the full edition.

That will teach you C plus Computer Arch/Assembly in 64bit for amd64 (linux). Like when you come across structs in K&R and would like to know how exactly they are implemented in hardware.

Thanks! Noted.

oops, you want 3rd edition which is 64bit instead of prev editions which are 32bit.

you shouldn't unless you're an asshole

who here only /C89/

no

When you have structs or variables

Faglord

global-namespace functions are also to be avoided

how's that unemployment handling you?

when you have an expression as opposed to a type

What Java version do I need If I want to develop for android?

pajeet

JDK 7 i think but if you get major.minor version problems in your IDEs just try different versions until it werks

That looks like a Hot Wheels car.

Let me guess, you're pretty into "cool bikes" and "hot bitches" too.

>"hot bitches"
lol fag

You guys are long fags

Gonna try starting this udacity course all over again because I can't understand shit. Why does android development feel like some behemoth

i miss that akarin guy
he's the only anime poster I like

because you interface with more or less the entire OS and the hardware features of the device

why is it called a manifest constant and not just a constant

Where is he now?
How is his C board doing?

internship i applied to just emailed me back after i took their hackerrank test but i don't want to look because i only finished 3 of the 5 questions

idk
last time I checked, it had avanced pretty well
it now has Sup Forums like looks