/dpt/ - Daily Programming Thread

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

Attached: 1561371365355.jpg (566x800, 89K)

Attached: 1547875971957.jpg (1052x1342, 402K)

C# exploosion

>What are you working on
I'm not working on anything. Stop asking this question, it gives me anxiety.

Learning Perl 5 here. Hope this leads to fast scripting. I also need to get around relearning Java and getting at ease programming in it just for the sake of it, but yeah.

Attached: Claude-GTAIII.png (308x386, 152K)

is there an alive smalltalk flavor without a VM gimmick?

shit OP

Attached: 1530472299597.png (582x800, 638K)

learning zig. It's pretty interesting what you can do with it

>not learning Perl 6

Attached: file.png (261x243, 71K)

Dead on arrival

Attached: larrywall.jpg (1619x2024, 1.44M)

Perl 6 has nothing to do with Perl 5 though. I'm learn it for two reasons and one reason is to be able to read legacy systems, which is an important task, and Perl 6 is pretty much not good for that. So Perl 5.

>she doesn't know about the third day

I WANT TO NAKADASHI MEGUMIN

this is the most wagie post I've ever seen

Perl 6 is the future, stop denying its turn.

Considering that the language lost its edge when perl 6 was announced and that everyone in the perl community found that perl 5 was better, not really.

>everyone in the perl community found that perl5 was better
but that's wrong

Both Perl 5 and 6 are dead; completely decimated by languages like Python.
So who fucking cares?

Attached: 1561544563636.png (850x1200, 646K)

>old boomers resisting change
Wow! Who could have predicted that one.

But they're simply not the same language, dudes. Perl 5 and Perl 6 are as different as Perl 5 and Python at this point. They're just nothing alike.

Plus Perl 6 is buggy as shit and I'm not learning Perl 6 until it's at least stable and left infancy.

(define pi 3.14159)
(define (explosion_area radius) (* pi (* radius radius)))
(explosion_area 15)
706.85775

Attached: structure and interpretation of explosions.jpg (550x310, 32K)

I don't believe you've actually used Perl 6 and you're just repeating boomer shit said by retards who hate that their language finally advanced and gained readability.

>using _ in lisp symbols

>Perl 6 doesn't look like Perl anymore
>"It's a good thing" says the retards that didn't like Perl 5

What an unexpected outcome.

Attached: 063_-_VF3T3yw.gif (340x340, 134K)

>Make fixes in one branch
>Submit merge request
>Work on another branch while waiting for code review
>The changes aren't there

This really trips me up. Is merging the submitted branch with your local branch a really bad idea?

>write some small program at work to explore our git repositories and analyze relationships and dependencies between them
>thought it was insignificant, didn't even bother to VC it
>huh, some of the code here could actually be refactored into a small library and be made useful to other people
>start refactoring
>shit breaks
Fuck why didn't I write tests and version control for this shit, why?

>oh know they added new features that are readable
>better hate it because now people can join my secret club house that wasn't even that hard to get in to begin with

Don't worry shitpost, if you knew anything about Perl 6 you'd know it still inherits the shitty unmaintainable crack pot of a job that was Perl 5, but since you're just repeating boomer shit you read off r eddit you have no clue. Enjoy being a wagie working on those legacy systems.

The only similarity Perl 6 has with Perl is the name.

Imagine having your language replaced by Python and Go. Lmao.

>thought it was insignificant, didn't even bother to VC it

I did something similar last week. Last time I make that mistake.

Yup, confirmed you're a shitposter that knows nothing about Perl 6. Filtered.

so? because it's different users won't like it?
also it's not as different as you imply

>says the retards that didn't like Perl 5
t. imbecile who knows neither
also acknowledging faults isn't the same as disliking

Attached: 1554352186770.png (450x416, 207K)

I will use - next time user-sama.

(define pi 3.14159)
(define (area radius) (* pi (* radius radius)))
(define (explosion radius) (display "megumin explosion area: ") (area radius))
(explosion 15)
megumin explosion area: 706.85775

Attached: megu.jpg (1024x674, 63K)

return to hacker news

Perl 6 is an elaborate joke and will never replace Perl 5 because the language is literally designed backwards and has just nothing to do with Perl 5. How is that a controversial statement? This is not the same as Python 2.7 and Python 3 where only a few things change, the language is literally designed differently and requires a different syntax to work.

>using lisp
yep, that's the problem

>learns a dead lang already replaced by a myriad of memes
>b-b-b-but perl6 won't replace perl5

>megumin programming in anything remotely safe
not having it.
she's gonna blow up everything with no survivors in the unsafest lang possible.

Shut up user he's a wagie and needs to maintain those legacy systems from the 70s

Attached: file.png (1024x819, 553K)

I have no programming experience beyond light use of Locomotive BASIC in the 80s, I would like to learn LISP.
Where do I begin?

ANSI Common Lisp
Skip the SICP meme

Wonderful, thank you.

The world needs people like me, you know? People that understand programming and can save the world from horrible shit that was made a long time ago. You have fun with your whacky new memes that come out each year, I'll do my thing.

>the world needs people who want to enable bad behaviors and shitty written code
Literally cancer.

LMAO
yes you're the hero this world needs
ask for a role in the next avengers while you're at it

Attached: 1543724075333.gif (271x226, 99K)

