/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: 1558316671620.jpg (2732x3922, 1.05M)

Other urls found in this thread:

pastebin.com/6wEAUVVK
pastebin.com/Z5ChmPTU
pastebin.com/p4VhgZfR
pastebin.com/P0zbT22U
github.com/fmtlib/fmt
youtu.be/JMQbeEho9C4
roguebasin.com/index.php?title=Main_Page
twitter.com/SFWRedditGifs

Turing machines are just masturbatory sophistry

>tfw traveling to work
here's hoping I properly set up that ssh and rdp server at home so I can not do actual work all day

Attached: 1550460485748.jpg (800x800, 101K)

>writing distributed imageboard-type software that purposefully piggybacks off free weeb imagehosts like catbox moe
>keep adding features and making a fucking mess
>write myself into a wall where i can't handle the cognitive load of adding more spaghetti code without breaking everything below it
>keep deleting fucking everything and rewriting from scratch
>already did this 7 times now

Attached: akari AAAAAAAA.png (1486x982, 1.35M)

LISP IS MASTER RACE.

If the beginner C programmer with an interest in games is here, check this out.

pastebin.com/6wEAUVVK

Don't bother understanding sloppy code, just compile and run.

Are you writing see peepee files, user?

Go to bed moot

Getting something worth showing maybe?

Attached: output_0053.jpg (1000x1000, 344K)

>look up examples of some lib usage
>it's all in C
disgusting, now I need to waste time on converting this to cpp11

wtf now im married to a 9 year old girl

i want to nakadashi nenecchi

syscalls > libc horseshit

Buffered I/O is more efficient most of the time.

CPU die.

DIY buffers > libc horseshit

Oh well, have fun with your autism, then.

can anyone help me with a java programming assignment? Will be your friend forever

Have fun with your libc horseshit

you're better off posting it and pretending its not your homework but too late now

Lisp is the most powerful programming language.

Just post it you ding dong

as if I could explain it in a way that doesnt sound like homework because its recursion binary searches and no sane person uses recursion

>Don't bother understanding sloppy code, just compile and run.
Well that's contrary to why I'm even getting into C, but I'll save it to learn from when I get back into it, thanks.

just use Python lmao

pastebin.com/Z5ChmPTU
pastebin.com/p4VhgZfR
pastebin.com/P0zbT22U
I honestly don't know where to start with these and I've been working for days without food or sleep. I feel like blowing my brains out at this point

It's just a demo of what is possible at the crudest levels of interaction...

What do you mean by 'get back into it'?

I unironically like Ruby the most, least bullshit out of any language I've seen. The Rails community is what ruins it.

Ruby is a great language. For some reason people think Rails _is_ Ruby.

ruby isn't a lisp though

dose anybody have xp with monkey runner or vc?

I like ruby and dislike rails, it's not my favorite language but it's my favorite for prototyping or little scripts, I wish it was more popular outside of rails
pry is a nice replacement for irb, not that anyone asked.

>public class RandomAccessBinaryFileRecursiveBinarySearch
nani

Ruby is my favorite. Fuck Rails.

Attached: 1518627863639.jpg (600x678, 36K)

Ruby is maximum comfy.

>halfway through learning vulkan by following some shitty tutorial
>begin to understand it enough to see through the verbosity and to the amazingly designed API underneath
>the faggot who made the tutorial didn't write it so you'd get an extensible framework by the end, just a very complicated toy renderer using only the features he knew about
>need to rewrite basically everything completely to make something usable
this was months ago
so many non-started attempted rewrites everywhere
can't even bring myself to begin the unfucking

you ever drink half a bottle and write elementary school math to generate shitty art

Attached: output_0120.jpg (1000x1000, 437K)

very cute, user

hooray rdp works
but it lags like shit, holy fuck, absolutely unusable, better stick with emacs in a terminal

>#include iostream

Attached: 1464866181949s.jpg (231x250, 8K)

github.com/fmtlib/fmt

why's it slow

import System.IO

no idea, probably because my home connection's upload speed is like 70 kb/s max
I should've expected this and switched to the other one, but fuck it now I can't configure it from here, unless I go call my brother at home but I dont wanna wake him up

are you RDPing to a Linux box? the server probably isn't as efficient as windows' own

>are you RDPing to a Linux box?
yes
I am aware of efficiency but this is truly borderline unusable even with my low standards for this sort of stuff. It takes like 20 seconds to respond when a lot of things are going on, like trying to open the Activies menu. Maybe I should try installing xfce and using that for the rdp session, at least I can configure that remotely

require “swag-papi-http-URL-getter-thing”

