/dpt/ - Daily Programming Thread

Previously: What are you working on, Jow Forums?

Attached: 1548382364105.png (577x814, 612K)

Other urls found in this thread:

github.com/Zevv/npeg
twitter.com/NSFWRedditVideo

Lisp is the most powerful programming language.

nth for haskell tiddie monsters

Attached: 1558606940346.png (850x1200, 938K)

second for C

nth for finally going to try ATS

Haskell BLOAT
>40 dependencies
What a Great image OP!

Working on a game designer at the moment, kinda like Game Maker's. Got a bit carried away with my AI project for college. It'll be a simple IDE that contains easily configurable AI features such as state machines, path finding, fuzzy logic and the like. It's still in an early stage so it still looks pretty empty.
checked and based

Attached: gd_0.png (995x610, 17K)

What programming language would Grea use?

Haskell because it has bloat in all the right places

What is that big container that holds windows called?

someone please help me I've been stuck in this limbo for fucking ever of just doing random coding puzzles to get better at programming, but when I feel like starting some project to create something, I notice that none of that shit helps me understand how the development of real software works.
say, for example, I wanted to make a messaging program. where the fuck would i start? no clue how any of this shit works. I feel so lost and tutorials online are all walking you through a very linear process and I end up feeling no better than before.

>江添亮のC++入門 単行本
absolutely BASED
how many c++ programmers are there in the holy land? i bet they are mostly game dev

explicit memory language.
still stuck tryin to figure out how to leverage a type system to manage memory storage locations
it'd have to be like hyper-generics or something

what the fuck do you do once you get a job offer?
say hi thanks? uhh ill report back in a moment after i talk to mom?

שלום
I'm from the holy land. There are many C++ programmers here. Lots of embedded and simulators for the military use C(++).

Read a book, nigger

>trying out some new fonts kinda haphazardly
>find one from an article, which links to the font's website, which links to a github installer
>wonder why a font would even require an installer as i press "install"
>installer says "hey, restart ur pc btw :)"

maybe i'm paranoid and retarded but every time something like this happens to me, i wonder if i've installed ransomware or some shit. scan didn't show anything but time to back up all my shit i guess

there's definitely been a bunch of research into this but i can't remember names
read advanced topics in types and programming languages

HOLY based, i didnt know palestine have internet

It's a Panel. When you create/open a sprite/object/... , the main controller will add a window to it.
If you're getting errors trying to add a window to the panel, set TopLevel of the window you're trying to make to False.

what is this qt from

What is palestine?

from GOATY

Attached: 1551325362597.png (850x1202, 1.16M)

based
I love hummus

Oh, cool. Thanks.

I hope you atleast read the installer's source to make sure it wasn't doing more than copying font files to your fonts folder.

watch AOTD manaria friends

searching these acronyms produces worthless results

>not knowing the acronyms
fuck off newfag

kys

:(

Search "Manaria Friends"

So I've hit a wall that I'm not smart enough to climb over, I have a struct outlined in a program and I want to use fread to read from a text file and use the data to populate the variables in the struct. The problem is that the variables are of different types (1 char and 2 int variables) and it seems like fread is simply storing all the data into the char data type. Is there any way I can get it to properly store the data into the proper variables? I just need a hint.

Attached: Distraught landlady.webm (324x438, 69K)

my future wife anm. is so cute

Attached: 1567037765100.png (900x900, 308K)

Why are you being mean to him?

I can give you headpats user, im gonna protect you from them

kill yourself

try fscanf

Palestine is the parts of Israel that aren't kosher.

my current wife, Grea, is cuter

Attached: 1560826085128.png (850x807, 912K)

The country some people refer to as "Israel".

Calm down, with such a childish behaviour. It's just a anonymous card trading forum.

Also:
AOTD = Anime of the Day
The picture is Anne from Manaria Friends, like somebody said

wrong pic

Attached: 1557266877294.png (850x1352, 1.58M)

well what does a messaging program need to do? sit down and write down the functionality of a very basic one.
look through the list and think "what data needs to exist to do this?" and begin thinking of your data structures.
then you need to write functions that operate on them to achieve the functionality you want.
so in this case you probably want a struct (or your language's equivalent) for messages to group together message time, content, sender. you probably want an array to hold them all.
once you've got that you can write functions to render the message array, create a new message, send a message to some server, and so on.

tfw no good combination of C and Haskell style language
that's literally me though. can't marry myself.
*decade
probably should've said AOAT

>have text file
>reading in text
>help: this is all text ???
parse the text. Find strrings that correspond to values of certain types, and then generate the value given the string representation of the value.
None of this is magic. Just do the work. You've got "10" and you want an int value, then '1'-'0' is 1, 1 * 10 is 10; '0'-'0' is 0, 10 + 0 is 10. Congrats, you've parsed it.
Of course atoi already exists so you can get a lot of help.
If what you're parsing is simple enough, sscanf() (don't use scanf() ever) might suffice.
If what you're parsing is complex enough, you might want to use flex/bison, assuming you're using C and can't use something nice like github.com/Zevv/npeg

All of Israel is kosher, friend :) Hopefully the Complete Israel plan comes to fruition so we have more kosher space
Oh so Israel is also called Palestine? Never knew that

