/dpt/ - Daily Programming Thread

Dead language edition

What are you working on, Sup Forums?

Previous thread:

Other urls found in this thread:

github.com/karan/Projects
twitter.com/AnonBabble

is it loon-ix or lie-nix?

C++ is the Alienware of programming languages

OOP is trash.

Rust is the lian-li of programming languages.

OOP niggers out

D fag here.

I forgot to git commit before upgrading my hardware :^(

Lisp is the most powerful programming language.

Oh I get it


Python and Javascript are excellent programming languages

Like first you play it off because you are used to windows and you have no interest in Mac OS then you see a nice feminine penis on a girl (male) and you are like "w-well a taste doesn't make me REALLY gay s-so..." and before you know it your whole house is Linux and you aren't invited to Pastor Terry's barbeques anymore.

So basically the best in his own class?

Not really, it can get in line with any other, otherwise better language with sufficient metaprogramming facilities.

Has anyone here tried Crystal? I just found the website and it looks like a reasonably nice language, but it's pretty far down my "to try" list atm.

60415504
>best
(you)

i fucking hate anime

>you will never be as autistic as failed-normies trying to shit up a place they dont belong

ok reddit
*normalfags

Dunno

/dpt/-chan, daisuki~

I tried and found a few bugs in the type system. Was some time ago.

Yes.

Lisp being a programmable programming language, it's everything you want it to be.

Objects are the most powerful abstraction technique.

Thank you for using an anime image.

I was trying my hand at SICP'ing awhile back and heard that MIT switched to Python in its introductory CS courses(not sure about what happened to the SICP course itself).

Is
A)That just a rumor
B)it that MIT has gotten dumber/lowered its standards
C)Python really just the language to learn(IE MIT decided Python is the new Lisp)

Which?

how did such a cute anime go so wrong?

a, b

>Objects are the most powerful abstraction technique.

they switched in 2008, if i recall correctly. the reason is to reduce cost and difficulty.

/dpt/, what's the shortest way in c# to compare 3 string variables if they are all non matching without writing 9 statements?

misread your a, no they definitely did switch to python. doesn't mean you should too though, for gods sake don't go through sicp in python though

>he uses ((((((((((lisp))))))))))))
>he watches chinese cartoon for pedos to escape reality
if i ever stumble across any one of you fags at the office, i am gonna end you i swear

isn't it beautiful when you spend a few hours designing your code before working on it, and then everything works pretty much on the first try?
much better than the coding as you go headaches

t. manlet

60415823
Heres a normie general for you to shitpost, lad

Yeah it's a great feeling.

if(A != B && B != C && C != A)

>0.3426059320181566 / 35010 yields a positive number >1
why?

because you didn't read the documentation

CL-USER> (/ 0.3426059320181566 35010)
9.785945e-6

>(((CL)))
Stopped reading right there.

You could just test if A = B and B = C, since if true would imply A = C.

Because you're a baka who doesn't understand e notation?

var mystrArry = new string[] { "one", "two", "three" };

var strCompareEnumerable = mystrArry.SelectMany(str => mystrArry.Select(strInner => new { Val1=str, Val2=strInner, AreEqual=str==strInner}));

9.78594e-06
desu

I would honestly prefer just doing the if statements

It didn't!

Let me fix that.

var strArry = new string[] {"one", "two", "three"};
var strCompareEnumerable = strArry.SelectMany((str,i) => strArry.Select( (istr,c) => new { Val1=str, Val2=istr, Index1 = i, Index2 = c, AreEqual=str==istr })).Where(x=> x.Index1!=x.Index2);

This eliminates comparing the same string.

I'm on my first month of programming on college
what are some good activities/projects online to do and learn?

I don't know C# at all but this should works
/*
* returns 0 if a = b = c. otherwise, returns a non zero value.
*/

int different(String a, String b, String c)
{
int ha = a.GetHashCode();
int hb = b.GetHashCode();
int hc = c.GetHashCode();

return (ha ^ hb) | (ha ^ hc) | (hb ^ hc);
}

What is that fucking abomination?
Kill it

First month might be a bit early but here's a list of random stuff you can work on: github.com/karan/Projects

Thank you anons

