old thread: What are you working on, Sup Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
dlang.org
dlang.org
code.dlang.org
dlang.org
dlang.org
dlang.org
wiki.dlang.org
shop.oreilly.com
lmgtfy.com
quora.com
lambda
twitter.com
First Ruby as the comfiest language.
Was OOP the billion dollar mistake?
>#4 CUTENESS CONNECTS US
stop making me want to cry
brb writing a program to help me pretend to be cute
Threadly reminder that dlang-chan is not dead; she's going to have her GC tumor removed (eventually); she's super duper cute; and she's a blast to write in! Say something nice about her, /dpt/!
>Features
dlang.org
>Standard library
dlang.org
>Package manager
code.dlang.org
>GC
dlang.org
dlang.org
dlang.org
>Books
wiki.dlang.org
>Cuteness connects us
Not with that picture.
Oops!
I'm learning C again. It's way easier to write when everything is header files and only header files rather than header files and also sometimes namespaces
here is the answer to that question of yours:
we all have our problems.
I got a bunch of kinks i'm working out of my system. God is the catalyst to my reformation, and he will be the reactant also.
Is there anything more boring than a programmer convention?
Notice how only the shitty languages have corporate backing and have their own dedicated confrences.
>God is the catalyst to my reformation, and he will be the reactant also
Better
Oh shit
I'm fucked in the head.
But i'm also Christian.
So i'm trying to stop fetish-centric shit, focus on God, and hopefully escape the hell i am in.
>I've got 99 problems, and fetishes are some.
what if your fetishes are God, you sick, kinky fuck?
I'll pick a new mascot some day, user. How are you enjoying, dlan-chan though. (If you're the same user.)
watch out breh because sometimes when fetishes are really weird / extreme and cause real psychological turmoil it can be a warning sign that they're secretly more than just fetishes
like when you were abused as a child and your psychological development process wanted to make sure you wouldn't find that shit and decided to stick it somewhere stupid like your penis
definitely not.
Baphomet was for a while though...
I regret every instance of fetishism and white knighting, currently trying to form that elusive skill known as "self-control"
D is okay.
If you list your fetishes then i will list mine.
Deal?
Give me some tips on dealing with a fuck-huge codebase in C. I'm a month into my internship and I'm still """designing""" how I'll do my project.
>I'm a month into my internship and I'm still """designing""" how I'll do my project.
Have you tried restarting the server?
In C#, if I have a class for files of type A, and A files contain B files and C files, both of which shouldn't really occur outside of A (but technically could), how should I organize that?
I can't use a namespace for type A (to group all of A's dependencies). Should I use public nested classes?
If I had an integer that was anywhere from 1 to 4 digits long, how could I convert it to a string in such a way that it would always write as four digits? For example, if the number was 1, I want it to write as "0001", or if it were 256, I want it to write as "0256".
I have no clue
Perhaps nesting is the best atm, maybe consult some of the other developers as nesting may be a problem in future.
Is this really what they make an intern do?
Checked the gentooman library and the wiki, but I can't find any books on Rust.
Anywhere good to start?
%04d should do it
oh hell why not, i'll probably get banned again for something else anyway if not this
this is like an oddly specific but really fucked up thing, i'm into the idea of a chubby person being together sexually with a slightly underweight person, and then the chubby person gets really fat at the skinny person's direct expense, causing the skinny person to get like really super unhealthy level skinny due to having to support all that gluttony, only the weird thing is this is something they both want and are happy about, and they're both excited for the skinny one to starve to death so the fat one can deep fry the fresh corpse and feast on everything edible that was left on it. like the fatter the fat one gets the more stupid and sluggish and foul smelling they become whereas the more bone-thin the skinny one gets the more perfect and beautiful and pure they get but yet all the while both of them still consider the fat one's life to be infinitely more valuable and after all the only reason the skinny one so tirelessly seeks perfection is to make a perfect little single-serving roast
i've been in therapy since i was 6 :^)
also though to bring the subject back to tech i wrote a text adventure engine specifically to make games around this theme, the engine itself is clean/sfw so i might post some things from it if i can dig it up
str_i = '0'*(4-len(i)) + 'i'
That worked, thank you.
Not the weirdest thing I've read, but hot damn user you've got problems.
Hope to see this engine.
>tfw too much of a brainlet to implement software task switching on x86
why even live
I need to learn Java, and know absolutely nothing about it, or OOP, for that matter. Any good online tutorials/courses you guys would recommend?
nah it's a hobby project, so it's just me.
Rust Essentials
Maybe.
Thanks.
pls help. Someone told me to use Eclipse, that's all I know
Nigger, use google and amazon. Then pirate a book that you like. Don't rely on others for such a simple task.
>making a game around this
>with a sfw engine
pleae post it on a sfw forum, for the lols of course.
My fetishes are probably infintely worse:
>i get off to the idea of worms going up my rectum and eurethre to implant baby worms that make sex infinitely more enjoyable
>I get off to the idea of transforming into something non-human and powerful, likely stemming from me being a social outcast my whole life and desiring to overcome bullies.
>this all started with me desiring to receive some kind of disease that removes my physical humanity and gives me power imagined, such that i may do as i please with all things. this idea eventually branched off into simply not becoming human and becoming a sexually irresistible and powerful being,
>This has resulted in me becoming a fur-fag, although i don't associate with the community because fuck doing that
>I am currently attracted to the idea of being forcefully transformed into a satyr or goat-man through anal and penile worms that secrete sexually exciting substances that increase the reward of sex, and which feed on sperm.
>This has sparked a moral dilemma in me, because from every logical standpoint this makes not sense and would never work, and yet my dick is louder than my brain. Currently it is hard from describing this attraction.
For this very reason i am commited to gaining some self controll and overcomming this seductress in my heart.
i would kms but that i feel is the cowards way out.
Jesus fucking Christ I come back from a smoke break and /dpt/ turns into a fucking tumblr blog.
I would just end it
>syntax similar to Ruby
>fast and has very good concurrency
I really can't wait until Crystal is stable.
what is tumblr blog liek about it?
Sup Forums has no distinguishing features from tumblr except that it doesn't self-sensor (or at least the users dont ss themselves).
So what can a computer scientist do that a computer engineer can't? And vice versa? They honestly seem fairly interchangeable and possess the majority of the same skills
That's pretty bizarre, but I'm glad you're choosing not to kys because personally I don't see how it's any reason to. An idiosyncrasy is nothing to be ashamed of. It is something to have some proper shame about, but that's not quite the same thing; not everything you should be too embarrassed to talk about in public is something you should feel bad about.
I can't find the damn engine. (Grumble, gripe.) I know it was in Ruby. I think it may have gotten lost at some point while I was trying to reinstall my OS. It was nothing too impressive anyway, basically just a rehash of Quest with no GUI.
...
ty
>An idiosyncrasy is nothing to be ashamed of
Shame is an important behaviour, as it allows us to identify what is wrong with us.
Sadly i am socially inept and feel the need to share EVERYTHING with strangers that i meet.
Im learning ot restrict such behavior, in the meantime i am learning to control myself and be rightfully ashamed of such immoral behavior.
I'm assuming you are the rock fucker.
We both know that we are broken people, we need to try to control ourselves and learn to suppress such disgusting desires. Trancend them and become more wholesome individuals both for ourselves and for the communities that surround us.
In the meantime:
public class Goodbye {
public static void main(String[] args){
String name1 = "Elvis ";
String name2 = "Presley ";
String pasttense = "has ";
String verb1 = "left ";
String verb2 = "building ";
String the = "the ";
System.out.println(name1 + name2 + pasttense + the + verb1 + verb2);
}
}
public class Goodbye {
public static void main(String[] args){
String name1 = "Elvis ";
String name2 = "Presley ";
String pasttense = "has ";
String verb1 = "left ";
String verb2 = "building ";
String the = "the ";
System.out.println(name1 + name2 + pasttense + the + verb1 + verb2);
}
}
Use eclipes as an IDE. Use online sources (such as video tutorials on youtube, or posts on forums) to help you learn. Pirate books if you are too cheap to buy them
you do know you can kode with codetags right?
from faggot import op
>codetags
what are "codetags"?
I'm a beginner to be patient with me.
>>>Sup Forumsrules/3 explains them
public class Goodbye {
public static void main(String[] args){
String name1 = "Elvis ";
String name2 = "Presley ";
String pasttense = "has ";
String verb1 = "left ";
String verb2 = "building ";
String the = "the ";
System.out.println(name1 + name2 + pasttense + the + verb1 + verb2);
}
}
better?
noticed a mistake, here is corrected version:
public class Goodbye {
public static void main(String[] args){
String name1 = "Elvis ";
String name2 = "Presley ";
String pasttense = "has ";
String verb1 = "left ";
String verb2 = "building ";
String the = "the ";
System.out.println(name1 + name2 + pasttense + verb1 + the + verb2);
}
}
better?
Is it hard to build a Youtube to MP3 converter using Python?
Jesus fucking christ. Does anybody read the fucking rules, the sticky, or lurk in general? You're not supposed to post right away, faggot.
It's as hard as your tiny dick, retard.
Depends on how low you want to go.
If you just use the youtube-dl libraries, it's incredibly easy
If you intend to re-implement an HTTP client and ffmpeg in Python, it's going to be very hard.
Nothing is hard in Python because Python has libraries for everything. Just import your shit, read the documentation and you can make it in under an hour. From scratch would be another ball game.
youtube-dl -o - | ffmpeg -i - -vn -acodec mp3 output.mp3
Even reading how youtube-dl work is also scary
quora.com
Let me just give up on this
How is the difficult? Basically you are getting information from youtube and then deciphering it. If that is difficult, whelp time for you to quit programming.
Thanks. Obviously have not read it fully and deeply yet. You know alpha like me won't ever give up on such thing, right? :)
yikes
I can't tell if this is bait or not.
If I have
(defmacro ducc (ass) `(+ ,ass 9 dicc))
(defmacro lmao (param1)
(let ((whatever (something)))
body-which-someone-will-tell-me-how-is))
how do I make it so that the expansion of (ducc something)
is what gets expanded in lmao
reason being that dicc only makes sense in the body of a loop macro which holds dicc locally.
*(ducc whatever)
Also, my gut tells me ,@ would be helpful here.
Maybe introduce a var into let, holding the macroexpand of (ducc whatever) and then ,@ into the backquote of lmao?
Thoughts. But I'm not really sure what ,@ exactly does.
Forget this shitty explanation.
Basically, I want to insert code I wrote somewhere else into my macro and have the result be expanded and run.
what the fuck man
and here I was thinking my hypnosis fetish was weird
I don't know what a se learns in the anglo system. But here se is a bit like a ce. Less focused around ciruicts and stuff. But learn a lot of low level things.
One ofy TAs said that the cs guys start with math, and then slowly do away with the abstraction. While we start with transistors and logic gates, and add abstraction.
Can you give a short example or be more specific?
you naming is pretty nonstandard, let me help
(defmacro open-parenthesis (times) `(+ ,minus 9 seven))
(defmacro newline (close-parenthesis)
(let ((divide (four)))
by-three))
Is it just me who finds the current lot of HDLs completely and utterly unintuitive? I've been through a CE education, I understand waveforms and RTL, and when I want to make something on the FPGA, I'm usually concerned about that.
Verilog, which I'm most familiar with, offers NO WAY to intuitively encode EITHER.
>"Yes, I put that shit in an always @posedge clk block. THAT DOESN'T IMPLY I WANT ALL THE GODDAMN ASSIGNMENTS TO BE FUCKING FLIP-FLOPS."
>"IF I MAKE AN ASSIGNMENT TO A VARIABLE IN EVERY CASE, THERE DOES NOT NEED TO BE A FUCKING FLIP-FLOP FUCKING GODDAMMIT, IT'S A PURE FUNCTION OF STATE, I.E. FUCKING COMBINATIONAL."
>"Okay great, to get the waveform I want I'm going to have to separate out the combinational and sequential parts of the behavior, fucking excellent."
>"Who would have thought that would have been a COMPLETE NIGHTMARE and TOTALLY UNREADABLE? Not me of course."
If you can design a waveform, it is possible to encode it in an HDL.
If you can design an RTL layout, it is possible to encode it in an HDL.
Neither is probable.
Yeah, HDLs are pretty shit. They try to masquerade as programming languages, but what they're doing is fundamentally different.
I did a couple of university papers where we used verilog. We had to use some ancient Xilinx shit, and it was fucking garbage.
Drink snack goy goy
Smoking and hoping to code out something to augment my coding experience (motif)
You ever do anything in VHDL? I've had some people tell me it's better, that you have tighter control over the hardware, which is what it was designed for. While Verilog was simply designed for shitty behavioral prototypes. From the bit I've tried to read, it looks like gibberish, so I can't tell.
No, I've only used Verilog.
>'{' is not preceded with whitespace.
Don't you guys hate it when your team m8 always do this and never put whitespace in between em> It hurts my eyes
>braces not on separate lines
what does /dpt/ think of my snake?
[(prop[0],(lambda x: "true" in prop[1].lower())(prop)) for prop in [(prop,str(getattr(self,prop))) for prop in dir(self) if ("bool" in str(getattr(self,prop)).lower() and not (type(getattr(self,prop)) == type([])))]]
it's cute, right? python-tan can connect us all with lists so it must be the cutest language.
Braces should be on the same line desu senpai and must preceded with A whitespace. Don't be autistic
Python is dysfunctional.
I never understood Ruby, I learned python a long time ago but the syntax of python was intuitive too.
Curly brace master race
If you put the opening brace on a dofferent line, literally end yourself. It doesn't serve a purpose for the programmer only for the compiler. There is no need to clutter your view with an unnecessary line. Fuck you.
>clutter
>literally makes code easier to read, especially on dual window mode
Thank god I'm not autistic.
>easier to read
How? If you have an opening brace, the next line is already indented. What more visual cue would you need? If you put it on a newline, than it just wastes space.
>C++ has two (TWO) stdlib
Toppest of the top keks
You're literally confusing it with D.
D has both STL and STDLIB?
D has two standard libraries, and C++ has one, STL and libc being parts of it.
Changing a library from JSON based to flatbuffers.
Fucking kill yourselves.
What?
The STL and libc are arguably two distinct libraries.
Well, yes, especially in the historical perspective, but they both are parts of the C++ standard library because 1) they're defined by the standard 2) they're shipped with all the implementations of the language 3) they don't conflict with each other.
As an illustration, Python's standard library is an unholy mess of components, yet they as a whole are considered to be the Python's Standard Library. In contrast, D's two standard libraries were incomparable, and libraries built around one couldn't work with libraries built around the other.
Kinda like Rust's libcore vs stdlib? Or worse?
This is for all of you lispers in the thread, a Lisptan made i grorious nihon dancing the Caramelldansen
Source: lambda dot bugyo dot tk/cdr/mwl/
Like what, like libc/STL? Yes, kinda. Like D's mess? Not at all, libcore is a subset of stdlib, the latter being built upon the former.
working on my google summer of code project.
pretty cozy, work like 10 hours a week and I'm making really good progress.
...