/dpt/ - Daily Programming Thread

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

Other urls found in this thread:

github.com/golang/go/wiki/FromXToGo
tour.golang.org
golang-book.com
twitter.com/sarahmei/status/865414033989525504
twitter.com/NSFWRedditImage

"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman

Furst for Go

hit a GC pause?

NO go DISCUSSION ALLOWED BELOW THIS LINE

------------------------

Why haven't you learned Go yet?
github.com/golang/go/wiki/FromXToGo

Start here:
tour.golang.org
golang-book.com

>king neckbeard's opinion
>relevant

>Once you learn Lisp, you will see what is lacking in most other languages.
they are lacking the lack of types?

Should I learn Rust?

no. C++ is all you need to be a successful employed programmer.

Lisp has types.

...

Go is a shit lang. Discuss!

you can't get a job with plain c++, you need visual c++, c#, java, sql, and visual basic
PLEASE NOTE I AM NOT SAYING THESE ARE GOOD LANGUAGES THEY ARE SHITTY PAJEETLANGS
you need them anyway because all employed programmers are employed by big businesses and all big businesses are shills

Hi lads, quick question.

I'm using Python to do a simple script that will move files and rename them, however when moving a file to a new folder with shutil.move() it can be that a file with the same name already exists, I just want to know if there's any easy way around it so the file his not replaced, like to add a number or something in the file name instead? Since with shutil.move() it'll just replace the file and the other one is gone.

I know you can check if the file already exists on the folder, want to know if there's any other easier way to avoid getting other files removed from the folder.

>you can't get a job with plain c++, you need visual c++
Depends what you're doing with C++. Many tasks do not need Microsoft's extensions.

reminder that lisp is a toy language, at best a babby's first cs101 language, and that lisp is unsuited for big boy software development

No, go is the official language of /dpt/.

I'm okay with this. Thanks, I'm going to go program lisp from now on.

Fuck off

I made a Hilbert curve in openGL using geometry shaders. I can only do 10 iterations, though.

I pooped today using the loo. I can only do 10 poos before I must poo in street, though.

Rob, how is going my man

Nah I'll admit I'm american. We're just working with Raspberry Pi and that's based in the UK.

post code please

seems nice. can I control individual pixels with shaders? I wanna do something like cornwell's game of life.

>can I control individual pixels with shaders?
yes

niggering my own asshole

conway's game of life?

>t. pajeet

>cornwell's game of life.

>conway
yes.

>cornwell's game of life
beef will never be the same

let me clean it up first.

I mixed the names ok

...

What are the requirements for a language to be considered anime-complete?

first for php

Yes, it's called a fragment shader.

Lain

You mean the ability to program Lain in it?

Yes.

How do I learn to distinguish constants from variables?

What were you going to mean by that?

Look at their declarations

>mouse over variable name
>intellisense shows its definition

CONSTANT_IDENTIFIER
variable_identifier

Is it ok to wear "Code Artisan" t-shirt in public?

Only with a skirt and programming socks.

Your IDE likely applies a different style to them.

good except you shouldn't use underscores for normal variables.

if you're in san francisco sure

You must wear this hat tho

Creating some small infosec related script in Python. I figure that if I cant be an infosec professional (Im too systematic, I think, to do shit like appsec or websec), so I'll put my software autism to use and create _tools_.

I like to distinguish them from function identifiers.

i saw just the top part when scrolling down and thought it was the blacked meme

>Richard Stallman
Stopped reading at this exact spot.

why is she crying

fair enough

Because she is overwhelmed by the social interaction

So at the end, right?

baited for that exact response my lad

At the end relative to the beginning? Yes.
At the end relative to where I started reading? No.

I don't feel anything...

i'm starting from the bottom up.

so...

f-first for html

Try writing in Javascript! You will feel pain!

Is C a dialect of Rust?

No, but Lisp is a dialect of Lisp.

Anyone using AWS? How does AWS actually work? I want to deploy a Go web service storing data to a database to the cloud. I'm guessing I need an EC2 instance but it doesn't have persistent storage so I need S3 to mount the filesystem containing my software. And then I need RDS for the database?

If all that is needed AWS went from kind of cheap to kind of expensive compared to a VPS instance. I guess not having to maintain the database is kind of a plus.

>good except you shouldn't use underscores for normal variables.
Surely depends on the conventions of the language?

I really feel like i just hit a millstone, automating the web browser is fucking dope

Python doesn't have constant declaration.

...

Truly garbage.

>Python
Trash language, what it does is probably wrong.

great image lol

just use digital ocean lol

Just post a github repo and clean it up as you go

hiblert

It's basically a VPS provider with some dynamic scaling but it requires reboots to do that? The pricing is interesting though with monthly plans.

I think I'm the best programmer in this thread. Just saying.

Threadly reminder that dlang-chan is not dead; she's going to have her GC tumor removed (eventually); and she's super duper cute and easy to prototype in! Say something nice about her, /dpt/!

Do you use Lisp? If not, then you are wrong.

Aws and azure are so confusing, damn

I use what you could call a dialect of it.

How about you prove it, faggotface?

don't reply to it

It's self-evident.

Just as I thought. Go back to your desktop general posting your programming socks.

???

>Just as I thought.
Why did you ask for a proof if you already knew it was true? Seems like a dirty lie to me.

github?

To confirm my suspicions, of course.

>What are you working on, Sup Forums?
official /dpt/ tetris game.

Would like an advice from a c++ expert, please.

I don't use such trash.
No. I don't think it does.

Reminder that "hacker" is a white male keyword

twitter.com/sarahmei/status/865414033989525504

Thigh-highs or stockings, /dpt/?

I prefer cracker.

If you have nothing to show then you are irrelevant

Writing a queue-based processing system in Crystal. I had an in-memory queue library in place first called Dispatch, but then realized that it doesn't let you see what's in the queue, let alone alter it if needed. I switched over to sidekiq and realized that I can't have everything running out of a single application. I'll need a redis instance, a process for the API portion, and a separate process for working the queue. Not a huge deal, but I was originally expecting to have all of this in a single application

Why not both?

>cornwell's game of life.
oh my fucking god