/dpt/ - Daily Programming Thread

Angel Cooper
Angel Cooper

Previous thread: jowforums.com/thread/72297243/technology

What are you working on, Jow Forums?

Attached: 1554206042457.png (599 KB, 1702x2471)

Other urls found in this thread:

jowforums.com/thread/72300439/technology
en.wikipedia.org/wiki/Rust_(fungus)
youtu.be/KU6UFcbJcyQ
nickcharlton.net/posts/drawing-animating-shapes-matplotlib.html
github.com/datenwolf/linmath.h/blob/master/linmath.h#L368
en.cppreference.com/w/cpp/error/error_code
en.wikipedia.org/wiki/H-index
openhub.net/p/php-qt
libgen.is/
jowforums.com/thread/72292173/technology
python.org/doc/
jowforums.com/thread/72284447/technology
modernperlbooks.com/)
wall.org/~larry/natural)
design.perl6.org/).
jowforums.com/thread/72308752/technology
codersnotes.com/notes/a-constructive-look-at-templeos/

Charles Rogers
Charles Rogers

why are rust trannies so obsessed with C?

Christopher James
Christopher James

C is the big man in town so everyone attacks it. Forth and Ada forums are the same way, always making easy comparisons to C.

Adam Cooper
Adam Cooper

C is the big man in town
so C is LITERALLY the patriarchy?

Jack Bailey
Jack Bailey

I'm gonna use rust

Aiden Rodriguez
Aiden Rodriguez

For you all .NET users is there a point of using that shitty Controller Model View Layout garbage instead of just using C# as the REST backend and doing the site frontend completly separated

Caleb Hall
Caleb Hall

//boards.4channel.org/g/catalog#s=wdg

Henry Gray
Henry Gray

post yer code

Attached: scrot.png (209 KB, 920x820)

Zachary Russell
Zachary Russell

Attached: file.png (149 KB, 723x482)

Matthew Stewart
Matthew Stewart

font and palette thanks

Lucas Brown
Lucas Brown

Dead thread with people still learning php in 2019 and every third post is how do i learn html css js

Nicholas Roberts
Nicholas Roberts

not checking the return value of malloc
You should stop using C/C++. Try JavaScript of Python.

Eli Stewart
Eli Stewart

still learning php in 2019
clueless retard that doesn't know how powerful PHP 7 is
lmfao

Bentley Garcia
Bentley Garcia

Sup, /dpt/.
What's your preferred way of writing down personal documentation or project notes?

I need something to improve my note-taking workflow. I want the format to easily be edited as plain text (or have cross-platform support for the editor) and synced across devices without pain.
The best I can come up with is "a bunch of markdown files in a folder".
Is there anything better out there for me?

Attached: 1280px-Markdown-mark.svg.png (11 KB, 1280x788)

James Rodriguez
James Rodriguez

No point learning a language that is 100% web oriented when you can learn others that will do the backend job as good as PHP AND allow you to write a bunch of other things like C#,Java etc.

Isaac James
Isaac James

just use plain text document

Wyatt Watson
Wyatt Watson

Attached: 3.jpg (64 KB, 580x672)

Ian Gonzalez
Ian Gonzalez

org-mode for 90% of stuff, using readthedocs theme with export to HTML
mdoc for manpages
HTML
markdown never ever ever

Nolan Bailey
Nolan Bailey

Razor
Cringe

Attached: 1544523438452.png (1.01 MB, 1132x632)

Ayden Evans
Ayden Evans

MVC is so fucking retarded
I'm so happy I won't have to deal with that crap ever again

Cooper Rivera
Cooper Rivera

Attached: scrit.png (2.54 MB, 3840x1080)

Angel Russell
Angel Russell

impressive waste of screen estate

Landon Bennett
Landon Bennett

I fucking hate it too, if i say to my boss that i wont use this shit and instead just make the frontend in React or something will he get mad at me

Cameron Lee
Cameron Lee

If it helps the second monitor isn't event pointed towards me.

Ethan Scott
Ethan Scott

no I mean how your editor is actually like 70% code and the rest is clutter

William Hernandez
William Hernandez

it's not pointed towards you?
do you get up and walk around and watch YT at those times?

Dominic Morris
Dominic Morris

What do you need the cwd temp for?
Why are you using some random path library instead of std::filesystem?
Why are you using some random threading library instead of std::thread?
Why are you using a static function and passing the data as a shitty void pointer instead of just using a lambda?

Jordan Morris
Jordan Morris

oh user that's nothing

Attached: 5.jpg (130 KB, 1253x726)

Adam Lewis
Adam Lewis

MVC is fine when you keep it simple
its shit when you start overblowing and go full MVC autism
M V C is a perfectly reasonable separation of concern.
everything else should be FP

Jose Kelly
Jose Kelly

error("too many levels of indentation").
nothing to do but pull a fire alarm and flee the building.
leave your computer behind. it's tainted anyway.

Alexander Anderson
Alexander Anderson

What do you need the cwd temp for?
I don't
Why are you using some random path library instead of std::filesystem?
Not targeting c++17 yet
Why are you using some random threading library instead of std::thread?
SDL_Thread is just so I can try and get a windows compatible thread.
Why are you using a static function and passing the data as a shitty void pointer instead of just using a lambda?
Because the documentation shows it like this

Attached: image.webm (2.81 MB, 1152x648)

Carson Thompson
Carson Thompson

Using an OS that doesn't have overcommit

Brandon Hall
Brandon Hall

No it's just turned off. Youtube autoplaying on it.

Alexander Brooks
Alexander Brooks

too many levels of indentation
no such thing

Logan Thompson
Logan Thompson

Thanks by the way. Going to switch to stl and ditch libs. I am coming back to this project after a few weeks.

Sebastian Davis
Sebastian Davis

using indentation at all
wew

Lucas Edwards
Lucas Edwards

how do I use python then

Michael Cook
Michael Cook

inb4 you dont

