/dpt/ - Daily Programming Thread

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

Attached: 1557798123717.jpg (1542x2048, 273K)

Other urls found in this thread:

nim-by-example.github.io/types/enums/
benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fast.html
twitter.com/NSFWRedditVideo

Me on the left.

Post your programming setup!

Attached: 1558632133383.jpg (1920x1034, 363K)

nth for Nim!

>What are you working on, Jow Forums?
I patched Android to get past a limitation with MPEG4Writer.java. I have been recording for about 2 hours when the previous I could record maximum was 30 minutes.

I am about to rewrite my Android program to C++ and have my program run natively.

Can nim not do constants or something?
What a shit language

>tran
>wangblows

>>discord

>filename

yes?
nim-by-example.github.io/types/enums/
or
const x = "abc" // note Nim is not C/C++

>Nim is a systems programming language
>garbage-collected language
This language can't even go a few words without contradicting itself on it's own website.

GC is fully (yes, fully, not fully***** like D) decoupled from the language and its std.
You can mix and match or never invoke it if you wish.

Am I contributing to the problem by using Haskell?

Oh, so it's only sometimes a systems programming language, when you decide to disable the GC.

Does it at least have RAII?
If not then it's complete fucking trash.

it's opt-in GC, in only invokes when you invoke it.
yes

Ok, that's nice and all. however,
>python syntax
into the trash

You can turn on curlies instead of whitespace if you wish.

/dpt/ just hates every language huh?

/dpt/ is not one person, dumbass.

yes I am

Not Haskell.

Haskell is pointless garbage.

Just learn c++ and I guarantee you won't have trouble getting a decent job.

Unironic thoughts on Rust?

gay

does the guy who wanted to install haskell on windows still need help? just woke up

any book that's worth its weight in salt?

Its kind of nice, a child of C and SML, but don’t tell dpt that or you’ll trigger them.

Attached: 591824D6-B58E-4994-95FF-3724566A1375.png (551x713, 515K)

Valhalla

Attached: 1BDD59F9-0049-4C7C-B2D2-D905BE544A0D.jpg (1224x1516, 359K)

If you want to write C++ for a living I'd suggest reading Dante's Inferno first so you know what you're in for.

Pffft, Jazzy as a child of Haskell and Assembly is clearly better than Rust. It’s those white genes from its parents that make it superior.

fuck off schizo

>schizo

>fuck off

Ya but I actually got a job working with Rust for a real company developing databases. I don’t even know the language that well.

Attached: 55F317E2-BA9F-4D96-A2E1-708AEF395594.jpg (1920x1080, 162K)

Attached: go sort function.png (582x231, 24K)

what does "panic" mean

It's an exception that you can't catch.
It crashes, and you can't recover.

more expressive types could have prevented this

why not just throw an exception?

It has a panic attack and crashes the whole program.

Because go doesn’t have them of course
Kek

My favourite part of sepples is getting a 10 minute smoke break between test compiles.

Attached: FD1B3D88-1940-4E59-ADBA-3B8E5C4FCA58.jpg (446x500, 76K)

Is D going to throw out the Ctards on the day of the garbage collector?

If you don't patiently sit there staring at the build messages while it compiles, you're not a real C++ programmer.

Yes, along with itself.

The better question is why not just check it during compile time.
But generics are evil, so you can't have slice.

there was an entire thread with a guy arguing that go had something called "interfaces" which replace 99% of the use case for all generics

I’m not. They just put me here because I listed C/C++ on my resume :)

And yet it doesn't replace this use case.

I mean they can if you don’t mind turning Go into a dynamically typed language and paying a massive performance hit for it. The sort.Slice and a bunch of parts in the standard library use it as a workaround.

The point of generics is that it's a compile time feature
Go take your overhead somewhere else. This is the programming thread.

shoo sepplestard
the point of generics is type safety

"safety" is for retards

and the point of type safety is to have it done at compile time to improve performance.

"type safety" means not having to spam type assertions everywhere
it's a productivity tool, you're the retard

Is it a good idea to work in more than one project?

wrong

It is the only use of types.
Safety is a performance feature.