>got assigned to a different project
>terribly managed code, changes are horribly documented, releases don't include what tickets or bugs were fixed
>no main branch on git, it's like a fucking octopus
>has 10 different versions, that should only differ in GUI, but actually have completely different code
>most bugs were fixed in one version but not the other, and this has not been documented at all
>2000 line long files everywhere
>business logic written into WinForms code

I have only been at it since Monday, but I'm slowly going insane from it

How's your workplace full of pajeets coming along, user?

>wagie thinks the world is just perl and pajeets

this is why i can't take wagies serious when they talk about "the real world". Too many horror stories like this come up way too often.

>change of topic and ad hominem
lmao@Perlosers

Code as data. Data as code.
The circle is complete.

I feel bad for you all who do not. ]

Those horror stories ARE the real world. That's how it is when face with any even moderately old codebase, regardless of the language that was used. And if you try to change how things work you get fired.

Eval and apply are as yin and yang.

>data as code

Attached: 7306264302370.png (940x934, 29K)

I'd say the world is the difference between java and people that can think. Nothing to do with Perl actually. It's just that pajeets exploit the market by doing stuff that rots the brain. And I don't want my brain to rot.

You don't understand

#include "io.h"

void run_tests() {
return 1;
}

s32 main() {
u32 len, slen;

if (run_tests())
puts("all tests were successful");

u8 *string = malloc(1

Attached: megumin.jpg (1920x1200, 1.8M)

>you don't understand t. 10^10^100 IQ

Attached: 3619906182223.png (436x361, 192K)

that's a bit more like it.
now we need asm and no microcode protections to actually fry components.

>s32
>u32
FrozenVoid is that you?

No, but I guess like him I find the default type names ugly.

Hi it's me the dumb dumb I need help with Rust again

Instead of having the program end when the 'hp' variable hits zero can I somehow disable anything from happening when 'attack' is called?

Attached: programmingnignignigng.png (478x488, 15K)

dump rust

>rustilian

>Rust

If Rust didn't start off with the CoC and LGBT shit would people hate it as much? Is it mainly just Jow Forumsfags that hate the language?

lad, you should look at godot and Godot Script, seems like something you'd prefer more.
But you need to introduce player states.
No, it butchers linear types, and is ungodly to write and maintain with 400 char lines of >'"[] soup every other line.

>I don't want my brain to rot
>learns a deprecated language full of things even java managed got right
I'm not even hating on perl, it introduced lots of novel things in the mainstream but it got so many things wrong, it's death is only natural

People still support C++ despite it being even more of a syntactical mess.

yes

lol no
lol yes

I'd argue rust and sepples are neck and neck in disgusting syntax, with rust sometimes coming out on top. It's crazy how they learned nothing from sepples, and made a language arguably even worse to write and read at times.
THAT'S the main reason people are turned off of rust. If it wasn't so disgusting, most wouldn't care about the politics, but add that with the politics and you have one of the most off-putting langs to date.

I'm only learning perl because it's a fast scripting language user. It's better than Python in certain areas that I specifically want to work on. I know Python as well, I just treat Perl as a supershell language and perhaps something to get things done quickly in webdev. It's probably a bad language for anything that needs to scale, which obviously Java is better at.

I realized I'm more of a toolkit programmer. I use languages for specific things. I don't like doing everything in one language because I'm aware of the limitations of languages and doing everything in one language would mean I'm not efficient as I could be. Hence learning Perl is a worthwhile experience for a very specific set of tasks. Maybe that makes me look like an idiot for a lot of people that love to spend their life learning one language, but I just can't do it.

Attached: 3989643+_4a1f28f77c26c33146da08329e50b1f4.gif (212x188, 231K)

>I just treat Perl as a supershell language and perhaps something to get things done quickly in webdev. It's probably a bad language for anything that needs to scale, which obviously Java is better at.
give nim a look, main is implicit so you can write really script-style shit in it. And it has a first-class js backend.

>webdev
It's time to go back to your containment thread.

this. I thought it was literally impossible to make uglier syntax than in sepples. Until I've discovered rust.

no bully c++. it's nice

WPF is fantastic. I wish it worked everywhere

Attached: 3669604008863.png (570x751, 1000K)

>fantastic
>doesn work everywhere in 2019
Then it is not fantastic and you should kys yourself

T std::bool b -> Aa :: std::vec name ; cout

Attached: 1561299316554.jpg (548x548, 64K)

>kys yourself
summer sure is on maximun power

What's the difference between a good and a bad java programmer?

I bet you can't answer that one huh?

Attached: obama wtf.gif (244x220, 732K)

First is white, the other is a pajeet.

a good and bad programmer
high iq and low iq

Attached: animu.png (149x148, 58K)

>Maybe that makes me look like an idiot for a lot of people
no, what makes you look like an idiot is actually thinking you're special some special snowflake

Attached: jesus christ how horrifying.jpg (493x353, 96K)

IQ is a meme

the bad one is employed

t. newfag

t. low iq brownie

Retard

How the fuck did people program before C?
Writing everything in assembly seems unfeasible past a certain point.

t. zoomers

Software wasn't as complicated as it is now back then.

patience, planning, and lots of time.

>pot calling the kettle black

WPF sucks dick, but every other GUI environment is worse

took a lot more time, software was also a lot more buggy, also you kind of get used to it

A quick question to the C bros
Is it better practice to put comments for describing the functions in the header files or in the .c files?
Any template / style guide I should use ?
This is for an assignment - small project and I want to make a good first impression

Programs before C were basically "add two numbers then print the result"

If you're writing comments that you did something wrong.