Xavier Cox
Xavier Cox

you dont

Brody Robinson
Brody Robinson

why are retards so obsessed with rust trannies?

Isaac Reyes
Isaac Reyes

ever heard of CockroachDB?
it's a time-series database with... I don't know what technical advantages.
you'll only ever hear of it on hacker news, where reliably this conversation happens:
a: this is a stupid fucking name
b: you should only care about the technology! actually the name is good because it caught your attention! if it's the best tool for the job you should use it even if it revolts you!
the very last thing the CockroachDB devs can complain about is that "retards keep talking about the name". They asked for it. Steve Klabnik asked for similar controversies with Rust, over and over again. The dining philosophers example is still all Marxists, isn't it? Support, oppose it, but at the very least don't whinge about the controversy even existed.

Isaiah Adams
Isaiah Adams

Attached: file.png (59 KB, 1268x839)

Cooper Torres
Cooper Torres

sorry man, i really don't care about the ideological bullshit you bring into programming languages

Hunter Powell
Hunter Powell

Forth and Ada forums are the same way, always making easy comparisons to C.
I don't know about Forth, but I really don't see Ada users complain about C. Maybe they did a decade ago, but now it's pretty dry.

Ryan Barnes
Ryan Barnes

the ideological bullshit you bring
the people saying "this is a stupid fucking name" aren't bringing any name-ological bullshit into time series databsaes. CockroachDB brought it. Likewise, Steve Klabnik brought the ideological bullshit into Rust. If you want to complain, complain to him. If you don't care about ideological bullshit, then don't complain to him. But don't complain that other people care.

Matthew Reyes
Matthew Reyes

Are you the /pol/ poster from yesterday who went ape shit over someone calling Rust bad?

Brandon Nguyen
Brandon Nguyen

no

Michael Myers
Michael Myers

so you are
dilate and kys
rust isnt even safe

Lincoln Gray
Lincoln Gray

unsafe {
call_c_function("Rust is safe");
}

Kevin Powell
Kevin Powell

retard

Grayson Scott
Grayson Scott

complain to him
Didn't he quit Rust when he heard he wasn't paid as much as other people at Mozilla? Does he still hold a similar role?

Owen Thomas
Owen Thomas

He's still #15 for commits.
being so beta you continue to help the company and language who outs you instead of starting your own lang

Andrew Edwards
Andrew Edwards

take your meds
there is more than 1 poster on this shitty website

Blake Nguyen
Blake Nguyen

what's open source?

Jace Bell
Jace Bell

no there isn't, user
it's only (You) and me on here

Attached: 1543101921955.jpg (16 KB, 349x199)

Gavin Sullivan
Gavin Sullivan

starting your own lang
I don't think its realistic to expect a lone programmer to write a language with the features rust has. Presumably he likes those.

Ryder Campbell
Ryder Campbell

unsustainable and ungrateful job that won't pay your bills?

Dominic Jones
Dominic Jones

I hope you down think uniqueness types are exclusive to rust.
But a lot of languages were started by single person fed up with whatever.

Zachary Howard
Zachary Howard

running tests at work
Every fucking repository has its own docker image and container shit
Spent half an hour getting one test to pass
More like cocker. Fucking hell.

Levi Watson
Levi Watson

don't*

Parker Allen
Parker Allen

something you use server-side and/or put on your resume

Easton Perry
Easton Perry

exactly

Christopher Bennett
Christopher Bennett

rust is cute
proof: jowforums.com/thread/72300439/technology

Matthew Williams
Matthew Williams

cute crab

Camden Allen
Camden Allen

Why would you think I think that's an obstacle? And its not about what exists in other languages and what doesn't it's about the amount of effort to implement something.

Levi Gomez
Levi Gomez

docker is literally cockblocking you

Zachary Gray
Zachary Gray

viper
My ni-
T90
Why did you even apply?

Robert Gutierrez
Robert Gutierrez

When's sepples getting a cute mascot? I want a plush

Jayden Wilson
Jayden Wilson

it already has bjarne

Ian Ramirez
Ian Ramirez

I think Rust is such an odd name for a security and reliability oriented language. I can't think of anything that should be called Rust as a brand name.
Is this what was rambling about?

Attached: a1c394280f0797da290728db5c8616e6.jpg (99 KB, 640x449)

Blake Cruz
Blake Cruz

where do I get a plush of Bjarne tho?

Thomas Cox
Thomas Cox

here you go m8

Attached: mitty-plushie-by-hoppip-dcfy7yb-pre.jpg (105 KB, 1192x670)

Christopher Clark
Christopher Clark

I vote for this. Comes in various levels of disfigurement.

Attached: cat.png (34 KB, 200x209)

Landon Brown
Landon Brown

If you ever watch the talks, a lot of them also bring up en.wikipedia.org/wiki/Rust_(fungus)
the whole community is so odd

Justin Allen
Justin Allen

I have a script that runs the tests and then sends a notification to my phone. I just lay on the nearby sofa until they all finish.

Dylan Robinson
Dylan Robinson

the whole community is so odd
What do you expect when most of your userbase is pretending to be women?

John Ross
John Ross

Hi, a mathlet /ic/, here.

I'd like to learn how to render "perspective" in python with lines. Basically, drawing lines that'd look something like youtu.be/KU6UFcbJcyQ but being able to change it "dynamically" with changing vanishing points or generating more complex grids or rotating etc. I'm from an ESL family and just artist so I can't explain it any better. I'm also looking for something that wouldn't be too complex to understand as programming is my side hobby to art and art's probably as time consuming as computers (or even more as we're expected to sketch 24/7).

Attached: crab.jpg (10 KB, 275x183)

Isaiah Price
Isaiah Price

That mangaka really loves horribly mutated loli and loli suffering in general.

Aaron Wood
Aaron Wood

Sup /dpt/. I've been recently working in the transcription of a code I have from Python to C++ with to sole purpose of learning.

