/dpt/ - Daily Programming Thread

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

Other urls found in this thread:

en.wikipedia.org/wiki/Z3_(computer)
doc.rust-lang.org/std/io/trait.Read.html#examples
twitter.com/AnonBabble

im learning c++

Reposting question
>What's the idea place to discard fragments in OpenGL? I'm assuming it's at the end of the fragment shader even if it's not going to be used since at least it doesn't fuck with SIMD.

Learning Rust. So far, so good.

>dumb fuckers prefix their shit with _ to avoid name collision.
>everybody starts doing it and now the prefixed names are colliding.

>we don't need namespaces btw

Which programming language should I, a cute Jewish girl, use?

...

Going through Land of Lisp now. Fun little book.

I did get sidetracked downloading and configuring Emacs + Slime though.

Lisp is cool.

Thank you for anime picture. Ruby is the /comfiest/ language ever.

Namespaces don't avoid collisions either and lead to unreadable name wrangling in object code. If you're going to write a library or an API you should prefix with your project's name, see for example the OpenGL specification.

en.wikipedia.org/wiki/Z3_(computer)

Are you telling me to go to Sup Forums because I'm Jewish? I'm sure I'm not the only Jew here. Thanks for the concern, sweetie, but non-Jews need to be less triggered on our behalf. It's embarrassing.

>I'm sure I'm not the only Jew here
Stop LARPing.

>Make the true modern successor to C++
>Good language design, good compiler and everything
>Make shitty GC
>Stick to shitty GC

I'm dropping D for good, seems like (((Rust))) is the only sane option left.

I want her to massage my prostate with her tongue.

In C starting things with _Uppercase and __ is UB.

>There are no Jews in Sup Forums

>the true modern successor to C++
C++

There is nothing modern about C++
Enjoy writing 37 header files and all those C preprocessor autism

>I'm a cute Jewish girl

im working on something
I cannot tell you

>I'm gay

>be 35 and stuck in shitty paper-pusher assistant-type job
>degree in accounting but absolutely no interest in it
>hobby programming all my life; mostly personal projects to simplify life on my server with bash, c, perl, python
>need a job that involves programming

is it too late for me to change paths or am i doomed to life of shit? what is the best way to get started and what languages to pick up? i've tried so many different languages that it wouldn't be difficult to learn anything at this point.

Daily reminder that if you can't program in asm and C you should leave because you're not a real programmer, just a chimpy bashing rocks together in the hopes of something good happening

What is a "real programmer"?

I never understood the point of D. To be it seems like a rebranded C++ with a garbage collector. At least Rust has some unique features.

Real programmers write LISP.

Who said this?

the one that programs in low level languages only

A programmer with an IQ over 130, i.e. not subhuman and capable of writing substantial efficient and correct programs

>capable of writing substantial efficient and correct programs
So only Coq programmers?

>In C starting things with _Uppercase and __ is UB.
No it's not but _Uppercase is reserved for the standard so you might somewhere in the future have no collision with them.

You're mom after I maded her squirt

It's C++ with cleaner syntax and a garbage collector nobody asked for.
C++ with cleaner syntax is definitely something I could go for thouggh.

your mother

who drunk programming here?

>Jewish
>Cute
Back into the oven

programming languages are supposed to make programmers' lives easier, so why stick with C over Rust when C makes it harder to write safe and sane code?

Where are you up to now user?

>so why stick with C over Rust
Why stick to Rust over Idris?
Checkmate mozdrones.

Why use C over Java when C makes it harder to write safe and sane code?

Rust makes it harder to produce just about anything.
t. don't like C/C++ myself

>Idris
Good way to go on vacation each time you need to rebuild anything.

Academic bullcrap, not meant to be used
Rust is not a VM language
This

No, he's actually right. They specifically call it UB.

this desu

samefag

I'm not sure if you'd like Rust. Its syntax isn't exactly clean. Personally I don't care about that.

Rust seems more sanely designed at the very least.

>the one that programs in low level languages only
Can you tell me your favourite low level language?

Reminder every programming language, even assembly languages, are pure abstraction.

