/dpt/ - Daily Programming Thread

Soon edition.

What are you working on, Jow Forums?

Previous thread:

Attached: 91waWeUbM4L.jpg (1500x1932, 613K)

Other urls found in this thread:

techempower.com/benchmarks/#section=data-r16&hw=ph&test=db
jobreadyprogrammer.com/
twitter.com/SFWRedditVideos

Attached: 1535996197416.jpg (349x356, 76K)

dumb frogposter

Attached: 1536517082147.jpg (1280x720, 85K)

First for WebAssembly

Attached: chipsnake.webm (848x555, 142K)

OOPsies and theorylets will be upset by OP edition

>realize I hate programming and never want to do it
>2 classes away from my bachelors degree in CS
what do?

This code is horribly broken.

Get your degree and then do whatever you want, why is that even a question? You can't get your time back so just do it.

nene is trying her very best!

A true programmer eschews venal mortal pleasures such as sex and companionship.

what if I enjoy sexing the fiance?

sex but only within the marriage monad
do NOT bully nene

Attached: GF is a moand.png (1920x1080, 1.7M)

Too bad, assuming you want to be a true programmer.

I think I am mentally challenged thinking about it now lmao

Here's my last attempt:
There's a card currently at the table - it's value is 2. I can only put down a card that's the same, one below or one above that card. In this case, I can only put down a 1, 2 or 3.
The game is a closed loop - so 11(Jack), 12(Queen), 13(King), 1(Ace), 2, 3...

I want to know, given a card at the table, the possible values I could put down. Given that the card in the Table is 1(Ace), I could put down 13(King), 1(ace) and 2

Is there an easy way to represent this without checking for all three possibilities(in case I want to extend this to have more)? Hope this helps, otherwise, I'll just neck myself

(n-1)%13, n, (n+1)%13
where % adjusts for negatives

The most powerful programmers are essentially technological liches.

though this starts with 0

>300 year old trap
i don't want to think about it

Attached: trop.png (1280x720, 1.07M)

>In Idrids, Type has type Type 1, Type 1 has type Type 2, and so on forever
jfc the state of this language

Why aren't you programming right now?

Attached: 1536352415483.png (711x633, 192K)

>standard universe hierarchy
what's wrong with this? are you some sort of type
in type egalitarian?

They have powers beyond your imagination. They care not for such trivial concerns. Their Emacs init files are almost complete.

that's what you get for using mod, and it's better to use 0-12 since that's conventional programming, unless you want to waste space with ifs

alternatively you could re-adjust so

(n-2)%13+1, n, n%13+1

this is assuming A=1 like what I think you're doing

If I want it to start at 1, would it be as simple as adding one to the mod result? I have a feeling it isn't quite as simple

no, you would need to adjust so if it's positive add one

Stop listening to Jow Forums's hate about Java.
Java is a very good starting language and will make you able to land a job at 90% of companies. Amazon, Netflix, Alibaba, most banks and Fintech companies depend on it.
It is a fast language that lets you write maintainable code with good performance.
Just look at the hard numbers and stop listening to cs undergrads who learn meme language of the week for hipster clout:
techempower.com/benchmarks/#section=data-r16&hw=ph&test=db

One you know Java you can learn the more difficult C++ more easily, if you know both of these languages + a bit of python and JS you can do about 90% of jobs in the industry

>35 rupees have been added to your account

Attached: 1482593375642.png (1040x1000, 1.12M)

It's simple, just convert 1-13 to 0-12, use his calculation, then add 1 back, like I've done here:

Working on a learning chatbot to turn into my waifu.
Eventually I'll give it access to the net using an open source crawler so it can learn from that too.

Basically tay 2.0

Attached: 1496086515432.png (421x460, 252K)

>One you know Java you can learn the more difficult C++ more easily
Java can only make learning C++ more difficult because of the huge number of false friends between the languages. If you're going to learn C++ and you already know Java, you should exercise great care to avoid bringing Java preconceptions to your C++ learning.

>It is a fast language that lets you write maintainable code with good performance.
This statement could apply to any number of languages.

#67530605
how much are they paying you ranjev rujavi?
Or do you do it for the (you)s?

Thank for the advice, I was wondering how much of a meme the Java hate was. I would prefer to start learning a language that could actually land me a job not NEET bux.

>Java is a very good starting language and will make you able to land a job at 90% of companies
No

>Amazon, Netflix, Alibaba, most banks and Fintech companies depend on it.
You're thinking of Python

>It is a fast language that lets you write maintainable code with good performance.
Relatively slow as shit to code on, even compared to C++

>One you know Java you can learn the more difficult C++ more easily
No, and C++ isn't difficult

pajeet uh we don't pay you shills for overtime

Attached: 1475554518847.jpg (749x720, 85K)

anyone know where I can get these videos for free
jobreadyprogrammer.com/

Thanks! I need to brush up my fundamentals and apparently conveying problems

Attached: 1523386635027.png (645x773, 23K)

you have to make sure it's the right modulo, otherwise the (x-1)%13 won't work anyway

In your opinion, * : *?

Working through The Little Schemer. Any of you guys read it?

*_*

If a language doesn't support manipulating code at the expression level then I'm not interested.

you mean like by writing it?

this lmao

AST manipulation is for nerds and nothing special.

>No, and C++ isn't difficult
any c++ tutorials that show you how to properly set up a c++ environment on linux?

you probably already have g++ installed

sudo apt-get install build-essentials

