/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Previous thread:

Attached: __bowsette_goomba_mario_and_princess_king_boo_luigi_s_mansion_mario_series_new_super_mario_bros_u_de (850x1205, 237K)

Other urls found in this thread:

steve-yegge.blogspot.com/2006/04/lisp-is-not-acceptable-lisp.html
en.wikipedia.org/wiki/Delimited_continuation
okmij.org/ftp/continuations/against-callcc.html
youtube.com/watch?v=OyfBQmvr2Hc
twitter.com/SFWRedditVideos

So C wasn't the answer...than what is???

Attached: 1538108623985.jpg (715x1200, 85K)

first for sepples

Attached: Screen Shot 2018-09-28 at 9.19.17 PM.png (1144x1218, 252K)

I want to cuddle Goomba-chan!

>production C++ is relatively clean compared to the shit some anons write
It's almost like clean code is virtuous

Beautiful.

posted this in the last thread
If you learn C your struggles will be dealing with the language
if you learn Lua your struggles will be designing the game
Depends what your goals are I guess
Maybe you want to struggle with the language

cute image dude

learn a language that suits your needs and code that's it.There'se no 1 right answer pic the tool that best suits the job.

I feel you...will lua help me in life somehow?

Attached: 1538110800616.png (1113x1689, 2.62M)

Do not post disgusting 3D.

if I learn too much Haskell will I turn into a monad?
that one is passably 2d

Attached: sadBrows.png (400x400, 185K)

Why won't the C meme die already?

Nobody has recommended assembly as an entry point for decades, yet C persists. It's a horrible starting point because it lacks the most basic types like strings, has horrible error messages both compile-time and run-time, doesn't have a REPL and requires pointers for anything but hello world.

lua is a popular scripting language for video games if you're interested in that field, C or C++ is more ubiqutious though

>that one is passably 2d
No it's not.
Do not post 3D, under ANY circumstance. They never pass as anything but disgusting.

all [clap] japanese [clap] girls [clap] are [clap] 2d

Attached: 1490889265304.png (392x462, 174K)

>yet C persists
because nobody has made a suitable replacement

What's the best way to learn Python? Udemy?

How do you guys get the motivation to keep going?

Mmk I'll try it out~ thanks user :33

ok daddy..sorry

Attached: 1537971667147m.jpg (664x1024, 120K)

You called?

Attached: move zig.png (2490x587, 32K)

Tutorial at python.org, then put the library reference under your pillow for 3 or 4 months.

>nobody uses it
woah

best language is
>a lisp
>is a common lispy scheme
>has a standard library
>doesn't have call/cc
prove me wrong

>doesn't describe Haskell
qed

Because C is the best language ever. Stay mad.

>lacks strings
>waaaaa, i have to define my own types

>horrible error messages
it has very clear messages, what are you smoking?

>no REPL
>waaaa, i have to think before i try to do shit

>requires pointers
how is this a point against it? doing anything without pointers creates pajeet tier java shit

gg and stop crying fegit

nobody wants to define their own string type
C doesnt even have proper arrays they're just pointers

>steve-yegge.blogspot.com/2006/04/lisp-is-not-acceptable-lisp.html

That's all anything is

>unironically linking to yegger
get fucked

don't worry, a monad is just like a category of burritos

at some point you WILL forget how to write a program, but that's okay, because now you understand category theory and you're halfway towards tenure
also try learning about costate comonadic coalgebras

Attached: 1533837816226.jpg (2480x3496, 1.6M)

none of these alternative languages popping up ever look better than the thing they're trying to replace

>doesn't have call/cc
Hopefully you mean in favour of shift & reset.

you're the one who needs glasses user
also holy shit hiromoot fix the damn captchas it has literally taken me 5 minutes

Attached: anime.png (1000x1300, 786K)

@67838668
that is truly disgusting bait

positives = [num for num in my_list if num > 0]

How are those structures in Python called? I don't know even how to google it.

List comprehension

list comprehension?

>arrays are just pointers
this is true for literally every language's strings and arrays at the very least. i can guarantee whatever language you use has more pointers per line of code than plain c.

List comprehensions?

If you google "python list comprehension" a bunch of times google will offer you a test

Im learning java and i really enjoy it, is it that bad of a language?

why would i google anything related to that abomination of a "language"

Because you're manager knows python and insists certain projects get done in it.

nothing gets done in python

What dev environment should I use if I want to develop a Windows tablet app in C++?

indians aren't allowed here

This confuses and angers the zoomer

expand upon this

en.wikipedia.org/wiki/Delimited_continuation

okmij.org/ftp/continuations/against-callcc.html