>"type safety" means not having to spam type assertions everywhere
no it doesn't

types exist for a variety of reasons

Are types even real?

Types are real but Reals aren't

please end me

me->end();
me = null;

Do I lear

Attached: 9A1211CA-E6FE-4797-853A-E1D52F5936E3.jpg (306x344, 42K)

good luck writing generic go code without type assertions then

you guys got a discord???

Attached: haha.jpg (351x468, 50K)

No

why the fuck would I ever use that shitty language

Fuck off discord tranny. And take your C and Haskell shilling with you.

Golang is the only good language

Attached: AAYRON.png (310x468, 188K)

>trannies
>C

Trannies are all about js frameworks and guilting people out of project leadership roles. They don't shill for languages they can't even use.

What are 3 things you like about golang?

>mfw I find out this guy didn't create the C# language
What are the odds that a completely unrelated guy with that last name would end up making a huge ass official book on the topic?

Attached: 41-zCuNSSkL._SX258_BO1,204,203,200_.jpg (260x319, 15K)

I think the situation with Rust proves otherwise.

Special snowflakes use C to pretend their are so smart (but still don’t understand C++)
Professionals just use C++.

>tfw code compiles

Attached: 1525661500856.png (1280x720, 299K)

maybe that's just his programmer name

Trannies are failed men, and I would say social rejects would likely go through a phase where they code in C to feel HAKERZ N STUFF LOL XD about themselves

rust finally btfo's sepplets at their own game
benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fast.html
also, F# is fast and qt

I just wanted to thank the user who recommend me wxwidgets a few weeks ago. I decide to give it a go and in the past day I've been using it I got so much stuff done I can't believe how this library isn't more popular. This shit is better than Qt, GTK+, WPF, UWP combined, and free of bloat to top it off.

>learn from August 2018 to January 2019
>I have since then been learning Javascript and C#
>still stuck on the basics for both languages
>can't do shit on my own without following a tutorial
>there's a C# web developer + Javascript internship in my area but I have no portfolio to show them except the tutorial folders I uploaded on my github. Someone will likely snatch that chance from me soon.
Give it to me straight anons. I am not gonna make it, am I?

Attached: lu.jpg (600x631, 68K)

>*learn C

also forgot
>am 28 and never had a job ever except freelance translations

No one cares or will look at your github unless you’ve already made it. Just apply.

They're real during compile time.

I’m so bad at writing tests that my program being tested is correcting my incorrect test cases.
How do I escape this?

Attached: AE003B08-FBF6-41E9-A9F5-2C468E81B85F.png (276x256, 57K)

Don't write tests.

write tests for your tests to verify that they're correct

I wish using cmake made sense to me.

I shot the sheriff..
But I didn't shoot no /dpt/

Attached: abEw4JO.gif (320x240, 273K)

Remember math class and proofs? It's time to get out the good old pen and paper and prove your algorithms are correct without writing code.

so how do they pick who to hire then? Do they do quiz interviews with literally everyone?

>August 2018 to January 2019
You're just getting started. It's fine to still be on the basics if you're only a few months into it. Keep at it, all you need is more practice. And I don't mean reading tutorials or watching videos, I mean write code.

That's how it went to me.
It was only for junior developer though, but it seems you're not in a position to get anything better either.

Go doesn't even have a proper sort function.

>Remember math class and proofs?
what year do they teach proofs?

Tests should be simple and short, so writing an bad test is not a big deal.
Also, I think writing an incorrect test shows that you had a wrong understanding of your own code, and clarifying that misunderstanding is more valuable than the test itself.

1st or 2nd grade

>August 2018 to January 2019
Well technically in total it's almost a year, that part was only about learning basic C
>Keep at it, all you need is more practice
t-thanks fren
> I mean write code.
I have a great idea for a relatively easy to make smartphone app/game, but I feel like it would take too much time away from learning skills that can land me a job (since most of them are web-related). I am 28 and I feel old as shit, if I don't get a job soon I might never get one ever and completely mess up my life forever. That's where my anxiety comes from basically.

Yeah that's what I search for basically, also internships because it seems to be the most easy-access.