/dpt/ - Daily Programming Thread

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

Other urls found in this thread:

youtube.com/watch?v=B-Xo2SHJiYE
cplusplus.com/reference/cstring/strtok/
cplusplus.com/articles/LACRko23/
github.com/andlabs/libui/issues/274
twitter.com/NSFWRedditGif

good pic, cobber

First for the Danish gnome

holy shit

did you know this

did they even show it to you in school

youtube.com/watch?v=B-Xo2SHJiYE

Make a good thread. Ditch the stupid frog poster

THANK YOU, BASED EGYPTIANS

Sixth for Stroustrup is probably NTRing that hapa lanklet with his BPGF (buxom programmer girlfriend)

Is it bad practice to implement message passing over DB?

Is it actually possible to split a string based off multiple repeating delimiters using only a fucking string method?

>multiple repeating delimiters
what

No they didn't show this.
The reason we do long division and carrying etc is because its consistent into the fractions.
You could of course do this, get your remainder and then do the normal way.

Most of the world tends to gather around single generic solutions though. And as you'll notice this method has you remember more numbers than the normal system. Even if they're trivially deducible.

Also what's this with killing millions in the name of the Gregorian calendar?
Never heard of it. Sounds like typical American sensationalism.

Imagine a user entered paragraph that has a repeating delimiter beginning at every sentence. So something like a blank space after a period to indicate the beginning of sentences and a period to end the sentence.

dumb frogposter

and I would need to save each sentence into a variable
i.e
This is the first sentence. This is the second sentence.
String sent1 = This is the first sentence. ;
String sent 2 = This is the second sentence. ;
etc...

long division can go fuck itself

working on a shmup using c++ and SDL2

Why do we have frogposters in this thread?

dumb anime poster

I wanna try PyTorch but I'm a wincuck. What do?
I can switch but I need to migrate all my torrents

...

Why is Python so comfy, Sup Forums?

>don't have to worry about data types

>no ceremony cluttering up development

>interpreter lets you test out experiments worry-free

>makes you employable anywhere

>inspires the languages of game engines like Godot

>source code actually readable

>can import literally anything

>you can learn it in a week

Why do you hate Python, Sup Forums?

god bless you loliposter.

>What do?
IDK, but what are you seeding that's so important?

>r*ddit spacing
b2r*ddit

please no loliposting

keep it to safe and sane like

enable Hyper-V and make an Ubango VM

regexes bruh

Static typing is outdated and there's literally no reason to choose it over dynamic typing.

The only reason it's still in use is because petty neckbeards and academics want to make programming more confusing and inaccessible and make themselves look smarter.

I'm currently writing an introductory programming book on Python where I dispel all the disinfo I've encountered in my time as a professional programmer. I'll post Amazon links in /dpt/ when I'm done. I've published other books on Amazon before; my name is D. Weber, in case you've read any of them.

Please stop posting this questionable content in /dpt/. I'm requesting this earnestly.

oh man i wanna gorge myself on food like a lardass

strtok

I'm on a couple of private trackers

Damn, I didn't know you could use CUDA through a VM like that. Thanks user. I hope the overhead isn't too bad

I must always loli-post

what the fuck is dynamic typing? like you have type information but don't use it?

B-but user, I'm posting using Syntactic SugarĀ® that makes my code super-easy to read!

Make a linked list and use strtok like the white man you are
cplusplus.com/reference/cstring/strtok/

Why is there no language inbetween C and assembly? With the syntax of assembly, where calling a function works something like this:
>set up all your arguments somewhere
>get a pointer to the head of where you put them
>call the function
>the function is in charge ot getting the arguments, no types or shit to worry about
Top comfy

Are you Aussie by any chance, mate?

Thank god no!

all types are handled for you and types are easily cast behind the scenes or with little work.

The most Aryan method

Write it if you think it's a good idea. You could be the next Bjarne Stroustrup! Call it C--.

>defragment
>shrink windows partition
>create new partition
>move all the torrents there
>remove windows
>install linux
>mount torrents partition at /torrents or something

>Are you Aussie
they literally can't even watch legal DFC.

>all types are handled for you
I don't know what that means. types are for programmer convenience, they allow you to easily prove things about a program to yourself.

>tfw auscuck

C-- already exists. Hmm, it seems really interesting. I'll give it a try, thanks.

Are you being passive-aggressive or genuinely don't know what that means? Types are very important.

That would seem to work out normally however I have to take in input from users and I don't really know what the string they input is going to be, only the delimiter

Thanks for reminding me of another myth I need to dispel in my book, asshole!

I have around 1000 torrents though, and the file path won't be the same between linux and windows right? I don't want to add them one by one and point them to the directory and recheck each one

How about --C? Good luck, seriously. If you keep it up, please post about it in /dpt/.