I want to use some functions declared on a C header, so I included said header under
extern "C"{
#include header.h
}

However, when compiling I get the an "undefined reference to function" error.

Where am I messing up?

Attached: sum-stuff.png (8 KB, 345x222)

Benjamin Johnson
Benjamin Johnson

Attached: 1565296071044.jpg (86 KB, 847x1024)

David Taylor
David Taylor

Attached: 1535441286915.png (988 KB, 1200x675)

Evan Johnson
Evan Johnson

Have you tried Matplotlib?
This might help you:
nickcharlton.net/posts/drawing-animating-shapes-matplotlib.html

Jason Hill
Jason Hill

Awe. I'm reading into that, but what about generating stuff like in my picture? I guess I'd need to know some underlying mathematics for that, right?

Attached: 6ebaeab9.jpg (35 KB, 760x570)

Jackson Baker
Jackson Baker

Yes, that's just mostly math, not programming, you're looking into matrices and projection.

Luis Jones
Luis Jones

dude if you dont even know enough linear algebra to solve that problem yourself I got very bad news for you..

Joseph Bell
Joseph Bell

perspective matrix multiplied by 3d vectors of verticies.

Hunter Edwards
Hunter Edwards

edit .cpp file
program recompiles quickly

edit .h file
takes forever to recompile

Attached: that-feel.png (5 KB, 645x773)

Zachary Murphy
Zachary Murphy

lmao let's just include everything in everything, what can go wrong?

Jason Bell
Jason Bell

.cpp affects one object
.h can possibly affect all objects depending on what refers to it.

Benjamin Cook
Benjamin Cook

Headers are the worst shit ever invented.
garbage like defs.h or defines.h

Cameron Hall
Cameron Hall

Is there any easy way to learn that or a cheat sheet how to use projection and matrices?

dude if you dont even know enough linear algebra
I can safely say that I don't I know it at all, but I'm willing to learn the required minimum.

Michael Bennett
Michael Bennett

Are you compiling the C functions yourself?

Ryan Taylor
Ryan Taylor

amazing that people still use module-less languages in the current year

Grayson King
Grayson King

Can we just kill all the fucking trannies already?

Luke Jackson
Luke Jackson

Use a library. github.com/datenwolf/linmath.h/blob/master/linmath.h#L368

Jose Thompson
Jose Thompson

can't we just send all the poltards back to t_d already?

Jack Robinson
Jack Robinson

and all the trannies and sjws back to r.eddit and lgbtq already?

Isaac Barnes
Isaac Barnes

Know what sucks about c--? The documentation. For instant how do I look up a default value to use with std::error_code

Juan Cooper
Juan Cooper

Can we all just hold dicks and program for a little while and discuss programming.

Cooper Nelson
Cooper Nelson

cppreference

Liam Davis
Liam Davis

I dont quite understand your question (I am not much familiar with C/C++). Anyways, I compile my code as follows:

g++ -I "C headers path" -o my_code my_code.cpp

Elijah Carter
Elijah Carter

For instant how do I look up a default value to use with std::error_code
en.cppreference.com/w/cpp/error/error_code

I am retarded and can't find it.

Blake Rivera
Blake Rivera

It has a default constructor.

Isaac Mitchell
Isaac Mitchell

You need more than just headers, you also need to link against the objects those headers are the interface to. Are you doing that?

Tyler Ortiz
Tyler Ortiz

gotcha

Christian Lee
Christian Lee

Headers are the worst shit ever invented.
headers were probably the smartest things ever invented. Compile times would be even worse without them.

Luke Bell
Luke Bell

I'm afraid that I wasn't doing that.

I have the .c files (which contain the actual functions specified in the headers). What I don't know is how to link the objects...

Luis Bennett
Luis Bennett

recompiles header a million times in every big project
sure bro

Xavier Barnes
Xavier Barnes

go back to hell ritchie

Ethan Evans
Ethan Evans

Maybe you'll learn how to use headers properly and stop abusing them.

Sincerely,
Ritchie

Camden Garcia
Camden Garcia

lmao just work around my shitty design

Lucas Turner
Lucas Turner

stop abusing headers for things it wasn't meant for
You're shitty codebase is the problem.

David Walker
David Walker

If the C files you're compiling are C++ friendly, you can just add them all to the g++ command. You don't need extern "C" if you're doing this.
If they aren't, compile them with gcc and the -c flag. The results will be .o files which you then pass to g++. You need extern "C" if you do this.

Andrew Bailey
Andrew Bailey

My TA is trying to argue "all user input is error" but Yandex isn't clear.

Sebastian Hall
Sebastian Hall

not really because i don't use c

Jack Lee
Jack Lee

hhahaha i'm just pretending to be retarded
Got it so you're shitposting. Filtered.

Landon Brown
Landon Brown

Attached: file.png (6 KB, 525x98)

Brandon Wright
Brandon Wright

Php is full stack language, you can also write command line scripts in it

Levi Lewis
Levi Lewis

I'm afraid that it didn't work.

I assumed the C files weren't C++ friendly. I didn't need to compile them since the .o files corresponding to each c file were already present at the /src/ folder of the program I want to implement. The compilation command I used was:

g++ -I "C headers path" -o my_code my_code.cpp ../ViennaRNA/src/ViennaRNA/model.o ../ViennaRNA/src/ViennaRNA/mfe.o ../ViennaRNA/src/ViennaRNA/params/io.o

Joseph Diaz
Joseph Diaz

The errors I got were of the "undefined reference to" type.

Attached: sum-stuff.png (131 KB, 787x882)

Justin Thompson
Justin Thompson

Can /dpt/ solve this in O(n) time?

Yesterday they failed.

More info:
en.wikipedia.org/wiki/H-index

Attached: Screen-Shot-2019-08-12-at-5.09.46-PM.png (238 KB, 1088x570)

Connor Martinez
Connor Martinez

full stack language
not a thing.

