/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

prev:

Attached: dpt.png (1000x793, 717K)

Other urls found in this thread:

youtube.com/watch?v=ZhuHCtR3xq8
youtube.com/watch?v=EfH8qHFvEEY
youtube.com/playlist?list=PLfzW_wEeYxk7IbUshBz-23-NHQ_KYB5vE
youtube.com/watch?v=t2oIhJG7rXA
youtube.com/watch?v=Vi8iQqdLdFc
youtube.com/watch?v=BZbb5DS9W8U
danbooru.donmai.us/posts/3128333
two-wrongs.com/on-competing-with-c-using-haskell.html
portacle.github.io/
sekao.net/nightcode/
cursive-ide.com/
nightcoders.net/
youtube.com/watch?v=RQ6hgzzk_o8
twitter.com/NSFWRedditVideo

youtube.com/watch?v=ZhuHCtR3xq8

only 90s telnet bbs mud kids
youtube.com/watch?v=EfH8qHFvEEY

>1 hour long
off to a great start

is there a statistically significant difference between early posts vs later ones, in a persistent general

Attached: thinking.jpg (108x125, 2K)

difference in what? quality?

unsupervised difference daddy

youtube.com/playlist?list=PLfzW_wEeYxk7IbUshBz-23-NHQ_KYB5vE

>that pic
/agdg/ go home

Quit your job and make video games

Attached: agdg.png (768x386, 108K)

>being a cute loli
>being this passionate about very specifically hating pedophiles
>being inclined to spend her days staying in bed and drowning herself in emotionally detached intellectual pursuits
>self identifying as a loli instead of just a little girl
>heavy eyelids and dull irises
I'm upset about the implications of this image.
Please help save the lolis. Child rape isn't okay.

I'm convinced people who use Vim are retarded. Nearly every common "useful" command is built into visual text editors now. Need to :s//g? ctrl+ff works in any competent text editor. Need to delete a line? Shift+Home/End+Del works just fine. Need to delete multiple lines? Just highlight them and delete. d26d isn't that much faster. The only useful thing is putting an incrementing number on each line very quickly and even some IDE's can column select and do that just as quick as it takes to type :put =range(1,10)

>uheeqhhe jung nbhg `ttIt?` ?
Ubj bsgra ner lbh hfvat EBG13? Or ubarfg abj, Naba.

opengl is bullshit

Attached: letgo.jpg (600x428, 27K)

Attached: 1526200407673.png (512x512, 164K)

What books that better explain data structure and algorithm C++?
I'm a graphic designer, but currently learning the basic.

Anime posters should kill themselves

Have you read your SICP book today?

Attached: 1526062348080.jpg (640x640, 93K)

Attached: 1526199727425.jpg (236x236, 14K)

kys

But I've already kissed my sister today

Now I remember where I've seen that pic.

Attached: Lenna.png (220x220, 86K)

is it possible in short term for a noob like me to whip up a program using TensorFlow to recognize printed math text from an image? I think this would be an interesting task that will keep me occupy during summer

Attached: Capture.png (834x209, 69K)

Which dialect of lisp should I use for general programming, and why?

python

Something to do with some study about how autistic people rate faces.

youtube.com/watch?v=t2oIhJG7rXA

good, glad to hear you've said your goodbyes and your affairs are in order
now do it

Sorry what?
I only draw he-- book illustrations and short comic. >///<
My ultimate goal is to build an interactive comic platform where the titles, reading directions, and dialogues can be swapped into other language.
JP EN FR etc while retaining the typeface use.
I can't find anything that fits this so I decided to learn programming from scratch. I just stuck at data structure because I'm a brainlet.

G O O D
J O B


youtube.com/watch?v=Vi8iQqdLdFc

???
B-By the way, any suggestion as aforementioned above?

youtube.com/watch?v=BZbb5DS9W8U

Reminder that Rich Hickey is based

>dumb javacuck
>makes bastardized lisp
>loved by js hipsters

it's literally better than every lisp but Shen

How the ABSOLUTE FUCK can Haskell programmers stand the insane compile times? Aeson, or anything with Template Haskell as far as I can tell, just takes for fucking ever to compile.

Attached: haskellos.png (1446x2048, 21K)

would you rather:
>long compile time, fast program
or
>quick compile time, slow program

.t cuck hicki

Quit your video games and get a job.
The earliest ones get more replies.

I choose quick compile time, fast program. OCaml can do it.

or, or, hear me out:
>quick compile time, fast program
>achieved by using an impure lower level language whose runtime behavior is difficult to reason about
>this does not stop you from writing expressive code that works properly because you are not a brainlet

Why is .NET so superior, /dpt/?

This was the exact argument assembly devs made against C. Clearly, you need to strike a balance between safety, performance and speed of development.

> inb4 comparing :s/// with some Search/Replace feature
> inb4 leaving the home row to reach the mouse and select text

It's fine user, vim is not for everyone...but maybe give it a try sometimes

Why does Jow Forums hate popular programming languages?

Attached: 1525684591467.png (1014x720, 1.04M)

Is there a library/package for javascript that can remove white noise from an audiostream?
I didn't find one on npm, they're all "generate white noise" trash

Status-seeking.

The church of emacs would like a word with you