$ install g++

I think

$ install Jow Forums

Attached: 1488846994107.jpg (249x180, 4K)

How do I structure a simple Java Swing application as far as where do i put classes, methods, and what do I instantiate in the constructor? right now it is all in one long class and looks silly.

Attached: bazaar544671_alphabot2pi3.jpg (1024x768, 276K)

That's a difficult question. It'll take a long time for you to develop a sense for it.
>what do I instantiate in the constructor?
As much as you can, is a good rule of thumb.

If it's simple and it's Java Swing, use NetBeans, it does all the job for you.

>You're thinking of Python

AHAHAHAHAHA nigga you serious? the entire backend of Amazon is mostly Java/JVM
Elasticsearch, hadoop, kafka, spark, cassandra is what powers all these big companies

python isn't even on the map except for some small scripts
>he thinks he can build a large scale distributed system in python
The absolute state of Jow Forums, jesus christ

>operative word is 'depends'
Learn english nigger

shhhh don't tell these tards

How do I become a programmer lich?

die

I wish I could service audio interrupts directly without having to go through a stupid audio thread and callback abstraction.

Attached: 1524314361108.jpg (837x892, 109K)

why is it so hard to find programmers who like anything other than programming? i just want someone to do interpretative dancing/tailoring/hiking with

See

I like masturbation and watching netflix. And doing drugs. Does that count?

I also like masturbation and watching netflix. Don't have drugs though.

If you want, the 3 of us could masturbate to netflix together

Yes

I was doing sports. What more do you want from me?!

What did you think of it?

I don't believe in masturbation. I just want to do cool stuff with programmer friends instead of normies.

Mostly programmer are average persons, just internet communities in obscure techonologies or open source outside work are programmers without life

>I don't believe in masturbation
Well it exists regardless of what you believe

What do I need to learn to contribute to open sauce?

Code of conduct.

It was fun. I did it with pencil and paper. I like the whole series of The Little X books—they're kinda like socratic dialogues.

This

Coding and testing, the latter pretty much as important as the former

>Coding and testing, the latter pretty much as important as the former
Any good resources in particular?

I've never seen anyone masturbate (unless you count accidents on the internet) and I don't do it myself, so as far as I'm concerned, it doesn't exist, and I want to keep it that way. It is my belief that masturbation is not a good thing.

>accidents on the internet
"accidents"

put down the bible and pick up your penis

I'd say searching online for test-driven development for your language of choice is the best way to start. While some may not be all for TDD, it places a strong focus on testing in order to build, so will help you get started right

Also all non-retarded repos will have a test suite. It's important to know where it is and how to run it

sudo apt-get install clang cmake make git vim
Godspeed

Give pdf sir, no on libgen, please, very needful

Behold, another product of my raging OCD:
#!/usr/bin/awk -f
# Selects random sublist and random item
# from sublist and prints sublist title
# and selected item

BEGIN { xindex = 0 # Index within superlist
yindex = 0 # Index within sublist
fblank = 1 } # First consecutive blank line?
$0 ~ /^\r*$/ { yindex = 0
if( fblank ){
fblank = 0
xindex += 1 }}
$0 !~ /^\r*$/ { fblank = 1
if( !yindex ) table[xindex,0] = 0
else table[xindex,0]++
# First element stores size of sublist
yindex++
table[xindex,yindex] = $0 }
END { srand()
x = int( rand() * xindex )
srand()
y = int( rand() * table[x,0] ) + 2
printf "%s\n%s\n", table[x,1], table[x,y] }

If you want it then preorder it.

>awk
You don't have OCD user, you have incurable cancer.

What do you guys specialize in? I'm at the start of my second year of my degree and trying to figure out what I want to do.

Browsing Jow Forums means you see plenty of things you shouldn't.

I'm not christian. I'm part of a small neopagan spiritual group in a small european country. Our belief is that technology is the universe's way of revealng itself to us, but sadly, I'm one of the only programmers in the group.

C++, Java developer.

Gonna start my way through Web Dev to learn React.js starting tonight.

programming

Attached: 1498832027687.png (608x720, 584K)

>small neopagan spiritual group in a small european country. Our belief is that technology is the universe's way of revealng itself to us
Jesus christ, what a pretentious LARP

Full stack web development, but now leaning more towards server app development

Learn ASM and go into reverse engineering.

>small european country
How small are we talking, here? Every European country except Russia is small.

>Russia
>Europe
I bet you think slavs are white too

Russia is in both Europe and Asia. How can you not know that?

t. 56%er

embedded for work and Haskell for fun

If your shitty meme is meant to imply that I am American then you are wrong, for I am not.

>Everything I don't understand is a LARP!
I'm sorry that you're spiritually dead user. Maybe work on that before lashing out at other people.

I can't dox myself like that, but it's reasonably small (lower 50% in terms of country sizes).

Is Lisp technomancy?

>lisp being able to power body mods
wwwwwwwww

Anyone of you faglads self-host your repository? I've been looking into a possible AIO solution, which I guess boils down to at least a repo browser, a bug tracker, and a wiki or forum or such, any other features would be gravy. So far, it seems Sourceforge, Team Foundation Services and Jetbrains' various programs (the 3 related to version control and management are all free for "teams" of fewer than 10 members) seem to be the best contenders Jetbrains doesn't have a repo server software, but that's a detail.

Anyone ever self-hosted these? Or other solutions for that matter?

Attached: ed1.gif (720x405, 465K)