you're right though, there are even qt bindings for php
openhub.net/p/php-qt

Luke Young
Luke Young

MATLAB is, and will always be, the supreme language

Isaiah Morgan
Isaiah Morgan

what in the name of fuck

Joseph Clark
Joseph Clark

Anyone here freelance? I can make pretty good SPAs but I do it using obscure technologies that nobody knows of. So I'm interested in starting to freelance but unsure where to begin.

Angel Nelson
Angel Nelson

obscure technologies
ghc-js?

Owen Rodriguez
Owen Rodriguez

int hIndex(int[] a)
{
int b = a.length;
int k = b;
int[] c = new int[b + 1];

for (int c : a) c[Math.min(b, c)]++;
for (int s = c[b]; k > s; s += c[k]) k--;

return k;
}

Wyatt Stewart
Wyatt Stewart

What are the comfiest ways for me to get a head start for my perl programing college course that I'm going to start in 2 weeks? Videos are the ideal form for me.

Juan Hughes
Juan Hughes

perl programing college course
what country is this in lmao

Robert Flores
Robert Flores

Perl 6 > Perl 5

Ryder Young
Ryder Young

burgerland, the class is a general high level programing language class and they chose random languages for each semester

Ryan Brown
Ryan Brown

Is there a technical reason why mapping using the java streams API involves going list.stream().map(foo).collect(Collectors.toList()) instead of, say, list.map(foo)?

Julian Butler
Julian Butler

Because they built map into the stream library. Even if you could list.map(foo) it would probably just do strream().map(foo).

Hunter Ortiz
Hunter Ortiz

.stream
backward compatibility and the lack of extension methods
.collect
laziness and the lack of hkts

Charles Young
Charles Young

lack of HKTs

Jackson Price
Jackson Price

Even worse, incr_dom. I've been learning vue but even then I still use js_of_ocaml because I don't want to write js.

Lincoln Harris
Lincoln Harris

how would higher kinded types help?

Joshua Wright
Joshua Wright

sorry user. i worked with perl once and it is not a language I'd want to use again

just smash your hand into the keyboard and run the resulting valid perl program, then try to figure out what it does

Brandon Rodriguez
Brandon Rodriguez

nice. consider looking into typescript, its about twice as good as vanilla js and supported by most ui frameworks, not sure about vue though

Logan Murphy
Logan Murphy

I started learning Haskell recently and I think i've discovered what the universe must be coded in.

Attached: 1547812619880.png (85 KB, 313x193)

Owen Sanders
Owen Sanders

Vue supports TS. We use it at work.

Brody Brown
Brody Brown

funny, that's how i feel about java

piece of shit universe

Elijah Wilson
Elijah Wilson

you don't *just* need HKTs but also interfaces not passed with objects
you can write an interface like this

interface Functor< F<_> > {
F<B> map<A,B>(function<A to B>, F<A>)
}

dumb frogposter

Levi Williams
Levi Williams

That's SEPPLES

Hunter Cook
Hunter Cook

based

Ryder Richardson
Ryder Richardson

IMAGINE actually WORKING at a JOB

HAHAHAHAHAHHA

Benjamin Carter
Benjamin Carter

Are you calling God a lazy pretentious tranny?

Gabriel Morris
Gabriel Morris

I said Haskell, not Rust.

Dominic Gomez
Dominic Gomez

trannies dont understand functional programing

Mason Phillips
Mason Phillips

imagine being a NEET
Worst 3 years of my life. Never again.

Eli Scott
Eli Scott

not having passive income

Mason Powell
Mason Powell

Same shit.

Owen Allen
Owen Allen

in JavaScript this is just .map()

Easton Williams
Easton Williams

I just don't see the point in learning anything js related when I can generate very fast js with js_of_ocaml. I'm just looking for a platform that I can freelance on where the jobs are simply build me a good app instead of build me an app using x and y technologies.

Matthew Fisher
Matthew Fisher

Imagine never getting to work on some of the most complex systems in the world because you have autism and live with your parents into your 40s

Sebastian Nelson
Sebastian Nelson

in haskell this is just fmap

Isaiah Powell
Isaiah Powell

javascript doesn't have types

Colton Harris
Colton Harris

Counts as working.

Samuel Edwards
Samuel Edwards

Csfags need to stop buying stupid teslas and learn to invest instead

Evan Collins
Evan Collins

And you are?
You probably have a generic enterprise job working on CRUD and webshit.

Hudson Reed
Hudson Reed

In bash this is just /dev/null < /dev/random

Adrian Gonzalez
Adrian Gonzalez

You sound like a bitter faggot desu. Maybe stop projecting and people would tolerate you.

Camden Watson
Camden Watson

Nah, just annoyed by wagies who desperately try to convince everyone they need to be a wagie too.

William Gray
William Gray

That's hilarious since it was you that had an autistic outburst in over someone mentioning he used a framework at work. Not surprised some NEET is a hypocritical cunt.

Chase Price
Chase Price

map = lambda c, f: [f(e) for e in c]

Isaac Jackson
Isaac Jackson

Counts as working.
no it doesn't. do you even know what it is?

Austin Green
Austin Green

there's only one person in the entire thread who loathes wagies
absolutely retarded as usual.

Oliver Jones
Oliver Jones

Keep having an autistic fit you mentally ill child.

Thomas Young
Thomas Young

almost no one posts code

proof that this thread is pure circlejerk

Jordan Wright
Jordan Wright

tick tock, wouldn't want to waste the few precious hours you have shitposting now.

Ayden Mitchell
Ayden Mitchell

Hey /dpt/ I forgot the libgen link, I'm pretty sure one of you anons has a mirror saved somewhere.

Ryan Smith
Ryan Smith

my codes shit and /dpt/ shouldn't have to see it.
t. me and probably atleast 20 others

Carter Foster
Carter Foster

Next I get 4 years of NEET
Suicide watch everyday!

Nathan Bennett
Nathan Bennett