A real white straight male sees no problem
cplusplus.com/articles/LACRko23/

your book is gonna suck, faggot

Is JavaScript the perfect language?
>can write variables however you want, if it's a number it's a number and you can do number things with it
>don't have to worry about syntax, most stuff is valid anyway
>blazingly fast thanks to V8
>easily get a job, JS programmers are high in demand thanks to web development
>can run it everywhere: on the server (node), desktop (electron), mobile (react), and browser (jquery)
>don't even have to learn it, trial and error, an up-to-date API reference and a few hours is enough
Does it have a single flaw?

>Touhou
shit
Shipfags master race

Can't you select all -> move torrent and then choose a new directory?

>Forgot my image

You must now post your favourite Touhou and your favourite language.
>C++

Sorry for breaking your link, here's a (You).

good 2hu taste
bad language taste

You can't compile dynamically typed garbage without bolting on shit that should never have existed

I want to get smashed by that toohoo

Protip: All 2hus are lolis
Please fix your image

>don't have to worry about data types
No actually YOU have to worry about data types. Unlike statically typed languages where you wouldn't have to worry about it. You leave that to the compiler.
>no ceremony cluttering up development
You have that in python projects too. Its just more overt. Which doesn't mean automatic mind you.
>interpreter lets you test out experiments worry-free
As do compilers?
>makes you employable anywhere
Not really
>inspires the languages of game engines like Godot
They made their own language. Horrible idea. Even worse to base their language in python.
>source code actually readable
You can't read?
>can import literally anything
And it'll mostly be poor solutions for your problem at hand
>you can learn it in a week
Same goes for any simple language. Python certainly isn't one.
>Why do you hate Python, Sup Forums?
For all the reasons I haven't mentioned here.

Not an argument. Here's a little joke I like to make when arguing with programmer buddies:
>If what you were saying were an expression, it would have a value of NaA (Not an Argument)!
I actually wanted to fit this joke into my book somewhere, and your stupidity may have provided the necessary context. Thanks!

Rust :^)

>David Mark Weber (born October 24, 1952) is an American science fiction and fantasy author

>>you can learn it in a week
>Same goes for any simple language. Python certainly isn't one.
Congratulations, you just contradicted yourself.

Why are you responding to obvious bait lad?

Someone please explain "dynamic decoupling" (DD) to me in as few words as possible. I don't care if your explanation isn't 100% correct, as long as I can get the gist.

I'm reading 'Java in 24 Hours' by Rogers Cadenhead and the author just brought up this concept out of nowhere, and I'm really struggling with it.

>C-- already exists.
Link to docs other than wiki

No its not a contradiction.
Its an observation of anons belief and a disagreement. user never stated that the language is simple. That's why this works.
I've interacted with a lot of python people. They would certainly throw themselves into whatever situation to praise python.

Are you a fellow Brit awake at 3:30am or just stealing our lingo?

Nah just a burger who's browsed /brit/ for too long.

Reddit trolls harder than 4chen

>tfw K&R, Expert C Programming, and The C Reference came in this week

Should have gotten some good ASM books instead.

does anyone here have any experience using gtk_icon_view

Not many UI devs lurk /dpt/

dont people make guis for their own projects though

I don't think a RISC-V ASM book has been made yet.

So what's the best way to create a cross platform UI without having to resort to Electron. Is there only Qt?

C++ fags prefer Qt, C kids usually use ncurses.

IMGUI, WxWidgets, LibUI etc

You can also use GTK+ or WxWidgets...

Qt Quick 2 is the only reason why I am learning C++

OKay boys I started reading learn you a haskell i'm not sleeping until I get to monads

let's learning

i just like how GTK2 looks desu

Let's go, boys

>Java in 24 Hours
Seriously? I've never even heard of dynamic decoupling, btw. Has anyone else heard of this?

What the best choice if I'm trying to balance easy to coding and performance? The UI isn't that critical to spend all my time on, but I do what it to be native.

I'm just saying that's usually how it goes in /dpt/

Libui

>Last commit a year ago
I don't know

You can't compile as efficiently without types.

github.com/andlabs/libui/issues/274

Sounds the creator is getting bored of the project.

>Always remember, with OSS you don't owe anyone anything.
No wonder year of linux is never. Fucking losers

wxWidgets is just a wrapper so it's always native, might be worth keeping in mind.
>writing a gui
>not just writing a cli interface and then bolting together something in visual studio that interacts with it

Daww, what a sweet guy.

Then why is C so much faster to compile than Idris?

Without revealing too much about my project, a blueprint drag and drop system for reusable components. So a complicated snappy UI is actually pretty essential

I drank some nyquil to help me sleep and I realize I'm starting to sound like a pajeet. Good night anons