D

Attached: lord of d.jpg (416x416, 45K)

>C and [generic FP lang that surely isn't lazy af] style language
ATS and Rust both approach that.
>
the real error here was to interpret "holy land" as "israel" when it was obviously "Japan".
And, just compare Japan and Israel in your mind for a while. Which one's current conditions most resemble a holy land? Which one's current conditions most resemble a cursed land?

You can write C++ in a style similar to haskell with trailing return types, lamdas, and optionals everywhere.

Grea isn't dead though
D is a totally dead programming language

Attached: Lady of D..png (400x586, 472K)

implying

Sorry I mean GHC/Haskell not """Haskell"" (1998)

>saying "Haskell" and actually that crap language rather than "some kind of modern ML language"
disgusting.

My neighbor does software for servers and wants to teach me Java. What do you think, /dpt/? Should I accept?

what?

But Israel is the holy land. Why would you think Japan is holy?
What's wrong with Israel's conditions(other than that its not complete yet)?

>My neighbor does software for servers and wants to teach me Java. What do you think, /dpt/? Should I accept?
I wish I lived next to Saint/Guru Durgasoft

Attached: 1568735914333.jpg (450x399, 140K)

Israel is the unholy land

Far from it. Is the language that bad?

This seems to work, though I neglected to mention a bigger issue, the text file is going to serve as a catalog of sorts, so I'll have to come up with a way to "scan" the entries to get the right data, baby steps I guess.
I'll give this a try then. I want to try and keep it as simple as possible though.

Thanks, anons.

Get a load of this guy lmao

Learn about Web Servar and Application Servar , please sir

don't pay him in sexual favors. Otherwise it should be fine. Why not?
>I know you gave me a really easy mental comparison task
>but I've got three social media windows open and I don't know how to think anymore
>just tell me bro
OK, if you're a tourist and you go to a holy land, from a non-"holy land", would you expect to be safer or less safe than normal?

Please stop. I'm crying right now.

Haskell isn't modern, it's older than Java.

>you said something with "modern" in it
>so Imma tell you about modern stuff
hey I notice you mentioned Java
did you know that it was originally supposed to be called 'Oak'?
haha we're having a conversation now

After 7 years in about three companies I haven't once met anyone talk about design patterns who wasn't full of shit. They are just trivia for OO brainlets who are too dumb to talk about CS theory, so they pray to the holy book of patterns instead.

Less safe because our holy land is under attack

You're not even talking to the same poster schizo, so take your meds k.

Attached: 1567363930237.jpg (640x480, 52K)

what does CS theory have to do with design patterns

Any good pdf readers for windows that dont have much ui elements?

>study like mad
>make good progress; promising path is starting to take shape, and my timeline is looking greatly accelerated
>last few weeks, slow to a crawl; feel like I did when I was doing nothing all day
>what's changed?
>I've gone back to spending inordinate amounts of time jacking off, whereas I wasn't jacking off at all during my productive period; spent all night last night looking for a new fap

You are fighting off your porn addiction, right, /dpt/?

this is the programming thread, are you in the wrong place?

pipe operator in C++ std library when

Hopefully never. If C++ wants this it should introduce a new |> operator like in F#.

C++ does not need more ad-hoc functional tools. FP in C++ is already fucking abominable, and pipes won't help it. It's better if UFCS is implemented

sumatra

UFCS is an such a stupid idea, like it was invented by people who don't understand OOP but had to implement the useful parts of it anyway

Not even remotely.
I just use break timers

UFCS has absolutely nothing to do with OOP, we're talking about universal/uniform function call syntax.
You know, the feature that actually allows FP to be pleasant in a non-ML based language. So C++ could actually have a hope at being multi-paradigm like D.

OOP is a stupid idea

UFCS just demonstrates how heavyweight C-style syntax sucks balls. Modern Lisps do it better with threading macros and FPLs do it better with operators like & or |>.

UFCS is the aping of method call syntax of OOP

Why is rendering text so fucking insane?

Design patterns are a software engineering cargo cult. They are recited be OO acolytes who couldn’t handle undergraduate theory courses, and specialized in software theology courses instead.

text has alot of nuance

Jesus, imagine having your brain rotted by C++ so badly that you literally have POO brain.

>UFCS has absolutely nothing to do with OOP
UFCS is just method chaining with free functions, the semantics are specifically piggybacking off syntax that is only useful with OOP.

>method call syntax of OOP
>OOP is just syntax sugar for passing the thing itself as a parameter

what the fuck are you talking about

C++20 ranges

>"X of Y"
>"oh so you think X = Y, huh"

no UFCS apes from FP, which predates OOP you dumb poojeet.

I want to peg my ass on that dragon-traps tail (no homo)

Who are you double quoting?

It isn't syntactic sugar in OOP though because the method being called depends on the class of the object that's calling it. Which is why it makes sense. UFCS is syntactic sugar, so it makes no sense

>no homo
what you can't say at this point is "no anal degeneracy"

>no UFCS apes from FP
you're wrong

FPLs have no need for UFCS, they have their own utilities for composing transformations. UFCS only exists so shitty poolangs can do the same thing.

That's not a trap you faggot
That's just scoping
Class::method(classObj, ...)