/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1548654543714.jpg (1280x1430, 376K)

Other urls found in this thread:

youtube.com/watch?v=uNjxe8ShM-8
esolangs.org/wiki/Parenthesis_Hell
en.cppreference.com/w/cpp/language/rule_of_three
twitter.com/SFWRedditVideos

>What are you working on, Jow Forums?
Still learning Haskell, hopefully I can finish Haskell book this summer.
As much as I enjoy it the sad part is I still feel like I'm so far away from being able to do anything proper with it it's crazy.

You know, I used to be an OOP advocate, I was a true believer. But once you realize how terse and powerful functional programming is, it's hard to look back. I'm not saying you need to transition entirely, but using functional features in multi-paradigm languages is like taking off the shackles. It's like Lincoln Logs of transformation, so easy to assemble and compose.

Attached: 1561303344854.png (370x136, 6K)

I forgot commas, add these where appropriate: , , ,

struct Car {};

auto main() -> int {

auto mobile = new Car();

return 16;

}

>auto -> int
stop
please

haskell is too terse imo, everything being implicit makes it quite hard to read. lisps strike a good balance of readability plus expressiveness

>readability
>(()()()()(((((((((((())))))))))))))

youtube.com/watch?v=uNjxe8ShM-8

#define fn auto

knowing where functions start and where they end already makes it clearer than haskell

I'm not talking about specifics, here. I don't care what sort of functional aesthetic you go for, as long as you employ the concepts.

define everything in sepples to rust syntax

Thanks, I hate it

You can't do everything, but you can have a little fun while you're waiting for the rest of your village to approve a new build system

