/dpt/ - Daily Programming Thread

dumb frogposter

Just think about it step by step

I'm a lonely NEET with no friends so the only social interaction I'm able to get is from Jow Forums and contributing code to Github repos.

Attached: 5845cd230b2a3b54fdbaecf7.png (1092x1037, 27K)

There is no inference in dynamic shit. Did you mean "crashed with runtime exception" or "silently garbled all the data"?

dumb frogposter

Okay I'm trying to start with shared_ptr, but that's leaving me even more confused

>Manages the storage of a pointer, providing a limited garbage-collection facility, possibly sharing that management with other objects.
Neat, what the fuck does that mean?

It's a wrapper around a type so you can pass it to different functions and not worry about which one is responsible for deallocating it.

It creates customized copy of "The_third_way" focus.
What are you doing with the game, user?

a shared pointer is a pointer for an object that is shared, so rather than calling delete when one shared_ptr is released, delete is called when all shared_ptrs to a particular object are released

You have two approaches, top down and bottom up.

Weigh off what you like more: abstract theory / math (Haskell) or low level hardware (C / ASM). Do you want to do something on the web (JS), do you want to do computer graphics (C / C++). Do you want to make tools for pentesting and want to be a pentester (ASM / C / Python).

So yes it really depends on what you want to do. Some languages are objectively bad but you don't have an alternative (like JavaScript). Most of these languages can be made bareable by using linters, formatters and strong typing. Unfortunately a lot of jobs can be found in languages that are pretty bad (like JavaScript, Java, C++).

Most of the concepts of one language can be transferred to another language. So don't worry too much, just make sure you have fun along the way.