/dpt/ - Daily Programming Thread

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

Attached: dpt hacka doll 3.jpg (1280x722, 271K)

Other urls found in this thread:

galois.com/careers/software-engineer/
youtube.com/watch?v=qsGBGSVFhgA
stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
c9x.me/x86/html/file_module_x86_id_285.html
eclass.uoa.gr/modules/document/file.php/D21/Introduction.to.Algorithms.CLRS.3rd.Edition.Sep.2009.pdf
youtu.be/Amvnucsam4k
pastebin.com/GEuPHuQz
twitter.com/AnonBabble

First for big anime boobies

If C++ is so good why is there no C++ 2?

It was so good they didn't have to make another

There's a new C++ 2 every few years though

Attached: Screenshot from 2019-06-19 15-47-08.png (779x520, 89K)

nth for C++98 is the only valid form of C++!!

Attached: akari doggy.jpg (1032x720, 88K)

what's wrong with this
there's 9 years between result_of being introduced and being removed

cute but retarded

Anyone here familiar with Ada? I was wondering if it would be a bad idea to start with Ada 95 and work my way up to Ada 2012. I don't mind if this would take longer, I'm just thinking in terms of the availability of books, which of course tends to be higher for older standards, though I'd definitely not want to start with Ada 83.

Will i get a job if i program in haskell (if you answer yes post examples).

galois.com/careers/software-engineer/

This is the programming thread. Ada discussion belongs elsewhere.

first for erlang

First for small anime boobies

how many characters before you guys wrap your lines? i have a huge monitor on my desktop, but i also have a laptop, so it a bit of a struggle for me

depends on the language
80/120

72 chars

80

>galois.com/careers/software-engineer/

youtube.com/watch?v=qsGBGSVFhgA

is this the dream company?

79, which makes the code look like shit

i'd be embarassed too if someone caught me reading one of bjarne's books

What's a good way to learn C
I've been trying to go through K&R but a lot of the exercises seem extremely advanced, and require knowledge outside or what the proceeding section taught you

I collected 7 rings and 50 emeralds. Can I activate supersepples yet?

Such as? The only outside knowledge I could imagine it requiring is how a command line works and the ASCII table.

C is easy
void foo(void)
{
const volatile volatile struct x {
volatile int x;
} register const volatile const x;
}

Some of the problems really need bitwise operations before you're taught what those are.

Thinking about making some sort of way to scrape images off of threads or ez gets. Is this rule actually enforced?

Attached: Capture.png (511x83, 11K)

>tfw visual studio is better than anything
>tfw perforce is better that git or mercurial
>tfw programming on bindows is more comfy
How do we make free software great again?

user, that's the book you need for learning JavaScript up there!

Attached: cd315acc57107cb10076b99d0e82c863.jpg (900x1200, 167K)

Bitwise operators are in virtually every language, you should know them going into it. K&R teaches you C, not programming.

Right. So I need to do some more work before going through it. I found a 45 page guide from Stanford that explains the basics.

>tfw visual studio is better than anything
except its bloated state
>tfw perforce is better that git or mercurial
better in what sense?

new to programming, what is a good way of learning C++

Wait, can the right hand argument of a bitwise operator in C be non-constant? In Assembly that’s not possible.

I don't know what assembly language you're using.

In Intel 64 this won’t assemble
shr rax, rbx

your macroassembler sucks then

>Intel 64
huh?

>claims to be cisc
>can't even right shift by a register like risc ARM
pathetic

stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

c9x.me/x86/html/file_module_x86_id_285.html
>The count operand can be an immediate value or register CL.

Attached: ss+(2019-06-19+at+09.45.30).png (395x10, 912)

he's right, then.

what's the motivation behind these posts?

I need free book Sir. I found a really good one on algorithms that is free

eclass.uoa.gr/modules/document/file.php/D21/Introduction.to.Algorithms.CLRS.3rd.Edition.Sep.2009.pdf

getting people to use JS

Attached: 1560971019159.jpg (480x640, 119K)

I don't know but I like them. I wish he stuck with "Anone" though, it sounds cuter.

It's just harmless cute, user.

>I wish he stuck with "Anone" though, it sounds cuter.
That was probably my fault, I'm the one who corrected the poster. I feel like I shouldn't have.

Hey, you can call me anone again

Well JS rocks, so ain't got no problems with that.

yes that i want that big long chicago dog

do you have any of them books that are free?

I'm trying to perform an evaluation on a part of a string, such that an input string of "abc def ghi[string1] jkl [string2] mno" would give an output of "abc def ghione jkl two mno". Basically I want to select parts of a string, in this case anything in brackets, put it into a variable and manipulate it (with an if statement or something), then reinsert the variable into wherever it was in the string. How can I do this in lua?

>How can I do this in lua?
Why lua?