()()()(()))()()()())(((((())))))))()()())))))))))(((((((()((((()())(((((()))((((((((()))((((((()))))))()()(((((()))(((())()))))))(())))))))(()))((((((()))

Lisp is bloat.
esolangs.org/wiki/Parenthesis_Hell

which general purpose macro processor is the way to go?

>I just want the technical specifications for the .stl format
>Instead I get video links and blogs
What is this bullshit

Attached: i_hate_the_future.png (1020x766, 141K)

no worse than a c derivative tbqh

your third missing word begins with an 's'.

>What are you working on, Jow Forums?
Looking into Natural Language Processing for a university project
Want to be able to see if I can identify if a Twitter account is compromised based on speech patterns and/or schedules etc
Might lead nowhere but worth a try

It was funnier in my head.

dumb normalfags who don't understand file extensions

this

currying is fucking great, every language should have it.

>Instead I get video links and blogs
I fucking hate this. There is no benefit in videos, people only do it because you can monetize them.

>Still learning Haskell
are you actually struggling to learn Haskell?

>working on montholic soulless spring-mvc CRUD app
>complain and get moved to russian made soulless spring-mvc kafka Kubernetes data transfer app
There's no end to this wild ride is there?
Is there such thing as a truly enjoyable project?

Attached: 193249357235.jpg (225x225, 4K)

currying is more trouble than it's worth tbqh, just have a decent method to do partial application and you can then live without it

Sepples was a mistake, rust is an improvement but still horrible.

Attached: 1562019631497.jpg (225x225, 39K)

example?

>Is there such thing as a truly enjoyable project?
yes. the one you really want to make and not some project for your bosses

it took me two attempts to learn haskell, and i was still learning stuff for a while after i got the language

>my mobile app or textbook summarizer is going to pay my bills
I should just make something porn related right? That's the only way to do it these days.

public class Toilet extends Seat implements ToiletInterface, FlushingInterface, SewageInterface, Bowl

What a mistake.

>textbook summarizer
I wonder how effective markov chains on a book would be at this.

>go to work
>finish your task/what you have to do as soon as possible
>start working on your projects *while* on the job
>????
>profit

I see nothing wrong here. Proper encapsulation of functionality into logical types to reflect real world problems.

>it took me two attempts
fucking lol

>Working while at work
I'd rather shitpost or play freecell

This

>make him a better programmer
Where's your OS?

is it at least a good paying position?

Working on the styles of a Wordpress/phpbb project someone else did.

Life is great...

Attached: what's wrong with you.gif (446x251, 721K)

My boss granted me an augmentation today and I'm super stoked about that but the timing is odd given that we had a talk recently in which I discussed being a tranny and he didn't know I was one.

Should I be worried???

I used a sequence to sequence nn
I chalked it down to not having enough clean data and semantic or pragmatic rules. In reality it sounded like an autist and I couldn’t bare to look at my creation

>workload ends
I don’t work in a butts in seat place. There’s a never ending amount of work, yet not a rush to do it.

>sequence to sequence nn
Neat. Sounds cool.

>Where's your OS?
Where's your compiler user?

>There’s a never ending amount of work,
how's that possible? there are X amount of task that have to be made.

Where's your dick, user?

Object oriented programming was a mistake, and I got an A in my OOP class

I don't have one. Don't change the subject, Jow Forums. He's shown to already be a good programmer, show how lifting weights has improved your programming skills.

>Object oriented programming was a mistake,
let's hear your alternative

>and I got an A in my OOP class
Thanks for alerting us that you're a freshmen on summer break.

what do I work on to try postpone my suicide

Functional programming.

Take your pills, alice.

What would assembly or machine code be considered as a programming language?

Any good tips for re-learning C++? I haven't used it in years but I want to build a shitty ass game and figured this would be a good opportunity to re-learn it.

>tfw board is filled with so many trannies any suicide post is assumed to be by a tranny

I work at an entertainment monopoly. There's multiple new features every day and we put up with it because the 'the client is always right'

sometimes i dig up dead stuff from the early 2000s and i'm amazed how much better the world was back then

Functional programming as far as possible and "regular" procedural where required.

Multiparadigm with a heavy functional influence.

>I work at an entertainment monopoly
betting/slot machine websites?

Hivemind

Attached: lisperati.png (632x492, 46K)

Like what?

>turning the CL mascot into a racist
not cool

Don't forget the rule of 3 and 5 and 0 en.cppreference.com/w/cpp/language/rule_of_three At this point in time, read every STL function that is available and understand it. Understand move operators and all of the default constructors and destructors and copy operators that cpp adds to classes.

In your mouth, fag.

>show how lifting weights has improved your programming skills
Programming improves your programming skills, but if you sit at a desk all day doing just one task you will develop brainfog and become less efficient and productive than you could be. A healthy body makes a healthy mind, if you spend just 30 minutes a day exercising along with programming your bodily health will improve, your mind will be fresher, you will be able to express your thoughts more concisely, make better choices in code, etc. I highly recommend that if you get stuck on a programming problem or start to develop fog, go on a short walk and let your mind rest, the moment you come back your mind will be fresher and you'll be ready to solve the problem efficiently.

tl;dr - stay healthy or you become ineffective, skill has nothing to do with it.

same

Attached: ll.jpg (1920x1286, 674K)

[spoiler] sports [/spoiler]

anyone would be suicidal if they only ever stayed in their dark room all day.

game servers
sites ran by a circle of friends
dead communities
lots of smaller sites in general

literally nothing stopping any of those things from being made today.
In fact web dev is even easier for mostly static sites.

what the fuck
had this image for a long time now and just realized the image is backwards

Attached: ll.jpg (1920x1286, 1.85M)

user that computer is much older than the early 2000s.

Haskell is easy, i learned it in 1 week.

Go lift some weights or something instead of developing your skills then.

doesn't matter. it's about a time that will never ever come back

>sports
what about it? you make websites for sports teams or what?

web developer?

me too, fug

yeah but nobody bothers nowadays when you can just open a facebook page / make a discord server with zero effort / can't host your own gameservers anyway
i guess it was inevitable

what does this do
f n = snd (until ((>n) . fst) (\(i,m) -> (i+1, i*m)) (1,1))

Backend for sports analytics, marketing, and viewing. Over time I've come to realize that the NFL's is a slave to the teams

I don't think I will make it guys. I have been doing courses and tutorials over and over, but I just don't see me becoming a developer able to score a job. Doing things by myself only gets me so far, and while I can do basic stuff by now there is still so much more to learn and things I just don't know anything about yet. Also I keep forgetting things I should already know, and whenever a course or project leaves the ground I am familiar with I get stuck. I don't see myself ever getting into a professional environment this way

How about I do both?

I thought it was a Russian G on the book before you said it

there's thousands of games still being played on custom servers. I get the landscape has changed. But you're being silly.

NFL's players are slaves to their owners. same as NBA. don't look them up btw

Somebody told me Python is where the money is.
Where do I begin?

Attached: PDVD_052.jpg (400x327, 26K)

i don't think i am

You are in tutorial hell.

This is not how you learn languages. You learn languages by getting stuck and finding a way to unstuck your project. Then you'll do this everytime you're stuck and you'll be gold.

family is going now so this is last post.
(\(i,m) -> (i+1, i*m)) (1,1))
applies a lambda that takes i and m, and then does what is shown in the rest.
f n =
function `f` takes an argument `n`

see you

aka. fake nostalgia

I'm with that user, I miss the Pokemon forum I used to browse back in the middle 2000s