/dpt/ - Daily Programming Thread

x86 is a meme edition

Previous

Attached: 1537901129364.jpg (1200x876, 243K)

Other urls found in this thread:

grumpynerd.com/?p=132
github.com/crawl/crawl/tree/master/crawl-ref,
crawl.xtahua.com:8080
en.wikipedia.org/wiki/Simula
twitter.com/AnonBabble

where my compsci niggas at

>falling for the compsci meme

Programming in C++ is like fucking a really cute anime girl, except every word she speaks is prefixed with "std" including her moans, and there's the text "template " floating above her head.
No matter what you do, she seems to always get into really weird positions and if you try to "fix" it she'll throw long somewhat unintelligible and seemingly irrelevant complaints at you. Eventually you give up trying to correct them and just learn to love it, and it turns you on even more now.
The more you're with her the more crazy and amazing positions you discover and things that she'll allow you to do that you never even knew about before, and you just keep going back to her again and again each time going deeper and deeper in both respects of the word until every inch and crevice of her zero-overhead body are filled and covered with your increasingly heavily templated std-ridden code.
Despite all her strange quirks, funny idioms and obvious shortcomings, you've grown to love and adore her, and you _thoroughly_ enjoy using her every night.
Although currently you can stick your peepee in literally any hole you like, in 2020 she'll only allow you to stick it in certain holes that don't fuck shit up.
Her breasts are zero-overhead.

Attached: 1509532746989.jpg (1280x720, 327K)

>tfw fell for the compsci maymay

Attached: apufrog.png (711x633, 191K)

install shen laddies.

Lisp is the most powerful programming language.

I still don't understand why C++ programmers don't just import the symbols they use with using declarations

>tfw fell for the C++ meme

Attached: 1535657214689.png (1280x720, 1.26M)

>tfw fell for the Scheme meme

Attached: 1537900938777.jpg (950x1159, 492K)

Programming in C++ is like watching Bakemonogatari

dumb frogposter

dumb weebnigger

Attached: kamerukset.jpg (1387x702, 85K)

I still don't understand why programmers use C++ when C is perfectly viable and a clear superior choice.

>tfw you didn't fall for the compsci meme
early employment feels great lads

stupid frogposter

False

I can't live without templates or compile time evaluation.

It's just as shit gramps

how?

I feel you

>pretend to not like oop
>kernel api is all about encapsulation and passing around vtables
lincux

Then why don't more people use it?

If you're not a cute anime girl, you're simply not cut out for programming.
This is the hard truth no one tells you in school

>he thinks popularity = power
I bet you write in JS

only big brains can grok it

OOP is more than just encapsulation, but passing shit around is disgusting

Encapsulation is gay. CLOS is one of the best object models out there and encapsulation has nothing to do with it.

I'm programming a Bowsette game. It'll be free software ofc

Attached: ice.webm (960x540, 2.69M)

not oop.

I agree. I don't like most of OOP concepts. Inheritance/polymorphism is pretty much shite since people unanimously decided years ago that compartmentalization > inheritance

...

glad i did 2bh having the time of my life

FUCK FREE SOFTWARE, FREE SOFTWARE IS BY AND FOR STREETSHITTING POONIGGERS LIKE US.
And I am happy being a free software dev :-DDD

>people unanimously decided years ago that compartmentalization > inheritance
they didn't though
they both have strengths, and weaknesses
compartmentalization can lead to alot of ambiguity, and most implementations of it have runtime overhead

>kernel api and passing around vtables is remotely similar to oop
the absolute state of Jow Forums

yeah inheritance has uses I guess if you enjoy black men railing your wife

I still don't understand why programmers use _____ when _____ is perfectly viable and a clear superior choice.

super mario bros on famicom had better moves than that.

honest question, there's no game making thread there

grumpynerd.com/?p=132

the only people who think inheritance has no use haven't written anything that isn't a toy program

...

name 1 (one) problem that is best solved with inheritance

t. bad programmer

right here, do you have a rope i can hang myself with?

even better would be a magnum, to blow my brains out..

Can I make a dungeon crawler in python, and then display it on a webpage?

If so, would the webpage need Python hosting? What do I need to know to make this happen?

Attached: 1538670098765.jpg (641x581, 65K)

Big baller