var strArry = new string[] {"one", "two", "three"};
var boolArry = new bool[3, 3];
for (int i = 0; i < strArry.Length; i++)
{
for (int c = 0; c < strArry.Length; c++)
{
boolArry[i, c] = strArry[i] == strArry[c];
}
}

Ones last one.

much longer than a one liner, but thank you too user

I love F# but I only got to write one project in it, plus it's managed. What books do you recommend for learning Rust?

You're welcome

These were me:

i don't program in rust. sorry.

>fucking abomination
you misspell anime
killing it is good idea though
>been away from dpt for two months, come back
>no pointer fizzbuzz
>no C vs Rust debate
>boring irrelevant and ugly chinese cartoon everywhere
>then i realize it is almost summer
eбaть вac нeкoмy и мнe нeкoгдa

wonder what jew magic mozilla is harnessing to get so many people to fall for the rust meme

...

never learned it, i thought the e was generally capitalised though

fuck I feel retarded now, thank you

Im going to be beginning my last semester of college for cs in the fall and i have learned zero implementation. Like I can make a program do cool shit but it only prints to console and there isnt anything tangible to a person outside of computer science (not counting java swing). I also only know java

should i be worried

In a method form that supports a variable amount.

I only know Java and Python, I feel ya.

well thats one more thing that you know and i dont

you should be doing personal projects
if you haven't started any, do so now

Who are you quoting?

whats a faster way to do

std::powf(value,2.0f/3.0f)

trying to speed up doing a 2/3-rd power

while loop and keep multiplying by 10 is much faster than a floating point power function on any architecture

You have 10 seconds to name a non-shit language for back-end development.

Is rust a meme language?

Pretty much
A mozilla power move

>do my job for me

suck my dick

Uhh guys I have to build a website for the NHS and I don't know anything about building websites.

What the fuck am I supposed to do?

not apply for jobs you cant do

It looks pretty memey with the whole declaring variables with "let"

Wait what the fuck you aren't allowed to change variables in rust without adding a special flag to it.

WHAT KIND OF MEME IS THIS?

Rust is the future of systems programming and the path of enlightenment

>There are other good reasons to avoid mutable state when possible, but they’re out of the scope of this guide. In general, you can often avoid explicit mutation, and so it is preferable in Rust. That said, sometimes, mutation is what you need, so it’s not forbidden.

>Changing variables isn't something you need to do

Fucking retard.
Read the posts you respond to before you respond to them

it's just
>PHP a shite
>Go a shite
>Ruby a shite
>JS a shite

What else? Perl? Should I fall for JVM and get me some Scala?

It's right

Java or C# ?

I can't think of any program that would consist of only constants

Immutability is believed to be the saviour of all programming these days. It's hard too grok for imperative bros, fp bros understand that amirite fellas *wink*

java

Java

Why not python?

Wasn't a question, but I find it interesting that you two responded with Java, seeing as most posters prefer C# and condemn Java with a passion.

>Slow
>Meme language

Hmm I wonder why

>Meme
>plebbit spacing

Java is the best language by far. It's fast enough to be usable for pretty much anything, it's so popular that there are endless tools and libraries and it doesn't require autism.

And it has the perfect syntax with no memery.

>Hurr durr redditors are shitting up the site HURR DURR I'M SO SMART SO I'LL SHIT UP THE SITE

hmm

>meme
>MEME
>memey
I don't want reddit stink nearby. Fuck off.

>Hurr durr
>THINKING EMOJI.png
If you're going to act like a redditor, go to fucking reddit.

Wrong thread?

You realise the whole language being a meme comes from here right? You fucking newfag lol I bet you saw me say it on reddit and thought it was from there.

You can taste the summer in the air.

>meme
>plebbit spaces
Back to your subreddit.

>I can't think
I know.

Calling it meme is the meme. How Is it slow? I'm used to process huge datasets with it.

Come on then give us an example since you're clearly the smartest person where

>meme is the meme
Go be retarded somewhere else, like at reddit.

>meem

*sighs*

What is Sup Forums's opinion of CoffeeScript? I'm thinking of picking up a different way of working with JS and this looks like the best bet. I really like the functional aspects of it.

garbage or great?