lmao stay bitter over salary programmers doing whatever they want.

Julian Stewart
Julian Stewart

libgen.is/

Lincoln Powell
Lincoln Powell

this
we live in a lazily evaluated simulation

Jacob Murphy
Jacob Murphy

Why does C++ need modules? Why can't it just dump symbol metadata in object files?

Tyler Hughes
Tyler Hughes

It explains why we haven't figured out how the universe was created yet. It simply hasn't evaluated in our view yet.

James Parker
James Parker

wanting to bottleneck compile times with disk IO
why

Kayden Barnes
Kayden Barnes

*ahem*
HolyC didn't have these issues.

Jayden Barnes
Jayden Barnes

Retard here, do I need to learn Scheme if I want to read through SICP and understand it? I only know Python and (some) C.

Camden Wilson
Camden Wilson

Why don't just have a compiler backed in-memory database that runs as a daemon for quick and efficient lookups?

Caleb Morgan
Caleb Morgan

Thank you user, god speed

Elijah Thompson
Elijah Thompson

Basically HolyC / The original LISP machines / Most VM languages

Gabriel Moore
Gabriel Moore

Because the C macro system is a piece of shit.

Cameron Evans
Cameron Evans

are you retarded? do you have any idea what people are talking about?

Dominic Rodriguez
Dominic Rodriguez

how do i go from learning programming to actually being able to program things?

all these tutorials just make me copy what they type and do a terrible job trying to explain what most of it does

then i move on to something else and forget what i previously learned

Mason Diaz
Mason Diaz

You can do backend with based PHP+MySQL duet, you can print html with PHP which is lowest level form of frontend, suitable for cniles

Hudson Baker
Hudson Baker

No, SICP start since hello world in scheme.

Mason Parker
Mason Parker

sicp is a meme, you're not supposed to actually read it

Henry Ramirez
Henry Ramirez

you apply it with a project.
and please don't respond with
i don't know what to make
then figure it out.

Adrian Ramirez
Adrian Ramirez

see
jowforums.com/thread/72292173/technology
if you're just starting out, do a ton of the problems marked as "easy" on hackerrank until the basics sink in and become automatic

Oliver Collins
Oliver Collins

libgen.is/
shit getting a connection reset

Gavin Cox
Gavin Cox

stop reading tutorials and read books + program yourself

Samuel Ramirez
Samuel Ramirez

No it doesn't porky.

Attached: (you).jpg (34 KB, 576x566)

Camden Fisher
Camden Fisher

are you

Camden Walker
Camden Walker

That's what I thought you fucking idiot

Jack Jones
Jack Jones

I'm currently going through "Learn you a haskell".
While I do believe that all that I can do with this language is really cool, I doubt that I will ever come up with ways to apply these things to solve some problems on my own.

Jack Martinez
Jack Martinez

it just werks, not my fault you need some overengineered shit to try to prove anything

Andrew Long
Andrew Long

Why is it a meme?

Jason Thomas
Jason Thomas

You will learn alongside with SICP, old Scheme is a simple language. You can also try to rewrite Lisp interpreter in Python

Juan Rogers
Juan Rogers

why does ruby do gay shit like
do |x|
instead of

for x in

James Wood
James Wood

That's kind of the idea
You're supposed to spend an hour coming up with a clean way to do things with haskell that you could have done in a minute with an imperative language.
Then you post it on Jow Forums and say it took you only 10 seconds.

Caleb Morales
Caleb Morales

anime girls look really cute holding it

Camden Fisher
Camden Fisher

Show us an example of it failing at compile time because it was used with an invalid argument, and show us how you can extend it to work on a custom type.

Jaxson Sullivan
Jaxson Sullivan

that's actually a very sensible way to do it

Christian Murphy
Christian Murphy

compile time
don't need overengineered shit, as i said, it just works
work on a custom type
just implement an iterator for the type and it will just work

Brody Reed
Brody Reed

because ruby was designed by a nip and they're shit at computers

Blake Nelson
Blake Nelson

it's a college textbook
the primary purpose of a textbook is to sell them to students that have no choice but to buy them
they aren't good ways to learn anything, ever

Jaxon Rivera
Jaxon Rivera

You need to learn math

Nolan Cook
Nolan Cook

you dont need to know scheme beforehand because the book teaches you scheme but you wont get though the book without learning scheme

Ryan James
Ryan James

Hey, look, this just works too:
print("hello")
I mean it doesn't do anything related to the conversation, but I'm too intelligent to know what other people are talking about

Benjamin Nelson
Benjamin Nelson

sauce on image I saw it some time ago

Carter Green
Carter Green

it is relevant, it proves you don't need overengineered shit that only creates more problems if you use a good language (like Python) instead of masturbating over nonproductive problems that you're only creating by using shit languages in the first place (like Java and Haskell)

Nathan Peterson
Nathan Peterson

has anyone ever used n choose k outside classroom? what about partitions?

or any graph manipulation besides bfs and dfs?

Isaiah Ross
Isaiah Ross

Learn you a Haskell isn't a great way to learn the language. It really only introduces a bunch of features without providing motivation for why they are useful and the advantages they have over alternatives.

Jaxson Baker
Jaxson Baker

it is relevant
to my ideology
Would you shut the fuck up already? When did I ever fucking ask for your opinion about types? How does this explain why Java requires you to stream and then collect? How does it explain how HKTs avoid that? It doesn't you braindead mong

Sebastian Lewis
Sebastian Lewis

python is a terrible language because it lacks static type checking, which eliminates entire classes of bugs. python's lack of type checking makes it a nightmare to maintain.

google did studies on this, python projects get developed quickly but are much harder to maintain so they developed golang to address the problems in python. note that golang has static type checking.

Austin Evans
Austin Evans

