What are you working on?
Old thread
/dpt/ - Daily Programming Thread
Other urls found in this thread:
archive.rebeccablacktech.com
doc.rust-lang.org
strawpoll.me
twitter.com
Learning about /proc
I made this "BeOs like" CPU Monitor just reading data from "/proc/stat"
It looks cool imho
>still no hkts
desktop not riced enough
Learning Rust.
Go a shit.
Shit now, I have to download the integral of Evangelion and watch it. I hate you user.
integral?
The entirety, the whole set... Poor translation. Sorry.
I got called a Lisp Weenie today in class by my professor
What was the context?
Is it possible to create a memory leak that persists even after the application has closed?
oh my fuck
the force is strong with this one
what did you do?
Yes on Windows millenium.
Don't think so, at least not if your OS is doing its job.
Write a kernel space program
FP BTFO
The professor went around the room asking what our favorite languages are and I said Common Lisp and he replied with "Oh a Lisp Weenie" and everyone laughed.
>first day of CS classes
>prof is using something called "emacs"
>stand up
>call him a macfag
>walk out
Did he tell yall what his was?
C++
OMG I WAS THERE
AHAHHAHAHAH
Looks like you revealed your power level
kek
it's an oldfag meme if you didn't know
your prof a shit
C++ and java are literally the best languages
Are you a lisp weenie? I'm pretty sure that specific admonition only occurs here, so your professor must browse.
pls stop the bully
Just curious if it were true, bud.
maybe is the professor
>looking up random shit
>stack overflow example of python
>CLASS every fucking time even for tiny code
Why do these idiots do it?
Why?
self. everywhere for no reason
it makes everything look so ugly and complicated
OOP habits I suppose
I don't really like it either, it seems not needed to have an object for a thing that can just be a function
anyone knows / has examples on how to visualize sound ? preferable c and/or c libraries.
i know next to nothing about that topic and couldn't find any info on it
newfag here, what does that mean?
>inb4 lurk more
... for pooping on.
>look mom i meme'd again!
Stupid trump frogposter
>python
You got what you deserved
>माँ मैं फिर से एक इंटरनेट तर्क जीता देखो
good posts
>!nv.0k6WoTc
>being an authority on the qualities of programming languages
kek
Because it makes code reusable? You'd understand that if you weren't a worthless code monkey, and a terrible one at that.
>What are you working on?
Nothing at the moment, watching Terry's latest livestream vod.
functions are more reusable than objects
i am
>python code
>reusable
possible future minus being as good a programmer
I don't get the pic. Is it a Bible joke?
Did anything ever come of this?
>functions are more reusable than objects
Blanket statements like this are pointless unless we see the code anyways, if the original user wants to link the stackoverflow post that triggered him.
>I don't get the pic. Is it a Bible joke?
Apparently, this one was something about "jewish jokes"
looks disgusting, like it's made specifically for console i/o but with no advantages even for that
no, it's objectively true. you can reuse any function as an object method
No because it's fucking dumb.
>in one of his streams he flipped out over the yapping bird
>the bird is nowhere to be heard
What did he do to it?
the class ties everything together, the class can contain a whole system of several related methods which act as functions and the class also contains the data structures
if you werent even in the thread, why are you replying?
When you said "objects" I thought you meant "classes" but now I see you're just retarded. He was arguing that a class was unnecessary in that case which might be true, you're just twisting the argument into a retarded domain.
what does it matter?
What do you matter?
...
and you can make a free function operate on the class itself (as a method) in one line of code if it's well written
>When you said "objects" I thought you meant "classes"
classes are objects.
>He was arguing that a class was unnecessary in that case which might be true
then why did you get mad when i said it wasn't?
>you're just twisting the argument into a retarded domain.
no. unless there's a reason that you have to define that function as a method (which according to the original post there isn't) then it's always more reusable to leave it separate from the class. you're the one trying to twist the argument by saying im wrong because you're too dumb to grasp my terminology
/rust general/ - embedded edition
This is Rust General, embedded in the DPT. All posts for rust general should quote this post so they can all be linked together.
@55968455
Fuck off
If you have a function it's equally reusable as a method or as a unbound function. Your "objects are less reusable than functions" makes literally no sense.
>or as a unbound function
you can't call it if it's unbound.
>forgot this gem from november
I must've been pretty drunk
>auto auto auto auto auto auto
Just stick to javascript or python.
in a non-trivial piece of software you will have functions/methods that are quite specific and not very reusable by themselves. sometimes you may have a reusable function and sometimes you may have a reusable class.
Auto isn't dynamically typed you idiot
And they're C++ lambdas, you have to use auto because they create anonymous classes
Jesus christ, this is why I stopped coming to /dpt/ and Sup Forums in general.
It was almost better when it was just full of C shitters.
C++
>using size_type = map::size_type;
this gives
>error C2061: syntax error: identifier 'size_t'
>note: see reference to class template instantiation 'class' being compiled
but compiles if i replace T with some type like int or whatever
not sure why, things like this work
>using value_type = pair;
include cstddef or stddef.h
You're missing about 100 challenges
Nah, as long as there was this language elitism (so pretty much always) it's been shit. It's crazy how some people just have to feel superior to others.
i have cstddef already
Haha yeah fuck those people who feel superior
>language elitism
it's just memes
>almost
it was a thousand times better
and c weren't the only ones to go
Is it really possible to get a job in software development without a degree? Anime unrelated.
Suppose that, if I got a CS degree, it'd be from an obscure state school. Would it be worth it?
>Anime unrelated.
It's impossible for you because you felt the need to post your pic with your question to draw attention to the question.
Get fucked
You are undoubtedly a C shitter, so I suppose you don't realize how bad it was.
I don't use C and don't know more than 2 printf %s
just look at the archives from 2015
you can see how much better /dpt/ was
Where did this exodus of users end up?
I don't know
I want to be with them
template
using size_type = map::size_type;
Take everything I say with a grain of salt, because I'm a sophomore compsci student at a somewhat obscure state university and have no work experience in the tech industry.
If you plan on getting a job without a degree, make sure you've done something to be competitive against people who've actually done a degree program. Publish an app or make a significant contribution to an open source program.
The obscurity of the school probably isnt too much of an issue. Make sure it has regional accreditation (if its a state school it should) and still do all the stuff you would do to get noticed if you didn't have a degree, because degrees aren't magic job fairies.
rettit
Depends on your social skills but judging by the pic I'd say no, it's not possible.
python and js are genuinely shit and belong in
>
israel
what kind of heathen robs us of cruel angels thesis with no apology?
You can feel superior when it comes to race or economic status, but if you have to use your choice of programming language (not even your fucking skill level) as your source of superiority (like this faggot here: ), you just sound pathetic.
not him, but are you retarded?
I'm not a language supremacist but I detest Python.
You better hand over the manual memory management Andrei
>tfw not good enough at PS to put someone else's face on this picture who would be more relevant
I think you are. Why do you detest python?
Who the fuck is Terry?
>tfw u dnot own PS btu ppl w/o int do
leave newfag, and don't come back (for your own sake)