Attached: gnu.jpg (1312x2000, 242K)

I think haskell is pretty popular now

>I'm convinced people who use Vim are retarded.
I agree with you fampai, there's no reason to use vim over evil-mode.

wrong

--fast

--i-have-no-time-for-this

I like C. C is an incredibly popular and prevalent language.

> inb4 comparing :s/// with some Search/Replace feature
But it actually is in any competent editor that allows you to S/R with Regex constraints.

>...but maybe give it a try sometimes
I used Vim to make that post
>gave actual examples of vim commands
>used g? for part of the post

I haven't given emacs a try but I'm also not an octopus.

sheck'd

Danbooru has a translation tool. It marks an area and you can put words on that area. Mouse over on the area, you can see the translation over the original text.
example:
danbooru.donmai.us/posts/3128333

private sealed class Foo {
public static readonly Foo bar = new Foo();
}

why ?

Just starting out learning Python and I'm wondering how do I split a string at x number of characters in?

I'm sure there's a simple way, but the only thing I'm getting by googling is suggestions of turning the original string into a list and then iterating over it, populating a new variable, until I'm x characters in.

should be:
public static readonly Foo foo = new Foo();

can't even name properly.

except shitskell isn't even fast

You don't want to search for 'split' you want to search for 'substring'.

"string"[:4] // returns "stri"

Strings are lists. They're lists of characters.
So when you want to transform a string, depending on the chars it contains, you should treat a string as a list. (kinda)

To answer you question, there are many ways to that. Here are two ideas :
>recursively append to a new string until you're x characters in and then append to a another one until the end
>use slices

>[:4]
how did python become a popular language?

Brilliant, thanks user.

>recursively append to a new string until you're x characters in and then append to a another one until the end
Yeah that's what came to mind, but it seemed less than ideal.

It gets better

print("string"[4]) // returns n

Comrade Tiny One

easy
char const * right_string(char const * str, unsigned int step){
return (str + step);
}
char * left_string(char const * str, unsigned int step){
char * newstr = malloc((sizeof(char) * step) + 1);
memcpy(newstr, str, step);
newstr[step] = '\0';
return newstr;
}

now wrap those 2 function with CPython, and there you go

array of chars

This is because it's creating a substring from 0:4 non-inclusive.

"string"[0:4] // returns stri as you're getting index 0-3
"string"[4] // returns n as you're getting index 4

They are communists.

Really ? Thank you user, I hadn't noticed that. It all makes much more sense now that you explained it...

My pleasure, user.

faggots

>non-inclusive
So it was built for retards by retards?

It's so comfy though

Attached: Screenshot from 2018-05-18 22-22-09.png (1600x900, 647K)

ohayou /dpt/ !
this [pic related] is a tomato

Thank you for posting a programming (anime) related image !

Attached: 1511957728964.png (528x800, 378K)

So C was also built for retards by retards?

char *buff = "this is a test string";
printf("%.*s", 4, buff + 10);


4 should be 3.

Why C doesn't support haskell's $?
it's far easier to read
int* something = malloc $ sizeof(int) * $ axis.x * axis.y * $ offset + depth;

than
int* something = malloc(sizeof(int) * (axis.x * axis.y * (offset + depth)));

It also have lower chance of unmatched parenthesis

>C
>abstraction technique
pick one

Attached: 9YmKi4i.jpg (1506x2048, 319K)

You are autistic

Attached: waifu2x.png (472x472, 252K)

C again BTFO!

two-wrongs.com/on-competing-with-c-using-haskell.html

I'm interested in Lisp. Is there some nice IDE simliar to CodeBlocks for us n0bs? I'm totally uninterested in -sudo @apt finger.sister

>snakefag comparing length to slicing boundaries
Sasuga!

scheme or racket are easy
some people prefer common lisp

depends which lisp

common lisp: portacle.github.io/

racket: dr racket

clojure:
sekao.net/nightcode/
cursive-ide.com/

clojurescript: nightcoders.net/

Help me out bros
Do I learn pure C and assembly just because I'm fucking autistic or do I learn android to be employable?
>inb4 learn Haskell

Attached: 1526109377909.jpg (453x453, 36K)

Aren't they the same thing?

youtube.com/watch?v=RQ6hgzzk_o8

What is the last haskell project you did where haskell was a very good choice, compared to other languages?

I think racket is a variant of scheme, and I don't know much about cl. I can't really program yet, so just ignore me. I've just taken a small interest in lisp. It looks nice.

Is Haskell a decent beginner language or should I do something else first?

Never? Matlab and R most of the times and python is for brainlet "scientests"

The fact that C already have some build-in syntactic sugar e.g: arr[i] instead of *(arr + i) to give some level of abstraction, why couldn't they add another one?
Especially C++, they have tons of syntactic sugar implemented in the language and in the STL.

>scientest
Yikes.. Fuck my ass and call me a squishy tomtato. My point still stands

type-safety and functional paradigm is the future so haskell is a smart choice for a beginner.

Later, learn C/C++ for historical background.

see answers to

b-but I learned java in american college

>some people prefer common lisp
What is the best or the most popular lisp compiler?
The war between CLANG and GCC already bad enough, but CL's sheer number of compiler is really intimidating