Would you shut the fuck up already?
no
When did I ever fucking ask for your opinion about types?
I don't need your permission to speak
How does this explain why Java requires you to stream and then collect?
it doesn't, it just proves that Java is a deeply flawed language by design and you should be using Python instead
How does it explain how HKTs avoid that?
it doesn't and you shouldn't worry about HKTs, use a language where things just work instead of creating more problems for you, that's the entire point of being able to program computers

Carson Robinson
Carson Robinson

Attached: raku-classes-and-roles.jpg (215 KB, 962x874)

Ayden Nguyen
Ayden Nguyen

grug think types bad
NOBODY CARES

Isaiah Davis
Isaiah Davis

note that golang has static type checking.
until you need to pass an empty interface, which is often because lol no generics

Angel Green
Angel Green

I read it for that purpose.
The author suggests real world haskell for the real deal, is it better in that sense?

I skimmed through table of contents and from what I understood it explains on examples.
I remember enjoying Accelerated C++ for this reason.

Sebastian Parker
Sebastian Parker

types aren't bad per se but when overengineered type system gets in your way and makes you less productive then there's suddenly a problem

Asher Sanchez
Asher Sanchez

I'm going fucking crazy because you keep attaching this fucking spiel to EVERY REPLY YOU MAKE. I don't care. Nobody else cares. It has NOTHING to do with the conversation. You don't need to copy fucking paste your essay about why you hate types in EVERY REPLY YOU MAKE even to the posts telling you not to fucking do this

Cameron Mitchell
Cameron Mitchell

it's a great book for people with zero exposure to functional programming

Isaiah Flores
Isaiah Flores

if you didn't care you wouldn't have sparked a conversation about shit language design, you wouldn't have follow the conversation any further, and you wouldn't have kept replying to me, clearly though, you do care, so I recommend you try learning some useful languages, that make you productive and don't force you to deal with either overengineered or flawed language design (that is, it just works, and you don't have to worry about anything): python.org/doc/

Parker Adams
Parker Adams

I can't say I agree. I don't think I would have understood it without prior experience in other functional languages. I think pic related is a better introduction to functional programming and Haskell than LYAH.

Attached: pih.jpg (965 KB, 1012x1345)

Andrew Anderson
Andrew Anderson

Are you being fucking paid for this or something? Murderdilate you tranny faggot

Austin Adams
Austin Adams

it's literally the same as any other language
stop being a fucking faggot

Josiah Bennett
Josiah Bennett

dont indent ur code
use c 4 everything
You're all stupid larpers.

Attached: 6F2001DE-0230-4030-84EE-9CF2C002C50F.jpg (49 KB, 1024x665)

William Williams
William Williams

tfw gonna learn from the ancient book of Accelerated C++
rate me, feel like tour of C++ was a bit too short

Adrian Torres
Adrian Torres

it's literally the same as any other language
spicy new meme alert

Connor Torres
Connor Torres

Fuck types. Assembly, B, and Jazzy all the way, baby!

Christian Reyes
Christian Reyes

seems that, just like everyone on Jow Forums, we're working on nothing but someone else's nerves.

Angel Parker
Angel Parker

go on, enlighten me, how is applying ideas to solve problems different in your favourite trash lang?

inb4 suckless crippling

Tyler Jackson
Tyler Jackson

that's really cute, kiddo. now show us how to express integers differently.

Attached: giphy.gif (652 KB, 346x270)

Caleb Fisher
Caleb Fisher

As former Idris shill I apologize for my constantly berating of other languages. I accept that Haskell is in fact the better language.

Andrew Peterson
Andrew Peterson

why is the windows API like it is
who thought it was okay to do what they did

Jack Nelson
Jack Nelson

I want to search backwards through a string and find a certain character. I know which index in the string that I want to start at. How do I do this?

Anthony Cox
Anthony Cox

Not having tuples is what happened.

Thomas Wilson
Thomas Wilson

'hello world'.rfind('l', 0, index)

Thomas Rodriguez
Thomas Rodriguez

nvm fixed it lol

Ethan Harris
Ethan Harris

Does having GADTs just mean that data constructors can exist conditionally on the the parameters of a parameterized type?

Brandon Rogers
Brandon Rogers

something like that

Josiah Carter
Josiah Carter

This sounds like some dumb haskell shit

Gabriel Hernandez
Gabriel Hernandez

I AM searching for an account manager for my site, something that allows my users to register and login

Logan Gutierrez
Logan Gutierrez

his strings aren't bidirectional ranges

Hudson Brooks
Hudson Brooks

I have a freelance opportunity, linking to the post in an earlier thread for those interested
looking for a c++ and/or python programmer
jowforums.com/thread/72284447/technology

Zachary Reed
Zachary Reed

there are plenty of better sources from this decade

Cameron Hill
Cameron Hill

won't teach you modern C++

Dylan Howard
Dylan Howard

oh shit this is my color palette/highlighting scheme, didn't expect to see it here again

it was a smol example thing to demonstrate the syntax highlighting, not an actual program, but ok twink

fixed 10x20

Attached: colors.png (8 KB, 557x91)

Adam Young
Adam Young

no

Asher Stewart
Asher Stewart

no mention of even the country it is geographically located in
you're incompetent

Samuel Kelly
Samuel Kelly

Lisp is the most powerful programming language.

Joseph Jones
Joseph Jones

it's over the internet, friend
I don't care where you're from as long as you can read and write english

Jayden Diaz
Jayden Diaz

have you never applied for a job?
It may or may not be legal to work for you depending on what countries are involved

Chase White
Chase White

72303791
I am pretty good python programmer, post mail

Ethan Gutierrez
Ethan Gutierrez

//boards.4channel.org/g/catalog#s=wdg

Jayden Young
Jayden Young

doesn't matter, I'll use Meyers' books for that, have to read them anyways
like what. And I mean something that's the same or similar

Ryan Murphy
Ryan Murphy

[email protected]

Easton Young
Easton Young

not be legal
ummmm excuse me sweaty, we're on 4chanz here, we don't care about MuH lAw

Christopher Myers
Christopher Myers