but your game have nudes of Bowsette?

it better be a lewd /weg/ game

polymorphism isn't inherent to OOP, FP had it years before OOP even became a thing..

and it's fucking GLORIOUS

shared behaviour that is unique to a group of objects

Should I show off my personal projects on Github or will they just be stolen?

Webpage doesn't understand python. If it's text-based, it would need JS to be dynamic. Python is a backend language so can only display stuff upfront

nobody's gonna steal your work, goy
worst case scenario, Github proves that you did your work first

he said best solved

literally just make a polymorphic function with a typeclass constraint lmao

>FP had it years before OOP even became a thing..
any example?

>what are interfaces
>implying your dog isn't IWalkable

a graphical interface based on events

Polymorphic functions are the definitive example of polymorphism.

Hey, I just met you
And this is crazy!
But here's my frustrum
So cull me maybe

retardation if you believe inheritance will be the best solution anywhere here

dcss has a webtiles server, you can look at source at github.com/crawl/crawl/tree/master/crawl-ref, and see how it works at crawl.xtahua.com:8080

>so cull me maybe
you asked for it, degenerate

Attached: 1510457272699.png (709x861, 569K)

JavaScript rocks!

which programming language predating oop has that?

Anyway I can keep track of this?

I'd learn Javascript, but it seems kinda shit for employment. I just want a job, man

kek

no argument

>>what are interfaces
something that has worse runtime performance than inheritance and can't define fields or implement functionality

>Javascript
>seems kinda shit for employment
wtf

Anyway, your only option would be using something like wasm

>something that has worse runtime performance than inheritance
LMAO
go back to school and stop spewing bullshit, nigger

ML family of programming languages

and if you wanna go there, fucking Lambda Calculus..

We need more of this

>no argument
I know you have no argument, no need to repeat it

ML has been released in 1973 while Simula has been released in 1965 and Smalltalk in 1972.

>Can I make a dungeon crawler in python, and then display it on a webpage?
depends, are you a cute anime girl?

Polymorphic functions are central to the untyped lambda calculus that was discovered in the 30s. Typed polymorphic functions appear in System F, discovered in 1972 - ML first appeared in 1973 with strong influence from this formalism.

every method in an interface has to be virtual, they have worse performance

I provided an argument and you provided no retort

>me
>a c++ programmer
>my buddy
>.net programmer
>he actually makes nearly twice
I feel cucked tbqh.

Polymorphic while being untyped doesn't make any sense.
lambda calculus has no polymorphism at all: everything is an lambda expression (= a function).

>I provided an argument
don't think you know what an argument looks like but ok

>imagine being this much of a brainlet

If they are known to the compiler, there is no overhead. If not known to the compiler, the compiler inserts code to check whether an inherited method was overwritten which worse than just a virtual call

not an argument.

javascript is the most in demand language and has been for a while

an example, I should say
unless you have an argument or example to the contrary you're just shitposting

>Typed polymorphic functions appear in System F, discovered in 1972

Just 7 years after Simula
en.wikipedia.org/wiki/Simula

I have no job, what can I say?
What sorta jobs does Javascript entail?
I'm gonna go looking for a book pdf online somewhere, but is there any tutorials or methods of learning Javascript that you find worked for you guys?

Attached: 1538252074971.gif (320x240, 2.09M)

Write this sentence programmatically.

>that's a yikes from me dawg

yikes.from(dawg.me());

but you didn't say you dumbfuck, and it was still minimal of an example, no explanations, an example so open to interpretation you don't leave anything to retort against

His argument is in general support of inheritance by answering your challenge with a concrete example that you failed to contradict except with literal NO U replies. Meanwhile, your general argument against has failed for reasons he stated.

>GitHub pull request from person with Anime avatar

Attached: le-anime-trashman.jpg (680x680, 99K)

yikesFromMeDawg();

>What sorta jobs does Javascript entail?
the front-runner for one of the largest in-demand sectors in tech, that pays shit loads more than related programming jobs: webdev

>books
You don't need books, it's quite similar to any imperative lang and simpler

If polymorphism only exists within the presence of a type system, where does that leave Simula?

dumb "dumb frogposter" poster
stupid "stupid frogposter" poster

Attached: 1537960079223.png (427x576, 310K)

anime science