/dpt/ - Daily Programming Thread

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

Attached: 1528937024271.jpg (600x842, 528K)

Other urls found in this thread:

developers.libra.org/docs/welcome-to-libra
youtu.be/dcAqb0wBl5g
youtu.be/7prwZpMtoGA
github.com/onethawt/reverseengineering-reading-list
github.com/tylerha97/awesome-reversing#books
vulnhub.com/resources
vulnhub.com
liveoverflow.com/
twitter.com/dpttxt/status/1143352525283831808
twitter.com/AnonBabble

Nothing.

Second for sepples!

I'm working on a parser for certain image board.

Attached: c++ anime.jpg (1440x810, 155K)

I made three reviews on the Facebook blockchain whitepapers found here
developers.libra.org/docs/welcome-to-libra

youtu.be/dcAqb0wBl5g
youtu.be/7prwZpMtoGA

The above is the main one on the ledger and the other is about their custom smart contract language (implementing Linear Types and with Rust-like syntax).
The last is about their Byzantine Fault Tolerant consensus protocol variant.

Attached: of_sorts.gif (899x455, 219K)

hum... user... that's.... that's not a girl...

Hows your game coming along?

Attached: 1561413847624.webm (688x536, 873K)

how do I read a technical book?

are you the user experimenting with Vulkan?

yeah nah

Post 310 from last thread: 46:23
OP: 46:11

Fuck off, you pathetic fuck. Are you trying to start the thread wars again just so you can post your stupid fag shit? The OP is not a fucking race for you to push your stupid shitposting agenda.
Delete this invalid thread and kill yourself.

I warned this would happen, and it always fucking does.

Attached: 1412742862372.png (674x752, 629K)

autism

newfag

autism

autism >>> newfaggotry

i want to nakadashi nenecchi

autism

>sepples
how does it feel ravaging your ass with the multithreading dildo

dude just mutex lmao

She cute.

where to into bit wizardry
specifically the kind of bit wizardry necessary for the creation of branchless SIMD algorithms

saged

Attached: sliders.jpg (1024x613, 91K)

Where's the "wasm bideo game" user with his based images?

Yes.

Dunno, my anus is intact. Why would you shove multithreading into your ass, user? Are you a faggot?

are there any animes where the mc falls in love with a trap?

>she

....
That's not the point!

Attached: pout pout.png (359x358, 162K)

Why does Mashiro hate Sundays? Is she a satanist?

now kiss!

why is java so convoluted to learn?
the procedural stuff made perfect sense but objects and stuff is too complicated

Attached: 1561417549854.png (720x1280, 510K)

Ah you are so cute!

Attached: [Zurako]_Mawaru_Penguindrum_05_This_is_What_Drives_Me_(BD_1080p_AAC)_[8084F054].mkv-00003.jpg (1920x1080, 379K)

>>she

Anyone here use Perl5 regularly? Nobody seems to talk about it anymore, is it dead/dying? Does it just get on with the job without fanfare? Need to work on an old Perl5 codebase and unsure whether I should just bring it up to date with the latest Perl5 modules and ways to do things, or rewrite it in Go.

Attached: [Zurako]_Mawaru_Penguindrum_06_You_and_I_are_Bound_by_M_(BD_1080p_AAC)_[053ED09F].mkv-00001.jpg (1920x1080, 301K)

absolutely dead
rewrite it. You and the people who will have to maintain it after you in the future will thank you

perl is the duct tape of the internet user

it'll literally always be useful

For me, the weirdest quirk in Java is having to use Scanner to get user input, instead of having a System in function, similar to println in System out.

Absolutely nobody is using Perl outside of legacy shit. Don't waste your time.

You never worked in a company with people that fix shit with Perl then lol.

It's a bit out of fashion, nothing else.

I read somewhere that Scanner is really slow. You should use BufferedReader instead

No. At a time it was, in 1990. Literally nobody uses or has used it in the last 15 years

people said the same shit about python yet here we are

by the way you have your dates incorrect, early 2000s was the golden age of perl.

Anyway, learning language just because they're popular or not is stupid. Perl teaches you stuff.

Right. Perl teaches everybody that even if your language is garbage, people will still use it.
Perl took a huge dumb on regular expressions, and completely fucked them up to remove the actual advantages it has. And then that cancerous implementation polluted many other programming languages to.
Only POSIX ERE gets it right, and actually allows implementations to properly be efficient.

I mean I agree, PERL does have some bad design decisions. But it's still useful to learn if you're a hobbyist and want to quickly fix shit. If you want a job it's a bad thing to learn, just learn php and python.

I should back up my claims somewhat.
#!/bin/bash

match=$(printf "%$1s" | tr ' ' 'a')
regex=$(printf "%$1s" | sed -r 's/ /a\?/g')"$match"

echo "Using regex $regex"
echo "Matching against $match"

echo "grep"
time grep -E "$regex"

Attached: 74964290_p8.jpg (1293x1530, 1.03M)

30
Using regex a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Matching against aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
grep
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 0m0.004s
user 0m0.004s
sys 0m0.000s

perl
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 0m35.983s
user 0m35.959s
sys 0m0.003s

ruby
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 0m12.065s
user 0m12.055s
sys 0m0.003s
32
Using regex a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Matching against aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
grep
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 0m0.004s
user 0m0.003s
sys 0m0.000s

perl
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 2m30.437s
user 2m30.338s
sys 0m0.000s

ruby
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

real 0m48.793s
user 0m48.661s
sys 0m0.033s

'(e
(x
(p
(l
(a
(i
(n)
l)
i)
s)
p)))

cunny...

What languages are used by the chill bros at Gryzzl?

Attached: gryzzl.png (625x387, 103K)

use a real language ike javascript.

I don't know, which language is peak cringe?

hime-chan a cute!

Attached: hime.jpg (600x800, 660K)

Is it preferable to stick to one language or learning new languages and learn to be fluent in them (even older ones)? Talking as a hobbyist here.

What are some good ways to get into some lower-level stuff, like maybe kernel development or reverse engineering?

if you want to remain an unemployed hobbyist forever it's best to learn haskell

It is better to be specialized in one language than to be mediocre at multiple. Programming are just a tool to get things done. What you programming with is what really matters. Nobody is impressed if you know Java, C#, C++, C, Python, Ruby, etc. if you haven't even built anything with it, compared to someone who only knows Python, but programmed a distributed database with it.

God I want to fug astolfo so bad

I'm a hobbyist Pythonista and whenever I try to learn a compiled language I find I have no use for them because all I write is backend web services and command line tools where performance isn't an issue.

#pythonista #boyswhocode #ewwwcompilation #rapiddevelopment #developer #codinglife #backend #webscraping #socialmediabots

Attached: 61495590_139680973868853_8698695772592961863_n.jpg (1080x1080, 90K)

It's preferable to implement something tangible in a single language.
If you spend your whole life arguing about the pros and cons of various languages you won't get anything done

>reverse engineering
Books, CTFs, and personal projects.
github.com/onethawt/reverseengineering-reading-list
github.com/tylerha97/awesome-reversing#books
vulnhub.com/resources
vulnhub.com
liveoverflow.com/

nice bait

Is it reasonable to start a career as a software developer without going to college?

Learn Common Lisp

No

>chan

If didn't start programming at least at 10 yo, no

Lisp is the most powerful programming language.

#easy menus, always use (Q) for return option in option_listing
12 def master_menu(title, option_listing, submenus):
13 print title
14 while True:
15 print option_listing
16 answer = input()
17 answer = (answer.upper())[0]
18 for option, callee in submenus.items():
19 if answer == option
20 callee()
21 if answer == 'Q'
22 break

just reduced a shit ton of menu bloat, what do you guys think

Trying to relarn c++ after doing no programming in a long ass time

twitter.com/dpttxt/status/1143352525283831808

An environment variable is fine, lots of programs do it that way. gpg for example uses GNUPGHOME. following XDG_CONFIG_DIR is also a good idea if you'd like a config file

Don't take these desktop ricing faggots too seriously. If they don't like the way you did things tell them to hack on the program themselves.

install shen

Anyone knows what would be a way to format this in Python and print it legible? It's from the JSON API

">fall for CIA nigger bogeyman
>want encyrpted calling on desktop
>try each of the programs on right
>all of them require phone number to create an account
Is there anything out there that isn't a fucking botnet or a meme?
What the fuck ever happened to registering with just an email address?"

lol same here
have a technical interview tomorrow and am very rusty

Could the second if be an elif?

I'm not sure what the difference is
I'll note that this currently doesn't run, python doesn't like that answer == option bit, though I'm not sure why yet