careful user, they don't know 101-level hiring practices, like specifying a country so you know if you are legally allowed to work in that country (even over the internet this is important). could really fuck your shit up in some situations.

Parker Long
Parker Long

If you can get a copy of Elements of Programming with Perl, you should start with that. It's from 1998 but it's a great introduction to Perl 5 and programming. That's how I first got interested in the family of programming languages known as Perl. There's also Modern Perl (modernperlbooks.com/) which you can read online.

Your class will probably only touch Perl but if you're interested in a more modern programming language from the same family, read about Raku (aka Perl 6) and play with it. Don't let the 6 fool you. It's not the next version of Perl. Just a historical blunder if you will. They're different languages and actively developed by their respective communities.

Also read a bit about Larry Wall, the creator of both Perl and Raku. This will hopefully give you some insight into why the languages turned up the way they are. I recommend his State of the Onion presentations, his Natural Language Principles in Perl ( wall.org/~larry/natural) article and the Raku design documents (design.perl6.org/).

just smash your hand into the keyboard and run the resulting valid perl program

That must be the reason for so many great CPAN modules. I'd advise to not follow the hating bandwagon that Perl seems to attract. Just be aware that bad code can be written in a programming language and the fact some programming languages make this easier than other languages, due to their relative expressiveness and power, doesn't make them bad languages. With great power comes great responsibility and one of those responsibility is writing nicely documented code to make the life of the code maintainer (most likely you) easy.

Happy hacking and best of luck in your course, .

Attached: deux-choses.png (50 KB, 1440x452)

Charles Anderson
Charles Anderson

Where do I learn design patterns?

Nolan Rodriguez
Nolan Rodriguez

drop the course and pick a new one that doesn't involve a dead language.

Connor Moore
Connor Moore

I am Also searching for an electronics factory partner to develop a product, post your emails but first the post account manager

Hunter Nelson
Hunter Nelson

this

Christian Cook
Christian Cook

search for Code Complete pdf
Avoid the book actually titled Design Patterns, it is highly overrated imo

Isaiah Reyes
Isaiah Reyes

I'm not an employer, I don't know anything about that. You'd have to discuss it with the client.
He's located in the US

Hunter Williams
Hunter Williams

I offer prívate clases on design patterns 12uss an your, complete course with exam 20hrs

Jayden Hall
Jayden Hall

Attached: 1540154829018.jpg (12 KB, 250x250)

Cameron Bell
Cameron Bell

//www.4channel.org/rules#global11
offering private classes on 2hus

Jason Moore
Jason Moore

You first need to know some Uml básics like the difference between an agregation And a composition

Nathaniel Gonzalez
Nathaniel Gonzalez

Man, I hate os400

Nathaniel Diaz
Nathaniel Diaz

why?

Brayden Campbell
Brayden Campbell

I'm not an employer, I don't know anything about that.
Then why tf are you trying to personally recruit people?
He's located in the US
amazing, thanks! This is literally the most basic piece of information you need to know before considering a legit job. Like it's more important than what the job actually even is.

Charles Allen
Charles Allen

TempleOS
drawing to the screen is literally 5 simple commands
Windows/Linux/Mac
have to jump through a ton of hoops, download graphic libraries, then eat shit with their horrible APIs just to draw a line

Where did things go wrong?

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

Mason Garcia
Mason Garcia

Okay sorry there are many developers offering themselves I do not fines it's a crime

Cameron Carter
Cameron Carter

lmao

$ touch empty.cr
$ crystal build empty.cr && du -sh empty
932K empty
$ crystal build empty.cr --release && du -sh empty
376K empty
$ cat empty.cr
$

Carter Fisher
Carter Fisher

xcb/wayland actually aren't that bad.
win32 can suck a thousand dicks though.
But OS's are too bloated.
we need to move to Haiku.

Jack Ward
Jack Ward

I use Paint

Liam Wilson
Liam Wilson

Is Haiku as simple as TempleOS?
This simple program for lines and a rotating cross.

Attached: file.png (811 KB, 1712x836)

Gavin Stewart
Gavin Stewart

I'm in a similar situation, but it'll be Haskell and C++ for me.
Looking for suggestions as well.

Robert Cruz
Robert Cruz

For pngs and logos I use Gimp

Levi Robinson
Levi Robinson

it's sepples, so no, but it actually has networking, a web browser, and a package manager while still being incredibly minimal.

Grayson Wilson
Grayson Wilson

front end: javascript
back end: c# web api

Jack Sanders
Jack Sanders

but it actually has networking, a web browser,
I wouldn't say that's really a good thing in the age we live in.

Brayden Martin
Brayden Martin

People Hates PHP

Brody Watson
Brody Watson

Maybe if you abuse it. PHP is super easy to get data off a server.

Dylan Rogers
Dylan Rogers

it can't be a daily OS without networking.
If you're coming at this from a security point, then you should be using Qubes which you probably arent.

Julian Myers
Julian Myers

It can be if you control your addiction to the internet.

Alexander Sanders
Alexander Sanders

we both know you aren't using tOS as anything more than a toy os. Assuming you've actually compiled it, and aren't just larping.
Besides, sshing and pushing commits are also things i'd like to be able to do.

Anthony Rogers
Anthony Rogers

sauce this

Brayden Hernandez
Brayden Hernandez

We don't all operate in the same manner user. I only access Jow Forums from my iPad. Otherwise im on temple.

Benjamin Nelson
Benjamin Nelson

Haskell and C++
Your situation is different in that this combination of languages is actually reasonable if you're on a CS program, they make you learn some theory and shit along the way. I had to take courses with OCaml and Prolog ffs. While they serve no practical purpose in day to day life, they were useful to teach theory.
But there is no reason I can think of to take a uni-level course taught in perl

David Reyes
David Reyes

what is functional programming though

I know prolog, does that help?
I know optionals from java, I heard they're like a maybe monad?
I know futures and promises and reactive programming from javascript, is that like functional?