checked and no, it's not that bad. the problem with java is after you've used it for a while you start to realize there is a lot of needless boilerplate and most libraries and frameworks will lock you into a certain pattern or environment. java, as a language and ecosystem, allows devs to shove their bad ideas and decisions on others. getting stuck using a crappy java framework or brittle design pattern just because your boss wants it is a total nightmare. these aren't the fault of java, but it does lead to people hating the language for it.

fuggggg, why isn't there a perfect language yet

this is your opportunity user

needs more macros, right?

Attached: Screen Shot 2018-09-28 at 11.07.04 PM.png (1354x1526, 348K)

The computer science industry has been derailed and infiltrated by Deep Communism which still to this day controls the means of production from its volcano lair

SQL is perfect

don't you keep up on tech journalism? there's a new perfect language every 6 months or so. don't you know we're all using python/ruby/nim/haskell/julia for literally everything now?

This is true for almost any 3rd party library and every single framework in existence. The moment you step into someone else's land you get locked into their flow and environment. QT? The same shit. Complaining about being locked in is like complaining about using any 3rd party APIs. And then you have entire platforms that still lock you in. Ever develop for windows or Apple, any mobile device? It's the same shit.

it takes a lot of machine learning and a sophisticated brain-computer interface

huh?

>ruby
and busted

In other words, we could have had the perfect language a long time ago, but it was sabotaged

Modern C++, just don't use the bad shit

{
user_roles := (
permissions.roles -> ( role_id ) : role_name == "user"
)
user_permissions := (
permissions.permissions -> ( permission_id ) : permission_id | (
"can_log_in",
"edit_own_user",
"delete_own_user",
"can_edit_public_pages"
)
)
} :
user_roles * user_permissions -> ( role_id, permission_id )
=> permissions.role_permissions -> ( @ )
;

So if i keep using it will i be ok? Im a total programming noob

A perfect language would not have The Bad Shit, my plump-lipped butt buddy

C++17

maybe a language itself can't be perfect, but a trio of them can be

The perfect language also has to be backwards compatible

isn't a lisp, so incorrect

… and here it comes.

I just want a pure, lazy lisp

tell me the answers its due in 40 minutes

Attached: b7bbed35ea5ce8271f9ac64837d16e47.png (389x598, 23K)

Maybe so, but where is my compiler flag that says I Am Writing New Code In Current Year So Please Leave Out The Bad Shit

t. Chaim Lispowitz

come on, it's only 4800 pages

I want a lisp that treats nil as false, has nil be its own car and cdr, but is a lisp1, and also uses simples macros (no define-syntax bullshit), and has a standard library

what

False
True
False

isn't the first one true? how is it false

it's in the Architecture Programmer's Guide, bro

New benchmarks are in, Rust and Java rape face. Learn Rust if you want to have a future.

FEXPR vs MACROS?

Send help.

Rust's speedup is temporary
Nim will destroy it soon enough

you'll be perfectly fine. much of what you learn with java will be useful in many other languages. it's a good first language to learn.

Linear regression. If you're using matlab, use polyfit

guys look at this faggot. why the fuck comp sci profs are so fucking childish low testoterone faggot who can't fucking express their ideas in single line instead prefix it with 100 lines of retarded stupid jokes thinking they might get coolness point. Jesus I had one prof like this and lost 1 million brain cells. Fucking faggot blocked comment on video or else fucking would have shit on his face.

youtube.com/watch?v=OyfBQmvr2Hc

also, empty lists should eval to nil and function and variable namespaces should be separate.
(empty? lst)
is an unforgivable abomination.

Where did this guy even come from? He obviously knows nothing about C or programming in general

Attached: statemap-perf-lumpy-wat.png (940x568, 38K)

Look at that group of fucking low test boomers laughing at stupidest jokes possible motherfucker I am raging hard.

Who is a C++ wizard here? I'm trying to compile some source code on Linux, but it seems like it's incomplete. Not sure if the bloated Boost library has anything to do with it.

>knows absolutely jack shit about programming

I could be asking in the wrong place, but I'd figure I'd make a post.

Attached: 2018-09-28_230029.png (1600x736, 142K)

I need to learn how to work with Greensock or at the very least GSAP, what's the best course/tutorial to start?

You'll turn into a Dunning-Kruger halfwit who neither knows enough category theory nor computing
>now you understand category theory
Case in point.

Attached: smug_ran8.jpg (1111x857, 571K)

include vector file fucking faggot

I dare you to post this on SO

shut the fuck up you stupid anime bitch

Vau still isn't a real greek letter

start with C