It's the language for the api of the game I'm writing something for

can anyone link a pretty good c++ book? i know python too.

m00t a cute
A CUTE

From the /sci/ wiki:
>Programming: Principles and Practice Using C++ by Stroustrup
>C++ Primer by Lippman, Lajoie, and Moo
>Discovering Modern C++: An Intensive Course for Scientists, Engineers, and Programmers by Gottschling

anone was for the platelets

regex should work for simple cases like those

who

the example I provided might be a bit too simplistic. Continuing with my example, I want to check the input against a table, which might be something like {string1:"one", string2:"two"}, and base the output off of the values in it. Simple regex can only replace it with a constant value, as far as I can tell

9gag founder

>finally have free time
>want to work on project
>main interest and hobby is games
>feels like waste of time to work on them
>can't begin to understand how to contribute to open source projects
>can't think of any other projects/apps to work on
what the fuck am i meant to do

Attached: My+mad+pepe+_7b63c45659fd0b73614e0d977caa0f55[1].png (325x275, 47K)

You don't need regex for something so simple, what's wrong with just
foreach (key, value in table) str.replaceAll(key, value)

Or however that would look in lua's weird syntax. Lua's string does have a find and replace function, right?

Is there a good website for learning sepples with an emphasis on modern features? I’ve finally decided to leave C for sepples.

What you're asking can be really easy or really complicated depending on the constraints of your particular issue.

But, what you need is to parse the string (which is just an array[] of characters).
I'm sure lua has built in parsing classes, string methods, array methods. That's all you'll need.d

What are good places/resources to find more about what tech is out there?
e.g. geofencing. I learnt about it from my job but where could I have found out about that elsewhere? Any magazines or websites for this sort of stuff?

#include
using namespace std;

int main() {
int n = 1;
while (n < 10; n++);
cout

What are containers useful for? Why are they used?
No-one has been able to answer this question.

>▶
while only takes a condition
Use n++ in the loop, or use a for loop

You're right, not sure why I used a table as the example above. It should be a function call with one/two as the return value

#include
using namespace std;

int main() {
int n = 1;
while (++n < 10)
cout

Just look at the Lua documentation.

Go to array, or dictionary, or whatever this is and look at the methods you can use on it.
There will be things like replace(), pop(), add(), or whatever that you can use on indices of your list/dict.

High level scripting languages make stuff like this very easy.

how come if i put n = n + 1 inside the while loop it is non stop loop?

you what now?

#include

int main() {
int n = 1;
while (n < 10) {
std::cout

int main() {
int n = 1;
while (n < 10)
cout

Is it actually in the while loop? You only get one statement without using braces.

that's the same as
int main() {
int n = 1;
while (n < 10) {
cout

>not using the down to operator
#include
using namespace std;

int main() {
int n = 10;
while (n --> 0)
cout

it is infinite loop if enclose the loops statement in {} then it works as intended. without that brackets it is just infite loop.

Here are some notes on the Libra (facebook coin) whitepapers.
Wanted to talk more about Linear Logic but maybe in the next

youtu.be/Amvnucsam4k

Attached: girard.png (1746x1044, 2.36M)

thanks everyone.

neat

You can work on my projects, user.

>down to operator
Woah, never knew that existed, thanks, user!

Attached: 1560016421939.png (566x650, 318K)

no fucking way I'm using a currency controlled by facebook and backed by the financtial establishment

Attached: libra-map-watermark-the-block-674x675.jpg (674x675, 38K)

--> is not an operator. It is in fact two separate operators, -- and >.

The conditional's code decrements x, while returning x's original (not decremented) value, and then compares the original value with 0 using the > operator.

Nice pasta from SO.

never claimed it was mine :^)

while(_8-->0) printf("your're mam\n");

C and C++ don't have significant white space.

>What are you working on, Jow Forums?
Working some on a keyboard/mouse kvm over network client/server. Finally got the compilation errors resolved from copy and pasting my server code from windows and converting Win32 calls to xcb.

>tfw it compiles for the first time

Attached: scrot.png (1920x1080, 541K)

Ok you fucking nerd thanks for ruining it

Your makefile is fucked m8, why is it not generating objects file to avoid recompiling everything?

You're right. I need to rectify that.

What language is best for just making and arranging functions?

Haskell

It takes less than a second to compile though, that's how it's tolerable.

Please do not disrespect Simon's wife. Thank you.

I learned how to use valgrind today :)

>What are you working on, Jow Forums?
I finally made it. Rate my Sieve of Eratosthenes in GNU Make, Jow Forums.

GNU Make > OCaml > Guile > Racket/Scheme > JS > Haskell >>>> CL > Clojure

pastebin.com/GEuPHuQz

Attached: Screenshot 2019-06-20 at 00.49.09.png (914x1280, 103K)