oh never mind, I'm retarded, both those if statements need a colon following them

Where did this "cunny" meme come from

/tv/
Rome (HBO) I believe

and break only breaks out of one loop, so I made a flag to get out of the while loop
#easy menus, always use (Q) for return option in option_listing
13 def master_menu(title, option_listing, submenus):
14 print (title)
15 quitting = False
16 while quitting == False:
17 print (option_listing)
18 answer = input()
19 answer = (answer.upper())[0]
20 for option, callee in submenus.items():
21 if answer == option:
22 callee()
23 if answer == 'Q':
24 quitting = True
25 break

this tests successfully

My neighbors are loudly complaining about other peoples dogs while their own dogs bark, whine, and fight each other all day every fucking day. And they're constantly yelling at their dogs to stop fighting then five minutes later the fuckers are back at it.

Just thought I'd share.

Ok... What am I doing wrong? When I copy paste this into the SQL script, it works... So why does this break when I do the executeupdate?

Attached: received_389243875023977.png (828x153, 23K)

I can only see that as being a serious problem if they are doing so while you are trying to sleep.
It might be best to file noise complaints regularly.

What's this got to do with anime?

Attached: awoouhou.jpg (268x268, 32K)

imagine the smell

I like this

It's coming along, just filling in some menus before i get to doing the combat.

Attached: Screenshot from 2019-06-24 23-06-15.png (1366x768, 88K)

why does the output skip the name portion?

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package assignmentone;

/**
*
* @author henrymeier
*/
import java.util.Scanner;
//imported scanner class

public class AssignmentOne {
//java class
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
//main method
Scanner henryscan = new Scanner(System.in);
// Create the Scanner object

System.out.println("Student ID:");
int studentid = henryscan.nextInt();
//query student id

System.out.print("Name:");
System.out.println();
String input = henryscan.nextLine();

//query name
System.out.println("Major:");
String major = henryscan.nextLine();
//query major

System.out.println("Academic Year:");
String academicyear = henryscan.nextLine();
//query academic year
System.out.println("Class:");
String Class = henryscan.nextLine();
//query class
System.out.println();
System.out.println("Sudent ID: " + studentid);
System.out.println("Name: " + input);
System.out.println("Major: " + major);
System.out.println("Academic Year: " + academicyear);
System.out.println("Class: " + Class);


}

}


output:

Sudent ID: 913423
Name:
Major: Ass Science
Academic Year: 2019
Class: 2019
BUILD SUCCESSFUL (total time: 14 seconds)

Neat, user! Really refreshing to see someone doing a project like this.

who cares that shit is pig disgusting

Also there is probably a newline that needs to be eaten after you read the int. Why not just read all the lines as strings and do string.ToInteger or whatever

thanks for the encouragement, a lot of the game tutorials/forums I saw said to start off small so I decided something text based would be simple enough to do
also I find I get a lot done when I'm drinking which I've been doing these past two nights

You should read "land of lisp".

Is it normal to take extremely long time to figure out something simple?
I just sit and stare at my code while thinking how to solve a simple thing, only to be solved after 10 minutes thinking and 32 stackoverflow searches
This happens only to who is starting to code right? Or i'm a lost cause or something

You think ten minutes is a long time?
I spend months thinking about things

Yeah but I mean really simple stuff, like do I either use a for loop inside a function or just loop that function inside another related function
I see those people in YT resolving shit like they just took an entire bottle of Adderall and i makes wanna kms for being so slow

If by "figure out" you mean come up with a working solution, then yeah that's bad. But spending a long time musing over possible implementations is common even among experienced programmers, maybe especially.

Does anybody have any ideas for good projects to work on to show off on your resume for job applications?
I've done a bit on leetcode and hackerrank so I can use that to show general programming proficiency, but I feel like having some finished projects would be better.
I'm working through some Udacity courses for android app development so I should have a few decent phone apps done by the end of the year, but that's not really a lot.
I'm in my final year of uni and I feel like I've done basically nothing.

Attached: 1559104719498.png (596x346, 70K)

programming is not a race
people programming on youtube have experience programming, and they already know what they're going to write before they write it
I can make a fast looking youtube video too if I program something I already know how to make

I read the sample chapter and it seems to me that this book is more about teaching more pure computer science using game examples than teaching game design or practical design patterns for games.
I appreciate the thought though.