Carter Davis
Carter Davis

So what have you actually done on it then?
Any decent projects?

Logan Phillips
Logan Phillips

it's just burritos

Daniel Carter
Daniel Carter

I've made some cool shit, don't try to OS shame me. HolyC is an eye opening langauge, something we haven't seen since the days of Lisp machines.

Aiden Lopez
Aiden Lopez

I've made some cool shit
Like what?
And all the holyC shitposting and LARPIng from others just makes me doubtful.

Dylan White
Dylan White

You can call HolyC shitposting and Larping all you want but it's extremely powerful to have your shell basically a full fledged JIT programming language. The ability to do things normal people have to compile code for or run through a dedicated interpreter. All this is at your fingertips in HolyC. Just like it was back in the days of Lisp machines when everything was in Lisp.

James Cooper
James Cooper

Besides, sshing and pushing commits are also things i'd like to be able to do.
you can do commits just fine then hoard them and push from your host os every now and then, similar to how rms deals with his mails

Angel Evans
Angel Evans

it's having no state and solving every problem with recursion

Asher Reyes
Asher Reyes

your browser does the same thing without compromising your entire computer

open the console sometime

Eli Kelly
Eli Kelly

there's still state involved, it's just intermediate and doesn't bleed outside of the scope of your expressions

Thomas Diaz
Thomas Diaz

This is messed up. Do you know how much harder it will be to free yourself from the enemy when you have delved this far into the excesses of lust and sexual pleasure?

Jayden Lewis
Jayden Lewis

are higher order functions ok

Owen Morris
Owen Morris

programming with functions, which are pure and first class

that's it really

Carter Brown
Carter Brown

use 2 OSs to do a basic thing because autists refuse to add a rational subset of a basic feature of computers
"no".
HolyC and tOS are cool. But some people on Jow Forums and outside are just a bit obnoxious about it and idol worship him to (literal) death.
Also it's not like you can't do this with REPLs, though i get tOS takes it leagues further and HolyC is a first-class product.

Nathan King
Nathan King

some people on Jow Forums and outside are just a bit obnoxious about it and idol worship him to (literal) death.
We're not all schizos who worship god user.

Bentley Collins
Bentley Collins

in functional programing, everything is a function. functions only have inputs and outputs, they cant modify state outside of their scope.

you seem like you know a good amount of programing knowlege, you'll be fine

Carter Bell
Carter Bell

implement networking then, or don't, i'm pretty sure someone already did

Connor Torres
Connor Torres

If you ever had a malloc returning a null pointer, maybe you should eat a bullet.

Henry Richardson
Henry Richardson

Angular Design Patterns

Logan Garcia
Logan Garcia

package g.dpt;
import java.util.*;
public class test {

public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (true){
System.out.print("Enter a number:");
String n = in.next();
if (n.equals("q")){ break; }
try {
double q = Double.parseDouble(n);
System.out.println("The square root of your number is: "+Math.pow(q,0.5));
} catch (Exception e){
System.out.println("Not a number.");
}
}
System.out.println("done");
}
}

Michael Murphy
Michael Murphy

Anybody got a link to some well programmed short c++ games source code? I'm building a game with some friends but I don't want to get into any actual programming until I'm sure the design is fine.

Christopher Johnson
Christopher Johnson

CGI and parsing, web scraping

Daniel Harris
Daniel Harris

cute

Kevin Morales
Kevin Morales

What does C2x need to bring the language back alive and compete?

Attached: cat-(9).jpg (139 KB, 869x1077)

Christopher Turner
Christopher Turner

what is emacs

Brayden Gray
Brayden Gray

it won't compete like ever again

Aaron Campbell
Aaron Campbell

:- module square.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module float, math, string, list.

main(!IO) :-
io.command_line_arguments(Args, !IO),
( if
Args = [NStr],
to_float(NStr, N)
then
io.format("sqrt(%.2f) = %.2f\n", [f(N), f(sqrt(N))], !IO)
else
io.progname_base("square", Progname, !IO),
io.format("usage: %s <num>\n", [s(Progname)], !IO),
io.set_exit_status(1, !IO)
).


cli > interactivity for stuff like this.

Kayden Walker
Kayden Walker

how is holyc even different from c

William Gutierrez
William Gutierrez

just use Zig
stunning and harsh rebuke of zigguy's entire world.

Austin Lewis
Austin Lewis

for one holyc was directly crafted by the word of God for the intent of rebuilding the third temple as prophesied

Jaxson Jackson
Jaxson Jackson

a bunch of retarded bullshit features

Zachary Baker
Zachary Baker

put holyC on CV as a joke
employer notices
"Divine Intellect carries this company user"
get hired
Those who work on the temple are guaranteed happiness

Justin Lopez
Justin Lopez

from math import sqrt
i = ''
while i != 'q':
i = input("SQRT: ")
try:
print(sqrt(float(i)))
except ValueError:
print("Not a number")
else:
print("Done")

Levi Adams
Levi Adams

import math
import random import random
while True:
print('Enter a Number')
time.sleep(4) # Probably enough time
if random() < 0.2:
break
print('The square root of your number is %s' % random()) #They probably won't check

print('Done')

Landon Perry
Landon Perry

based

Jose Nguyen
Jose Nguyen

new

jowforums.com/thread/72308752/technology
jowforums.com/thread/72308752/technology
jowforums.com/thread/72308752/technology
jowforums.com/thread/72308752/technology
jowforums.com/thread/72308752/technology

Anthony Parker
Anthony Parker

codersnotes.com/notes/a-constructive-look-at-templeos/
its feature set is actually really interesting
shame no one took terry seriously

Julian Hall
Julian Hall

people took terry seriously the problem is he was so crazy its impossible to work with him. one of the side effects from receiving direct communication from god i guess

Leo Bell
Leo Bell

13 levels of indentation at 160 lines
Is all webdev like this?

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit