Old thread: What are you working on, Jow Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
scratch.mit.edu
docs.racket-lang.org
twitter.com
What's the shortest and most elegant way to read and tokenize lines from a text file in c++?
For example
string1 23 663
blahblah 2415 2
boop 1 1
>What are you working on, Jow Forums?
first for robotics progress
In POSIX C, this is just
char *s;
int a, b;
sscanf(line, "%ms %d %d ", &s, &a, &b);
But C++ probably has some shiteater > std::boost::scanformatstring
Don't they have a specific word for that kind of robot? Don't they call that teledildonics?
>Don't they call that teledildonics?
yes, but this is just one out of four parts. It will become a quadruped teledildonic robot. No one has done those before.
what are your plans for it?
my gf Ayano is so cute
sex robot
getting attention
I can respect that
even if it was the case he'd be learning while developing it
this And getting a walking quadruped robot which can be programmit with scratch ( scratch.mit.edu
>oh user-san, please fuck me with your gapedrupe robot, don't let stacy fuck the gapedrupe first
>ladies, its a quadgapedrupe
>tfw
>are those inverse kinematics user? I can really tell the difference from normal kinematics.
eating a muffin and considering learning erlang
when is .net getting vector support?
Rewriting my program with Windows Forms because WPF sucks ass
based
told you wpf isn't comfy
Windows forms is comfy af. You should try Win32 though, it is the ultimate for customization.
Imagine being a wincuck, writing wincuck software.
That sounds like hell.
Ya, it is terrible having things be easy.
brainlet
>icons by..
wtf
You were right user
I don't know man it's pretty comfy
What are you talking about? It's far easier to program on GNU/Linux.
Depends on what language/libraries/frameworks you use
Literally every language is easier, except for cuck languages like C#, and even then, you have to use Visual fucking studio of all things.
good work, user. keep it up
I narrowed down the issue. I was running my program through a pipe and it was buffering, and not returning from my mouse and keyboard hooks.
Looks like I need to implement a queue that can truncate overflow and then have a separate thread try to write that queue to stdout. I only have one thread that is inserting into the queue and one thread that is removing from the queue so I don't think I can mess this up too bad without needing mutexes or atomic guarantees.
I generally agree but nothing beats C# and Visual Studio if you want to quickly build GUI applications, it just werks
Also, the issue was that each keystroke and mouse movement I was writing to stdout, which I would guess would be blocking if the program stdout is piped to is not accepting input.
My wife Ayano and daughter Sakurako are so cute together
my daughter mashiro is so cute
Python question
Is there a more efficient way of achieving something like this
a=1
b=10
larger = max(a, b)
smaller = min(a, b)
After making a program how do I write like a project report document?
Do I draw like database schema and UML shit and explain how it works? Screenshots of how it works?
why the fuck would you do that
Cause it's a uni project idk.
The template document this boomer professor gave me was of a research paper but we didn't have to research we had to make a program?! Its a whole other thing idk what to write here
std::string s;
int a;
int b;
file >> s >> a >> b;
you're getting cucked user
He posted that before me, so I'm actually cucking him.
What language(s) should I learn besides C++ and Python?
Python is a language so it shouldn't be there.
Other than C++, there are no other programming languages that exist.
So C++ is your only choice.
lua
>Python is
isn't*
Anone, will you show me the JavaScript project you've been working on?
I‘m trying to submit my iOS image board app to the App Store, but Apple keeps rejecting it because the reviewers consistently come across ebil content, even on the “””SFW””” boards like /an/. Since it supports various sites, my plan is to require the user to explicitly add a site before they can browse it’s boards, then provide the reviewer with a much more normie friendly one so that they don’t stumble across something like blacked porn on a technology board. Does anyone have any suggestions of an image board that is actually SFW I can use for this?
Why would anyone here know what your professor wants? Ask him.
Something very different, like a lisp or a function lang
>Python is plain english
retard
what goes through the mind of the person who makes these posts
Replace both with Nim.
Why would you willingly submit to the Applejew user?
Reading The Racket Guide. Even though I'm a brainlet, I'm still able to comprehend all of it so far.
Python is not plain english. Otherwise this sentence would be valid Python.
Python cannot be used to make software. Python code is not software. Python code is a sex toy for gay men.
Java is often asked in job offers. It looks like C++, but there are subtle differences.
>Python cannot be used to make software
Your favorite website (reddit) was made in Python
Good thing I don't browse that website then.
Made an OS in Node.js
I thought it was like a standard for univerisities where you write a word document for your programs. Wanted to see how everyone here did it. But most of people here are neets I guess kek
...
>Good thing I don't browse that website then
My name is user not "anone", little girl.
>doesn't even link to a seperate .js file
nice tripso, my friendo
Fuck off, dumb frogposter.
Because the only other iOS app is shit and hasn’t been updated in years. Think of the poor phoneposters, user.
if those images aren't allowed then why the fuck do I always see them?
>some faggot posts gatekeeping rules
>follows the rules
They used to get deleted a few months ago but they stopped for some reason.
If you didn't just get here, you'd already know this.
The only posters lesser than phoneposters are iOS phoneposters.
iOS phoneposters are phoneposters, you fucking retard. I think you mean they're lower than the rest of the phoneposters.
>for some reason
Maybe it's because banning these is like trying to ban oxygen?
I've been here for 10 years
frogs and wojacks have never been effectively purged from Jow Forums
They're just not autistic enough about it.
>spend ages writing my unix program
>it goes straight in the bin
Why are unix systems so rude?
That's bullshit, though. Try reporting a frog poster. You'll get banned yourself.
I report every frogposter I see.
>made another neet failure of a programmer mad today
How are my frogbros doing?
I report frogposters all the time and I never got banned for it. You are probably missclassifying them.
They're classified under "This post is extremely low quality".
>tfw never been able to watch any of these webms because user sets the bitrate so high
do they get deleted?
You mean your internet is too slow or your computer is too much of a potato to decode them?
sometimes they do
are you browsing /dpt/ on a potato?
Code shall be disposable. Such is the harsh truth of the field.
Is this the (((lisp))) way of memoization?
(define inc
(let ([i 0])
(lambda ()
(set! i (+ i 1))
i)))
that's not memoization
JVM language
Pick your poison
yeah, that's a generator
clojure.
>Bash/Shell/PowerShell
Pretty good.
Also, in order not to be a reportable off topic post:
Does anybody have any recommendations for learning Racket? I'm interested because I read it's used for natural language processing. I also know Scheme already and I own a printed copy of SICP.
the racket guide
Thanks. Is that just an online guide? I was looking for books but didn't find it.
it's based entirely on the whims of the hotpocket operating at the time.
>tfw getting depressed by watching bisqwit videos
programming like that is not a reflection of ones skill
being a good programmer is being able to spend a long time thinking about hard problems
>programming like that
like what?
What mostly gets me is that most of the topics he does are what interest me and what I I also wanted to work on at some point but god damn I can't understand a thing in his videos most of the time
isn't he the guy who does the speed programming videos where he programs something cool in a montage or am I thinking of someone else
I'm gonna write a function that acts upon a SDL structure. Do I give it a SDL_ prefix even though it is not part of the official library?