/dpt/ - Daily Programming Thread

old thread: What are you working on, Sup Forums?

Other urls found in this thread:

boostorg.github.io/hana
theodinproject.com/
news.bbc.co.uk/2/hi/7485331.stm
twitter.com/AnonBabble

Gas the traps

Objectively better as a sexfriend

Inherited a bunch of Excel spreadsheets scattered around various folders on a network drive, which pull data from some Access dbs elsewhere in the network drive. Using uncommented (of course) VBA. With half the variable and function names in Polish.

Fun.

here.
Thank you OP

I've been mulling over an algorithm for a "Binding of Isaac-like" dungeon generation algorithm. Since Binding of Isaac had a grid-like dungeon, most algorithms implemented in other roguelike games may not be as applicable. For generating the shape of the dungeon, my idea goes like this:

Draw a "line of rooms" of a random length
While we have less than the desired quantity of rooms
Find a pivot room
Make another line of rooms on that pivot
End While

while(1) {
printf("Please don't use an anime image next time!\n Thank you!");
}

what's so special about a grid-like maze

did randomized depth first search

i havent played binding of isaac

It's senpai, you dumb brony faggot.

I like functional programming in python.

What other language should I learn if I like functional programming?

too bad python can't into proper recursion

haskell and lisp

>SyntaxError

>python
>functional
kek

post more like this

tst.c:1:1: error: expected identifier or ‘(’ before ‘while’
while(1) {
^

Why kek?

...

You can post anything on github. If you're too ashamed you can just remove it later.
Also considering what I said making projects that are ambitious is good on github.

A simple RPG game isn't too hard.

A game is a good idea. It's not that hard really and as you mention you can easily scope it up. I recommend reading resources on how to make RPG games in general. Don't bother with python specifics and just try to learn to make it in python. Ask people for help though.
Is the goal here to learn how to use ascii graphics or do you prefer to just make your game?
>complains regardless of if there's an anime image or not

boostorg.github.io/hana

This is like learning C++ anew.

Actually, in Japanese, when the ん character precedes a 'b', 'm', or 'p' sound, it may be pronounced as 'm' instead of 'n'.

It's not a maze; it's a dungeon. We start out with a grid of non-rooms, and then each line initializes cells to become rooms.

Post how they look maybe? To my understanding binding of Isacc just looks like randomly placed rooms where you eliminate unconnected rooms.
You rarely get long runs.

Room types is more important in that game.

is doing a big database change pretty much for semantic purposes worth it? my boss is telling me to make it so 'user' doesn't directly references a 'company' table, but make it reference a 'job' table which references 'company'. i think that's dumb at this point, because it's too much work and we could use some workarounds so it seems like that's what the software does anyway. this is some major refactoring and i think it isn't worth it. i'm going to do it anyway because fuck it i'm getting paid the same and i don't care. but i'm wondering whether i'm wrong

In hepburn romanization it's still written senpai.
In latin alphabets you don't modify spelling in order to match regional accents.

just user and company table: an user can only be at one company (or a company can only have one user which is certainly not what you want)

user, company and job tables: each job "links" 1 user to 1 company, allowing an user to have multiple jobs at the same company

this is the only realistic difference

like chimpo?

users aren't going to have multiple jobs at the same company. its going to be pretty much the same. he smokes (or smoked) a lot of pot i think that has something to do with it. this is better than fixing idiotic, hard-to-track bugs anyway

Samefag :^)

no, sorry

Completely braindead
No nothing about programming
Want to learn Python, but I need to know what's the best first time guide


Also, been off Sup Forums for some time, what happened to those cancerous Desktop Threads?

I didn't like them, but those autists helped me get a new font working in loonix

also I can't seem to connect to installgentoo.com

We believe you :^)
We also believe you're not an edgy faggot

