prev: What are you working on, Sup Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
shop.oreilly.com
shalusharma.com
youtu.be
twitter.com
First for C
fpbp
>read old-timey programming book
>no dicking around, straight to the point
>learn assembly in 8 hours
>read modern programming book
>authors constantly rehashing the same XKCD "jokes"
>graphics everywhere that server no purpose besides being """bad ass"""
>MEMES
>no real information
thanks for using an image that respects personal freedom!
You're choosing shitty books meant for people to "read" and claim they know x language.
If they actually teach you what they know how can they sell more books?
It's better for the whole academic literature industry if they keep teaching to a minimum.
Same goes for universities. What they need to teach you is how to publish. Because that's how they get rated.
I don't see why you'd go to either of these if you wanted to learn. That's silly.
>tfw the only diference between his garbage toon girls is the haircut
ayy lmao.
a lot of modern texts suck and this is STEMwide. don't fall for the publisher jew.
anzuchang is not a loli
...
Mind sharing the book on assembly?
Another guy interested in it here.
Honestly I agree... I'm going through SICP rn and I'm honestly surprised how much they can fit in a chapter.
I'm not interested. Don't bother posting it.
>keep teaching to a minimum
Better yet. If they teach the wrong things they can later 'correct' you (with other misinformation. That way they can keep the illusion of learning going for a long time.
Best field to do this in is software engineering where there's already a very large confusion about good practice. If you just stick to the old practices that have already been proven horrible at least a decade a go the chances that a person knows about it is small and it can be presented as 'time proven'.
It's amazing what society has been created here. Anons old books are clearly inferior. He learned assembly programming in 8 hours. What a waste!
No. Whatever he used is bad.
Use this: shop.oreilly.com
760 pages for assembly programming.
Probably not what you were hoping for
Good post.
They had to dumb the books down to appeal to women, trannies, and individuals of color.
Expecting these people to actually learn and master a subject is racist, user.
Yeah, she's 2000 years old! Totally not pedo btw.
>old hag langs
rude
>Writing C library
>Use C11 features in public headers
>Sepplesfags can't use it
Good.
What is the K&R of C#?
If you want to learn assembly just read this, it's not that hard.
>there are people ITT who don't wear programming socks while koding
What's your excuse?
I'd like to make a roguelite game, but not sure which would be the better starting point for an engine. Any anons have any ideas?
Sup Forums rarely has threads open for me to ask, otherwise I'd ask there since it'd be more appropriate.
Thanks for any help!
CLR via C#
Socks won't protect you from this shit, m8
...
Oh cool, didn't realise /vg/ was a thing, thank you.
Welcome to Sup Forums, I guess.
That's because straight cis white men don't read anymore.
>What's your excuse?
I've got cute feet.
Spiders are friends :(
I'll fuck you up, m8
what is this
I don't think that's a spidey.
I also agree with this to some extent. If you hate bugs, leave the spiders alone.
If there's too many spiders, kill them but that also means there's too many bugs to feed them.
Decisions and stuff. At least spiders don't buzz in your ear.
I was correct. It's a different order of arachnid.
It's called an "African tailless whip scorpion" or Amblypygi.
Whip spider
They're arachnids, they're spiders
does it worth to use netbeans to learn java or should i use eclipse/intelliJ?
pretty sure its a hologram m8
I personally think Netbeans is crap. Too bloated and with an ugly interface. Eclipse is much more tolerable (though take my input with a grain of salt, as I hated learning Java in general).
No IDE will make you learn java. That's all in your brain problems.
vi you fool
i'll try eclipse then, because netbeans is crashing all the time on my pc
>They're arachnids, they're spiders
You're unironically trying to say scorpions are spiders right now. That's like saying Debian is Arch.
You're unironically trying to say spiders are scorpions right now. That's like saying Arch is Debian.
POLYMORPHIC ARACHNIDS
You're unironically trying to spiderpost. I'm on to both of you.
>in 1978, the Unix kernel consisted of less than 10,000 lines of C code plus some inline assembly
How many lines of code is the Linux kernel currently?
Linux isn't Unix but I think close to 2 million.
15+ million, apparantly. I pretty sure most of the code is for drivers.
I don't think the drivers count. Anyway linux wouldn't the place to look for anything of this sort. I'd go for NetBSD.
ya, but how many games did unix have in 1978?
How many games does unix have today?
su say
su do
Why haven't you learned Haskell and then moved on beyond it yet /dpt/?
Sorry but no.
The idiotification of our society serves one purpose only: For companies to decrease wages and still produce the same shit.
Look at the current tech market, for example, it's always the same stuff in different packages.
Because I can't figure out what comes after abstracting abstractions which are abstractions of abstract things.
realistically we're just talking in terms of language features, predominantly the type system
Serious:
Do you think learning a declarative pure functional programming language like haskell is worth it when I'm very unlikely to be able to use the declarative and or pure functional style in serious code?
Does it get me anything? I already make pure functions where I can, that's simply good practice. But the declarative bit I'm not sure would help me at all.
Yes user, I'm sure the vibrant diversity being government funded into higher education has nothing to do with it
It's obviously abstracting the abstract abstractions of abstractions of abstract things.
What are you retarded?
Declarative, strongly typed pure functional programming will change your life
>unlikely to use it in serious code
It depends entirely on what you're writing.
If you are writing embedded or high performance code, then any form of abstraction is detrimental, and manual memory is a necessity.
This is something Haskell is terrible at.
You likely already use functional programming in limited areas - all major languages have been progressing forwards on this front.
You can write very high performance haskell code - depending on what you're doing, in some cases code can be optimised to C speeds - and you can do manual memory, but it wouldn't be as good as doing it in C, and it wouldn't be particularly Haskell-y. Even if the entire thing was manual memory, GHC would still include the GC with it.
You can foreign call C code, and have a fast C layer and a Haskell layer that performs most of the logic and provides any interfaces.
So to some extent, you can still program at that lower level.
It's obviously faster than interpreted languages, fast code probably runs at Java speeds, autistic super-optimised code can approach C but there'll always be an overhead.
You may not even consider posting in /dpt/ until you have implemented the State monad yourself.
It would be the same if the government were encouraging all straight white cis human-identifying boys to learn to 'code'. The entire sector would dumb down.
Stop trying to force the issue and let the people who are interested in programming just do it. There are two women on my team at work, they're as good as the men, but they didn't get into programming because a celebrity or politician encouraged them to. They got into it because they wanted to make computers do stuff.
data State i j a = State { runState :: i -> (j, a) }
sRet :: a -> State i i a
sRet x = State (\s -> (s, x))
sBnd :: State i j a -> (a -> State j k b) -> State i k b
sBnd sx sf = State $ \i ->
let (j, x) = runState sx i
in runState (sf x) j
sGet :: State i i i
sGet = State (\i -> (i, i))
sPut :: j -> State i j ()
sPut x = State (\_ -> (x, ()))
sMod :: (i -> j) -> State i j ()
sMod f = State (\x -> (f x, ()))
imagine thinking functional matters
imagine not being able to implement a trivial monad instance
tippity top coding, my man
Can furries program?
>hates pedophiles
>owns a picture of one
not him but
>muh "moan ads"
I don't learn languages that can't go fast.
It is seldom-questioned common knowledge that gotta go fast.
Pic related
imagine not being able to pronounce monad correctly
Doesn't matter how fast your code is if it's wrong
>imagine not being able to pronounce monad correctly
>pronounce monad correctly
>nounce monad corr
>ce monad co
>monad
>muh "moan ads"
It isn't wrong though
#include
#include
#include
#include
int main(int argc, char **argv) {
srand(time(0)*getpid());
unsigned const rainbow[5] = { 4, 6, 2, 3, 1 },
colors = 5,
width = 40, height = 40,
stability = 20000, seam = 4,
nminlive = 2, nmaxlive = 2,
nminnew = 3, nmaxnew = 8,
delay = 50000, fresh = 50;
unsigned seaming = 0,
grid_a[width*height],
grid_b[width*height],
*grid_w = grid_a;
unsigned const *grid_r = grid_b;
for (unsigned i = 0; i < width*height; i++) {
grid_a[i] = 0; grid_b[i] = 0; }
for (;;) {
for (unsigned y = 0; y < height; y++) {
for (unsigned x = 0; x < width; x++) {
unsigned n = 0, f = grid_r[y*width + x],
*g = grid_w + y*width + x, h = 0;
printf("%c[3%d;1m%c%c", 0x1b,
rainbow[colors - 1 -
(f ? f - 1 : f)*colors/fresh],
(f ? '#' : ' '),
(x == width - 1 ? '\n' : ' '));
for (unsigned i = 0; i < 9; i++) if (i != 4) {
unsigned nx = (x + i%3 - 1 + width)%width,
ny = (y + i/3 - 1 + height)%height,
j = ny*width + nx;
if (grid_r[j]) n++;
if (grid_r[j] > h) h = grid_r[j]; }
if (f && (n > nmaxlive || n < nminlive)) *g = 0;
else if (!f && n >= nminnew && n
>nounce
>nonce
People who hate Haskell confirmed to be paedophiles
>muh "pedal files"
>People who hate Haskell confirmed to be paedophiles
>who hate Haskell confirmed to be
>hate Haskell confirmed
>te Haskell con
>Haskell
>muh "hash cool"
>2 years into CS degree
>still don't how to define abstraction
as soon as you define it, you make it concrete, and that means you don't understand abstraction
replace it with the word modular
this is the cancer that's killing our industry. stop trying to optimize junk that doesn't need it, you end up writing awful code that's 1% faster than great code. the tradeoff isn't worth it
It happened to me once, it was fucking scary, pro tip: never pop the arachnoid.
babies spiders can't do anything to ya.
if anything, they'll eliminate other pests in your house.
you might see a sharp increase in spider webs though.
>1% faster.
Right. Except that's not what writing some basic optimization gets you.
youtu.be
At 36:26 he starts showing how you practice optimization on an arbitrarily picked integer sequence from the integer sequence encyclopedia. The first few steps takes virtually no time at all to do on top of your original implementation. It's a good watch but the results are that the final step was 1.6*10^6 times faster. The step I'm thinking about that takes a few minutes was ~500000% faster. (5k times faster)
This isn't rare. This isn't algorithmic optimization. This is basic optimization.
And I'm sick of having to wait on SUPERCOMPUTERS to do things as fast as they did them in the 90s. Leaving me waiting. Whoever writes user space apps are terrible people. I hate you with a passion.
Stop encouraging people to write painfully slow code unless you have malicious intent.
Should I click next?
Considering there isn't a next button, probably not
I'm too impatient so I'd just deselect what I think I don't need but honestly with MS products trusting them is vital because that's the only way you can guarantee things work.
install*
>Literally getting cucked
>51.23 gigabytes for a glorified text editor
I cannot fathom winfags.
>oy vey, you anti-spidite! spiders are totally harmless, you should import millions of them into your house!
t.notta spiderberg
>Guarantee
Sorry, got a bit excited there. Your chances are better.
It's way more than just a text editor but yes it's excessive for any development software really.
Not that hard drive space is that valuable anyway. Just poor form to throw that on your users.