window.console.log(randoGlobal.GETWITHCUSTOMHEADERS({url: “google.com”, headers: {jsIsHell: /true/g}))

can confirm, very cozy
fmt::printf("\x1b[2;0H%03d; %03d", touch.px, touch.py);

How can anyone like programming...
This shit looks so boring.

No, but once you learn programming and become an expert, you'll fully understand WHY it's boring

There is a lot of drudge work and tedium involved which is why programmers are paid so well. The actual computation and algorithm parts are pretty cool plus you get to use modern electronics.

What is this? Pls explain

Metaprogramming replaces your boring old problems with exciting new ones.

exactly what it looks like

>go to job interview
>tell me why it's your dream to be a programmer?

Attached: 1557304124646.png (1366x768, 435K)

no it doesn't, metaprogramming is totally relative, what you consider normal programming probably used to be "metaprogramming". programming will never be good

...

>it isn't i need the money
>>you're hired

programming is fun
if you can't see why you're probably just dumb

Why not just SSH?

>t. amateur

>only 7
Refactoring a project you actually care about is an endless upward spiral.
t. developing an imageboard engine for 5 years now

because i'm a tard
mostly wanted to see if it can be done but seems like I'll have to get used to terminal only

>To bring diversity

"I'm already a programmer. Mission accomplished."

>no sane person uses recursion

Attached: hmm.gif (400x300, 480K)

You can forward X through SSH. Maybe you can get that working through WSL.

but user, all problem solving, not just programming is fun

just because you're at a hard point right now in your educational journey doesn't mean it's going to be shit forever
you will learn to enjoy programming again, either shit will get better, or you'll become a masochist
don't give up

we use win7 here, no wsl
and I have no admin rights either, so this is as best as it gets

Just install VcXsrv and export DISPLAY properly.

>like C++
>only C++ jobs are either for engineer-level projects or ones that require years of experience
>have to be a shitty Java codemonkey

pro-tip: some companies don't post entry level positions and just have something like a student program that you apply to and if you are accepted you will moved to the appropriate position. (don't confuse this with internships its for real jobs for people with 0-1 years of experience)

>be shitty webshit dev
>want to switch to c++ or something else for linux/embedded dev
>find an entry no-requirements job that does both
>too scared to apply because my experience with it is kinda shit
just don't be an autist like me

people like you make it easier for me to get jobs, thanks

n-no prob

this is the hottest suifuel I've ever seen

Roko's Basilisk is watching.

You know I'm right

>You can't make a machine that solves the halting problem, because it can detect if it himself will halt
It's like saying a medicine that cures all diseases but the common cold is worthlesd

anyone here is active on mastodon? i have no one to follow

Attached: sa.jpg (251x231, 44K)

I don't see the point in microblogging.

internet was made for people to communicate.

cute

Attached: 2018-08-18_19-31-00_cropped.png (1732x974, 1.07M)

>internet was made for people to communicate.
[citation needed]

ah now that I set up that ssh to my home I thought I'd do some programming
but I just ended up reading mango on my phone instead, simply amazing

Attached: 8bS1vAZ.jpg (696x720, 30K)

>What are you working on, Jow Forums?
Working on trying to strip Android from Android. I am making progress slowly getting closer to the first usermode process.

Attached: scrot.png (1920x1080, 387K)

Trying to figure what to make a programming video about today.

where do you post these videos

how do I deal with the whitespace autism in Python?
I don't want to open a file and edit it only to find out it uses tabs instead of spaces or vice versa

fear not, recursion gets easier with practice.

I'm going to guess this is Serenity OS user. I could be very wrong.

Using spaces is the Python way.
Python editors should protect you against tabs.
If your editor doesn't, get a better one.

To YouTube. They are pretty regular videos of unscripted hacking on my operating system. Here’s one from the other day that turned out pretty okay: youtu.be/JMQbeEho9C4
Good guess user :)

Is OOP the best choice for simple dungeon design, interactive stories, randomised dungeons/interactive stories, etc.? Is there any good guide out there?

Attached: 1546963836963.jpg (383x550, 82K)

don't worry about 'paradigm' just try to solve the problems as they come and represent it in a way that seems right

roguebasin.com/index.php?title=Main_Page

Atom automatically convertes tabs into 4spaces for .py files, so it's quite comfortable

Could some user post image of Nenecchi reading the c book? I need motivation!

wrong, it was made to distribute anime

Attached: IMG_20190323_095041.jpg (966x1632, 146K)

Diversity

Vim and sublime-text fag, editor does 4spaces for me for tabs.

Non-deterministic programming would, something similar to NFAs or SICP's Q-eval