programming languages are supposed to make programmers' lives easier, so why use complicated languages like Haskell or Idris?
there is a time and a place for any language, Rust and Java have their own
example? the only weird syntax feature of Rust I can think of is the closure syntax copied from Ruby but fucked about for some reason

Wrong, see ISO 9899:2011 or 9899:1999 at 7.1.3.1

>complicated languages like Haskell or Idris
This merely confirms that Rustlets = brainlets.

::mut & shit

Both languages are autistic

absolutely beatiful and sane usage of different symbols to create readable code.

>I took one community college course in C
>Look at me everyone, I'm hot shit

It does, that's why I'm learning it right now. Some cool features are:
-immutability by default
-Result/Some type
>example? the only weird syntax feature of Rust I can think of is the closure syntax copied from Ruby but fucked about for some reason
doc.rust-lang.org/std/io/trait.Read.html#examples
It's not bad, but it doesn't look very sexy to me.

|_|
absolutely disgusting

none of those combinations appear in Rust. I think perhaps you are confused about the generics syntax, which is the same as C++, C# and Java, and the closure syntax I mentioned
looks no worse than Python to me, although that is just a bare code segment
in Rust the bare underscore is the empty pattern, throwing away anything that is assigned to it. you can use patterns in a closure or functions arguments, which is where that is used:
let _ = 1 // throw away the rvalue
let f = |_| -> { "gone" } // throw away the first argument

>looks no worse than Python to me, although that is just a bare code segment
Rust has more 'noise' like :: {} ; &
Python is on the extreme levels of comfy

I'm slowly learning C++ from stroustrup's book, is there any rizon channel if i want to ask some really stupid and basic questions?

here?

what algo is that

I just assumed this thread was for super advanced stuff

Set up ELK stack in a VM to manage my finances

Good for a quick overview, but lacks some crucial features like plotting the cumulative sum or grouping items into custom categories (or maybe it doas, but i havent found them yet).

any recommendations for a similar software? Otherwise i go back to my custom python script that does the same for practical purposes but in

>super advanced stuff
...
...
AHAHAHAHAHAHAHAHAHAHAHAHAH

there is a #c on rizon, i believe there might be a #cplusplus iirc
/list is your friend. also, of course, look on freenode
nah it's just the haskell posters

no one programs here

Most of the posters here are fucking stupid. But as a sepplesfags, you're just going to be lowering that bar further.

helping newbies with basic c++ questions is more interesting to me than language war #2324

>C++
Don't encourage people to post that garbage here.

Fettuccine's algorithm

It's a shame there's no C-like language with the sane modern features and with as little changes and additions to syntax as possible. Everything out there just ads 100 "modern features", each with it's own unique syntax.

this

Alfredo?

...

D was perfectly poised to do that, but they fumbled it.

>programming languages are supposed to make programmers' lives easier

Easier, but not so easy.
Easy languages = More pajeets and SJW

...

I can't find anything about the algorithm, it's all macaroni

What'st he difference between threads and processes apart from sharing the same address space?

I just laughed and choked on my drink because your post made me realise that literally every thread--and there have been hundreds of threads--is 90% people insulting each other's languages without any justification whatsoever and ay least 2% anime posting

that's it

Sup Forums is a process, you're in a Sup Forums thread

Choke to death, rustfag

I thought so, thanks.

thanks for your highly constructive contribution to this thread

Okay, so im just confused with something here

for (int i = 0;i < words.size();++i)
if (i == 0 || words[i - 1] != words[i])

It reads vector.words and doesn't display repeat words. What does [i-1] specifically do? And how would i go about modifying this if i wanted to censor another word, making it announce it like "***"?

the thread never blocks?

Notice how Rustposters mostly shill their languages without showing anything they've built?

[spoiler]I'm a Pythonfag[/spoiler]

c or c++?

I want to start my first language with the most useful one i guess

Threads share pid, open file descriptors, and maybe some other things.

Starting with C++ will be painful because you'll probably get confused and mess things up.

they also appear around midnight in Europe

neither

full moon in Germany, Mozzilla HQ

I'm still learning...