can't
figure
it
out
:(

macs are big endian

What font is that, user? It looks almost like Consolas.

PowerPC Macs are Big Endian
Intel Macs are Little Endian

Do you really think someone would samefag something so inconsequential? You realize this only reflects poorly on you, right?

>this level of damage control
>being this desperate after samefagging
>proving how silly you were to samefag at all

I'm running the code on Intel x86_64 arch.
It's the default Xcode font, it's called Menlo, i think.

Holy shit you're retarded.

Of course you'd samefag when you're pushing that shitty meme so hard in a desperate attempt to make it work.
Pro tip, your meme is shit and no one likes it

We all know you're samefagging you autistic weaboo shitstain :^)

>Do you really think someone would samefag something so inconsequential?
Yeah, you.

>thinking you can fool people with metasamefaggotry

>
I'm gonna start doing that. It looks cool.

Try again faggot

Autistic weaboo retard

hex_to_bin and bin_to_hex seems to be working fine. any ideas?

pic related is the memory footprint before and after the hash.

kill yourself

KILL YOURSELF FAG FUCK YOU IN THE ASS

This.

OP is cancer.

This.

Autistic weaboo shitstain

I haven't see the unique poster counter go up since you started spamming.

>implying it's just one person

kys

...

i'm and it was literally my first post ITT

>>>/gayanimeporn/

Just got here and I think you should kill yourself.

How do people modify SQL databases in C?

by using the library?

I'm going to write a decompiler/compiler for a game's ~20 instruction bytecode.

Well, try at least.

>go to report post
>error: this post does not exist
>mfw it's already deleted

MODS = GODS

HAHAHAHAHAHAHAHHAHAHAHA

>tfw the mods don't delete the animeposts

come on mods, you can't be biased: anime does NOT belong on /dpt/ and you know it

thank you mods

TIS-100?

Lots of animeposts got deleted too :')

Why even bother?

It's no like that burgers will ever talk about something of value.

but not all of them

imagine a /dpt/ 100% anime free

>weabposts deleted
Based mods.

How can I get into web development?

I have a great idea and want to create a local website but I can't find a worthwhile programmer where I live (third world country) to work with, so I have to learn it myself.

I don't want to become some god programmer, at least not for now. With what should I start to create a not so complex website (think classifieds)?

That would be amazing.

It's a shame Sup Forums leaks so much here, otherwise this would be a much nicer board

is java botnet

I never got the hating on anime.

A programming language can't be a botnet. It is a lame language however made for foolish individuals so you could say that it tries to shit up the world as much as it can, but it is not a botnet with the technical meaning of the world.

depends on which OS you're using. on windows they try to bundle crapware. if you're using linux this isn't a problem as you just grab from repos. it's stable and mature, maybe boring. it's fine, there are worse choices.

>I can't find a worthwhile programmer where I live (third world country)
Is this a thing?
Anyway there's
Who supposedly knows this stuff.
I think he means the Java VM or JRE. Or anything surrounding java really.

>I think he means the Java VM or JRE
There are many VM and JREs (OpenJDK and the oracle ones of example). Moreover you do not need a VM to run Java (there are many projects that allow you to skip that, such as GCJ)

try theodinproject.com/

>Java VM or JRE
exactly i read somewhere that the vm does some online computing to make things faster or whatever

is this correct

Sup Forums was basically a refuge for anime-pedos who got run out of sa. bitching about anime on Sup Forums is dumb because this place has always been weeb as fuck

All versions of OpenJDK (including any alternative JVMs such as zero, dcevm and jamvm) are 100% free software and included in all GNU/Linux distros that I know of. The possibility of botnet existing in it is almost 0.

Not that dude but I think that almost nobody still here was in SA back then.

regular anime i can understand, but fag anime is clearly inappropriate just as much as 3d traps

news.bbc.co.uk/2/hi/7485331.stm

fucking ridiculous

Yes that's a thing, I have talked to a lot of people and proposed up to 20% cut for them if they create the website and I finance everything, they just don't have the skills to create what I need- They're plebs just like me. So I decided to

Finally got sick of windows enough to switch the main pc over to a linux distro.

Setting up the system now. Going to install a windows vm with passthrough for my games and the normal vim + gdb dev environment.

it's not so much the anime (or rather, shouldn't be - I don't know why, but I just despise anime as a medium, on a primal level), but the kind of awful people it invites

it's either no anime or all anime. if shitty breeder anime can exist here, then fag anime can as well

I'm brand new here,
Wanting to get into android game development

What language should I learn and software should I use?

I've read Java and Eclipse are best

>Going to install a windows vm with passthrough for my games

It sucks. You may as well just dualboot.

It's not the anime idols, but the fact that anime is used to shitpost and usually accompanies thinly veiled bait.

I don't hate anime, some shows are great, but I think that if anime left Sup Forums the quality of posts would go up

>can't post loli
>can't post lewds
>can't post 3d traps
>can post 2d traps

>finally got sick of windows
>going to install a windows vm

Last time I used this setup it was perfectly fine. Had a very minimal performance loss.

I picked up C# 8 months ago.

I remembered a time when I struggled to pick something from the big list of challenges because it all looked too complicated.

Now I don't see the point touching them because they all seem like shit I've done a million times now.

Who /progress/ here?

Considering I've only been dicking about and haven't produced anything of value in all this time I'm surprised I've come so far.

Has anyone ever learned anything from codecademy?
I've tried several of their tutorials in the past and I came out without learning anything at all, not even for piss basic shit like SQL.

Instead of showing you the primitive syntax and then asking you to write a solution, they ask you to copy paste the answer directly and then at the bottom, they write "can you explain what INNER JOIN does??".
The best part is that their answer "validator" is just a strcmp, your answer has to match theirs so there's no way to IGNORE the handholding.
And if you type the answer wrong ONCE, it offers to fill in the answer for you, and then also that you should start paying for codecadmy pro.

What a pile of shit.

>Had a very minimal performance loss.

I guess I'm a framerate autist, but it didn't fare as well for me. Frametimes were also jacked up, which was much more jarring.

This. It's the people who post it that are trash.

>SQL
>piss basic shit

SQL is one of the most "novel"/unique mainstream languages, as well being one of the ones that require the most acquaintance with their theoretic side.

Here's an expert level challenge that doesn't appear on the list: take an arbitrary program, and arbitrary input, and tell the user whether or not it will run completely.

>Solve the halting problem

Oh OSGTP, you never fail to amuse me.

I'm pretty much only good for amusement. Here's a cat getting its pixels sorted.

What?

It is possible.