[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 324
Thread images: 38

File: 1481654229907.jpg (264KB, 1440x1080px) Image search: [Google]
1481654229907.jpg
264KB, 1440x1080px
What are you working on, /g/?
Old thread: >>58303825
>>
Text editor poll continues
http://www.strawpoll.me/12023125
>>
First for C++ is shit.
>>
Java is the only programming language
>>
File: polymorphic recursive tree.png (11KB, 968x424px) Image search: [Google]
polymorphic recursive tree.png
11KB, 968x424px
Implement this data structure in a language of your choice
>>
>>58309082
What are the defining features of that data structure?
>>
>>58309114
It's a tree of a certain element type, except each level you go down in the tree it becomes a list of the previous element type.

E.g. root node is a T, its children are vector<T>, their children are vector<vector<T>>, etc
>>
>>58309082
{3,({[], ([[1],[3,4]], [[1,2,3],[4,5,6],[7,8,9]])}, [1,2,3,4])}


There I think I did it in about 6 or 7 languages.
>>
>>58309133
What are vectors?
Don't know C++.
>>
>>58309168
Vectors are elements of a vector space.
>>
>>58309133
I suppose you posed that question because it probably won't fit very well in the type systems of most languages, except the esoteric functional ones.
>>
>>58309185
What's a vector space?
>>
>>58309205
CANI ADDU
>>
>>58309223
Que?
>>
>>58309239
>>
>>58309260
I'm asking what vectors are in C++, not math.
>>
>>58309306
You should have been more specific then.
>>
File: 1469310869749-fs8.png (459B, 391x391px) Image search: [Google]
1469310869749-fs8.png
459B, 391x391px
>be me
>go to interview in a software company in my area
>after the initial chat, we went for the programming questions
>get asked to write a function to check if a number is prime
>ask if i can write it in python using regular expressions
>they gave me an odd look, but said sure
>write this
is_prime=lambda n:not __import__('re').match(r"1?$|(11+?)\1+$","1"*n)

>get promoted instantly to CEO
>>
>>58309321
>question about vectors
>being asked in daily programming thread
Have a (You).
>>
>>58309352
>things what never happened
>>
Why should I care about anonymous/lambda functions?
>>
>>58309321
how socially inept are you that you can't communicate well on an imageboard?

are you the same autist from x threads ago that was raging about how c++ vectors don't adhere to the pure mathematical definition of a vector?
>>
>>58309392
because if C had lambdas and closures it would literally be lisp in c syntax.
>>
>>58309410
So why should I care? What are they good for that I can't just implement otherwise?
>>
>>58309410
I'll be implementing lambdaC.
Somebody make a logo
>>
>>58309450
>>58309410
https://github.com/graphitemaster/lambdapp
>>
>>58309410
you mean javascript?
>>
>>58309392
It saves you a couple lines. That's about it.
>>
>>58309079
...for fags
enjoy your bloated garbage
>>
>>58309074
>more people use web toy that is Atom than Emacs

where is your Stallman now?
>>
>>58309133
Name one practical use for it.
>>
>>58309442
enjoy your typecheck errors, pleb
>>
>>58309186
the fuck is so esoteric about idris?
>>
>>58309410
No it wouldn't. C macros are trash compared to Lisp macros.
>>
File: Acme.png (55KB, 1130x930px) Image search: [Google]
Acme.png
55KB, 1130x930px
>>58309074
I use fucking acme because I'm cool
>>
>>58309528
>programming challenges
>practical
>>
>>58309168
Think of them as arrays that can grow in size.
It's not perfectly true, but it's close enough.
>>
File: 535[1].png (260KB, 503x407px) Image search: [Google]
535[1].png
260KB, 503x407px
>>58309568
>>
>>58309568
no you don't.
>>
>>58309567
Java has better macros than C.
At least you can get compiler macros that way.
>>
>>58309537
Just a genuine question. It seems like a lot of abstraction for a little laziness.
>>
>>58309168
Euclidean vectors or an element in vector space?
>>
>>58309051
I'm working on my image viewer, Ivy. I now have this window that you can open that has all the errors that may have occurred. Took me a little while to figure out how to get the (current-error-port) to write all its information to the error log window - what I ended up doing was saving the old error port, creating a custom output-port that writes both to the old error port and to the error log window, then set that as the new (current-error-port). This way, any errors will appear in both the window and on the command line.
>>
>>58309648
both
>>
>>58309684
Euclidean vectors describe direction and length, think of it as an alternative to Euclidean coordinates.

Vector space stuff I don't know a lot about, you should probably look that up in Wikipedia.
>>
>>58309634
>Java has better macros than C
Java doesn't even have macros.
>>
>>58309700
s/Euclidean coordinates/Cartesian coordinates
>>
>>58309648
Vector Space is a class, while Euclidean Vectors are an instance of said class.
>>
File: fag.png (33KB, 1280x800px) Image search: [Google]
fag.png
33KB, 1280x800px
>>58309625
Goddamn right I do. alibaba has some pretty decent 3 button mouses, too
>>
>>58309801
what for?

to win internet points?
>>
>>58309801
>alibaba has some pretty decent 3 button mouses, too
link one, please
>>
>>58309051
>tfw no holographic monochrome screen dev rig

y live
>>
>>58309915
kys then
>>
>>58309410
Without S-expressions? No, it would be just C with lambdas and closures.
>>
>>58309133
>here's something that most type systems can't handle! :^^^)

Also, it's totally useless.
>>
>>58309960
mb i will

then ull half 2 live with that the rest of ur life
>>
>>58309801
How did you get a copy of my CS 101 Final Project?!
>>
>>58309051
>hinstance
no wonder that EVAs went berserk if they used Win32 API

>>58309082
>>58309590
>"theoretical"
>fuck off

even algebraic geometry is more useful
>>
Thinking about making something like ncurses from scratch.

I found out about blessed for node.js and it's pretty cool, aside from the fact the code is ugly as fuck, the widgets it can make are nice.

I already wrote a terminfo parser and library, now I just need to figure out a good API that's ergonomic enough to use and to create additional widgets.
>>
>>58310208
If it's not a C library, it's shit.
>>
>>58309075
>C++ is too hard
it teaches you how to not be a pussy and take care of yourself
>>
>>58310236
I don't give two fucks about C since I don't make software with it anymore.

But thanks for your extremely valuable input!
>>
CS50 worth it?
>>
>>58310308
Every library that doesn't have a C ABI is complete garbage.
You're basically making your library far, far less useful and are tying it to your shitty meme languages for no reason.
>>
>>58310318
every penny
>>
>>58310286
>take care of yourself
I primarily program in C.
I don't consider C++ to be hard, I just consider it to be fucking retarded and designed extremely poorly.
>>
>>58309082

This is trivial in any dynamically typed language. Ruby, Python, JavaScript, Lisp (and the majority of its variants), Lua, and many others can create an array/list that can store objects of different types.

In C++, I could probably generate that with some template magic and recursion, but only up to a known finite depth.
>>
>>58310334
>ABI
API*
although you need the ABI too.
>>
>>58310334
Having a C ABI implies making the API much less ergonomic, which I'm not interested in.

You have ncurses, it's shit, use it and enjoy yourself, I'm going to make a library I enjoy using myself.

All the software I make, I make for myself, I couldn't care less about how useful it is to other people.
>>
>>58310374
>All the software I make, I make for myself, I couldn't care less about how useful it is to other people.
Ok, I'll give you that.
Due to the fact that you were "advertising" here, and were worried about ergonomics, it seemed like you actually wanted other people to use it.
>>
>>58310374
ncurses is fine and you like making life hard for everybody who doesn't use a meme lang
>>
>>58310367
>This is trivial in any dynamically typed language
But is it type safe?
>>
>>58310396
>ncurses is fine
Not him, but ncurses has far too much global state and weird macros for my liking.
>>
>>58310390
It's not even remotely "advertising", I didn't link to anything, I'm just doing what you do in a /dpt/, talk about what you're working on.

Obviously I'm concerned about having an ergonomic API, or I'd be using ncurses.

>>58310396
If ncurses is fine, how am I making life hard for anyone by making an alternative for me (and anyone who wishes) to use?
>>
>>58310416
it's a joke my dude
>>
>>58310416
>It's not even remotely "advertising",
I meant to say ' "advertising" your intentions'. And the scare quotes were to say you aren't actually advertising.
>>
>>58310345
huh, well i do see your point and I resp- FUCKINNNGG KILL YOURSELF YOU FAT NASTY TRASH
>>
>>58309352
>things i stole from reddit
>>
>>58310451
So in short, you're saying nothing, against someone answering the question in OP, nice job!
>>
File: 1477100868821.jpg (53KB, 720x960px) Image search: [Google]
1477100868821.jpg
53KB, 720x960px
>>58309476
this
>>
>>58310471
>So in short, you're saying nothing
Pretty much. Once you said that it was only for personal use, I stopped caring.
I just keep replying because I want those (You)s.
>>
>>58310488
It's for personal use, but it's open source, and will be released.

So here, have another (((You))).
>>
>>58310501
>It's for personal use, but it's open source, and will be released.
That's fine. Most of my shit is like that too.
>>
File: adsa.png (108KB, 1000x1000px) Image search: [Google]
adsa.png
108KB, 1000x1000px
made one of these meme triangles desu
>>
>>58309823
because it's fucking awesome, that's why.
>>58309868
fucking hell, i guess the vendor folded. but the 3 button being sold on amazon rn is 15 bucks and works well enough for chording.
works fine enough for chording, and it's 15 bucks, so yeah. 11 left atm
>>58309981
i actually reverse engineered it
>>
>>58310170
>implying AG is not useful
>>
>>58310525
its not a triangle its a polygon
>>
>>58310342
thanks! I'll get into it, then.
>>
>>58310778
>polygon

As opposed to a unigon?
>>
>>58309051
WTF these threads are only fa/g/s taking shit instead of discussing projects. I'm working on going thru Project Euler with C++, I'm on question 3
>>
>>58310778
Wew
>>
File: 1482586276695.png (3MB, 2048x1714px) Image search: [Google]
1482586276695.png
3MB, 2048x1714px
Employed Haskell programmer reporting in
>>
>>58310811
Mommy finally made you go flip patties in the McD's?
>>
>>58309074
>http://www.strawpoll.me/12023125
>text editor i use and like most

I use Vim the most but I hate it.
It's just the least worst for me.
>>
>>58309376
The fact you need to say this rather than just acknowledging an obvious joke is rather pathetic, you subhuman.
>>
>>58309489
Jesus fucking Christ. EVERY good programming language is literally just lambda calculus plus a few features. Underselling potentially the greatest human discovery of the 20th century like this is disgusting.
>>
Having a C ABI means that a library can be trivially ported to other languages without rewriting a lot of code.

>>58310397

It is if the container class manipulating it has correct code.
>>
>>58309168
I'm not a C++ user but I'm guessing that they're dynamic arrays.

https://en.wikipedia.org/wiki/Dynamic_array

TLDR a data structure like an array but when its full just makes a bigger array and copies everything over. Size grows geometrically so you have to do the copying less and less as it gets large but the trade off is wasted space.
>>
Anyone have experience with NVidia FLEX? Documentation seems pretty sparse.
>>
>>58310879
Kek
>>
What was the name of that one visual programming language that you'd type various commands and they'd appear in a 3D environment?
>>
>>58309185
>not saying that vectors are firsy order tensors
spotted the academic of trivia
>>
>>58309168

In the context of data structures (particularly those offered in C++'s Standard Template Library), a vector is a resizeable array with the ability to have an amortized O(1) appending of elements. In the worst case, append is O(n), but this only occurs every O(log(k)) times out of k appends.

In the context of mathematics, the concept of a vector can either be thought of as "something with direction and magnitude" (for instance, velocity and acceleration), or as a 1xN matrix, depending upon which area in mathematics you are working with.

The term "vector" is used for way too many things.
>>
>>58311113
And I found the guy who doesn't know what a tensor is!
>>
I wanted to use the function

char *strchr(const char *str, int c)

to count all a e i o u y in a char array but this shit is not working. does anyone know why? somehow the if statement is always true and it counts to 999

>The C library function char *strchr(const char *str, int c) searches for the first occurrence of the character c (an unsigned char) in the string pointed to by the argument str.

my program works with a switch statement instead of strchr.

#include <stdio.h>

int main(void) {

char array[1000] = {0};


int N;
printf("how many lines?\n");
scanf("%d ", &N);

int i;
int i2;
int counter[1000] = {0};

for(i2=0; i2<N; i2++) {

memset(&array[0], 0, sizeof(array));
fgets(array, 1000, stdin);


for(i=0; i<1000; i++) {


if (strchr("aeiouy", array[i]) != NULL) {

counter[i2] = counter[i2] + 1;

}

}

}


for(i=0;i<N;i++){

printf("%d ", counter[i]);
}

return(0);
}

>>
>>58311139
Basically the vector can act as a body of transfer.

In your typical program, the processor reaches for data wherever it may be. Although the same is true for all programs, the design of a vector, besides the necessitated use of it for quickly modifying arrays, stems from it's ability to act as a modicum of intent and magnitude within the fily system.

Have you ever played the snake game? That snake is a vector, and it grows by 1 every time it eats a block. A vector can be imagine to be that snake moving around the filesystem or ram state ( in a pointer language, of course ) and either supplying info or appending its list with more info.

Vector is popular at the low levels of computer programming because it heads the baseline of performance by automating arrays operations and integrating with the primitive of values. It can also represent or gauge more using the attributed properties of any particular vector and/or data construct the way those block visualizers gauge the signal at any particular frequency.
>>
File: coc.png (657KB, 1801x3588px) Image search: [Google]
coc.png
657KB, 1801x3588px
As a programmer, which CoC do you prefer?
>>
>>58311320
None, see D
>>
>>58311301
Not to be confused with a body of transfer. It's a body for transfer. So, while it could represent a physical thing that can hold and contain or whatever, it's really just relegating the sense of inhabitance and "fullness" to the purpose of the data. As long as there are elements in the list, the program has a purpose.
>>
>>58309051
>Animu bitch programming windows application

I thought you fags hated windows.
>>
>>58310525
Never understood the fractal meme, besides making pretty patterns, what uses do fractals have?
>>
>>58311320
literally who cares about CoC, what do their commit/language standards guidelines look like?
>>
>>58311412
learning recursion
>>
>>58311243
nothing worse than noob c
>>
>>58311320
Any project that assumes they need to dictate behavior to their contributors is garbage in the first place.
>>
>>58311301

I think you replied to the wrong post. I was clarifying what a vector is to someone who did not know.

>>58311320

This one:
https://github.com/domgetter/NCoC
>>
>>58311320
anyone tried to get into rust/go community under religious christian hetero white male profile?
>>
>>58311412
A lot of dynamical systems are modeled well by fractals.
>>
Anyone have some good noob projects for bash scripting in Linux?
>>
>>58311243
What a mess.

1. indent your [ code ]
2. strchr() and memset() are functions of string.h, you should include it
3. reread the specification of strchr(). This is not what you want, what you're looking for is strpbrk().
4. &array[0] == array
5. the inputted line may well be bigger than 1000-1 characters. As an exercise after this one, learn how to resize a C string dynamically and fill it with a fixed size buffer as long as the line has not ended.
>>
>>58311320
Are the CoCs just for github or can contributors get into trouble for things they post outside of github, e.g. Twitter?
>>
File: somethingelse.png (564KB, 3200x1080px) Image search: [Google]
somethingelse.png
564KB, 3200x1080px
>>58309051
Not working on WAMPVOIP for once.
I really need ublock.
>>
File: efa3.jpg (304KB, 582x844px) Image search: [Google]
efa3.jpg
304KB, 582x844px
Is it possible to open up a disassembly (x86 instruction set) of a certain program and start the execution at one of its subroutines, and only execute that subroutine along with the subroutines it calls, if all it takes is one register as an argument?

I think it should be possible, but the disassemblers/debuggers I've tried out (IDA and Ollydbg) only seem to allow full execution, and I can't execute the whole thing. I'm obviously new at this.
>>
>>58311577
>SeaMonkey

but why?
>>
File: Capture1.png (26KB, 563x533px) Image search: [Google]
Capture1.png
26KB, 563x533px
I know I should have defined my variables first, but why did it tell me 60? It should be 30.
>>
>>58311640
Firefox since 48 has gotten MUCH MUCH slower(unusably). Also, I just installed Slackware.
>>
>>58311641
Correction...It shouldn't have worked. If I didn't tell it what currentyear and birthyear are, how did it do the equation?
>>
>>58311641
If variables are left undefined they have an undefined value.
>>
>>58311608
Yeah, it's possible with a debugger, but you need a core dump of program state at the moment the program just called the subroutine in order to do it easily.

Otherwise, you could reassemble a program including the subroutine and its callees, and calling the subroutine from main, eventually with some initialization before.
>>
>>58311334
i love the D
>>
>>58311663

It read some arbitrary addresses in memory. This is what is known as "undefined behavior."
>>
>>58311412
You ever heard of a strategy buffer?

You model strategies around fractals.
"You do thing and then...you achieve thing and then you...you commit thing and then..." so on and so forth. I'm not so good at metaphors or analogies for fractals, probably because they act as such. I wish I could provide more insight.
>>
>>58311641
Order matters. A lot.
>>
>>58311402
Nah, they act like they do, but they all sercretly-or-non-secretly use windows 7.
What really gets me is that these fags will act like they hate proprietary software or whatever but then go with windows and still talk mad shit on OSX.
the fucking people who wrote C and UNIX while at bell labs are pretty open about how they mainly use OSX (with acme running on a second monitor)
/g/ is full of closet gaymers and cs101 students
>>
>>58311476
I was following your post with a further comment in the case that he was in need of a bit less integrated explanation of them. As you put it, he'd have to be a math major or half way through cs in order for it to make any sense.
>>
>>58311671
>>58311700
Thank you. I'm obviously new here.

>>58311706
I learned that. Took me 10 minutes of staring at it to realize what I did wrong.
>>
>>58311320
>coc
>Code Of Cucks
>>
Daily reminder:

Idris > Haskell > Scala > OCaml > F# > Elm > Erlang > C# > Java > C++ > C > D > Rust > Common Lisp = Scheme = Clojure > JavaScript = Python = Ruby = PHP = Go = Perl > Go
>>
>>58311812
Forth > *
>>
>>58311812
>JavaScript = Python = Ruby = PHP
1/10 for trying
>>
>>58311812
>Not using JavaScript for everything
>>
>>58311731
I legitimately use Fedora because I didn't want to shell out for Windows or a Mac. It also seems to be easier to cross-compile to Windows on Linux than the other way around.
>>
>>58311812
>Java > C++
are you fucking high?
>>
>>58311836
Forth isn't even a real language.
>>
>>58311866
Define "real language", or foreverially hold your peace tiedup and loving it
>>
>>58311874
I've never seen any Forth code used in production.
>>
File: stupidhoe.jpg (52KB, 948x700px) Image search: [Google]
stupidhoe.jpg
52KB, 948x700px
>>58311812
>Go = Perl > Go
>>
>>58311812
Functional Programming is a meme
>>
>>58311812
>muh partial order

Actually, there's an order between practical sets of language:

Languages you're comfortable with > Languages you're not comfortable with >>> Lambda calculus
>>
>>58311641
you dont need stdlib.h
>>
>>58311950
fuk u von neumann ur gay
>>
File: 1439499276511.png (443KB, 1024x1331px) Image search: [Google]
1439499276511.png
443KB, 1024x1331px
>>58311812
Oh man, this nigger knows exactly what he's talking about.
Really looking forward to v1. Anyone who really understands their type theory should be using Idris. Imagine trying to implement homotopy in fucking Java, the bloat would be unreal.

Idk about Scala over OCaml, but I use OCaml way more because I love Coq.
>>
File: 1482214929592.jpg (23KB, 460x345px) Image search: [Google]
1482214929592.jpg
23KB, 460x345px
>>58311943
>why cant i depend on changing states??? this makes no fucking sense
kys. just because you don't know how to haskell doesn't mean that all functional languages are blub trash
>>
>>58312009
Shut up or I'll drop my A-bomb right in your face.
>>
>>58312013
>but I use OCaml way more because I love Coq

We already know that buddy.
>>
File: 1481719735934.jpg (11KB, 342x282px) Image search: [Google]
1481719735934.jpg
11KB, 342x282px
>>58311850
I'll admit that I use a mac mainly because my roommate didn't need a $1200 facebook machine that his mom bought him, so I got him a used dell latitude in trade so that he could vidya, and then turned his macbook pro into a code monster. I also grew up using *nix and OSX is a pretty damn decent *nix.

For actual srs business aka my server, I run OpenBSD with XMonad. But for sitting around and jacking off with Coq or Atelier B or whatever, my mac is solid AF.
>>
File: 1481720034848.png (11KB, 313x188px) Image search: [Google]
1481720034848.png
11KB, 313x188px
>>58312050
I'm pretty fond of the D, too.
>>
Jeg forstår ikke hvorfor folk fortsetter å bruke dårlige programmeringsspråk som Go.
>>
>>58312161

De bruker et dårlig språk fordi de liker å suge peniser i helvete.
>>
File: Makise.Kurisu.full.753457.jpg (447KB, 760x950px) Image search: [Google]
Makise.Kurisu.full.753457.jpg
447KB, 760x950px
akaribbs is down and dpt is full of CIA niggers
>>
>>58312129
Pretty sweet trade for you.
>>
>>58312246
Yeah, he doesn't know shit about computers. But he can play his games and he grew up using Windows, so everyone's happy.
>>
is haskell esoteric?
>>
>>58312318
Not at all. It is simply the DRY principle taken more seriously than in most other languages.
>>
>>58312318
not at all. quipper is esoteric. idris is esoteric for anyone who isn't a type theory nerd. haskell's just solid AF
>>
>The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.
– Rob Pike on Go
>>
Having trouble creating homebrew for the 3ds.

I can't get the sf2dlib and sftdlib libraries to work properly. On Citra it gives a black screen and on an actual 2ds it gives odd colors across the screen.

Anyone here have any advice by chance?
>>
>>58312379
[citation needed]
>>
>>58312403
http://nomad.so/2015/03/why-gos-design-is-a-disservice-to-intelligent-programmers/
>>
>>58312379
Rob Pike is a confirmed mac user btw.
>>
>>58312401
language, code, maybe the tutorial you're using?
>>
File: rob-pike.jpg (19KB, 500x335px) Image search: [Google]
rob-pike.jpg
19KB, 500x335px
>>58312427
>>
>>58312427
Then why isn't he writing Rust?
>>
>>58312433
>language
C++

>code
I haven't posted my own code on github as of yet, but it's very similar to the sample the creator has in the library's own page.

https://github.com/xerpi/sftdlib

I think it might be either how I compiled the files, or the order in which I listed all the lib.a files in the Makefile. But I figured if that was the case, then it wouldn't have loaded at all.

It has me pretty confused.
>>
File: smug00002.png (191KB, 473x430px) Image search: [Google]
smug00002.png
191KB, 473x430px
>make /v/ post suggesting that you shouldn't use a game engine
>people tearing my shit apart because they think making your own engine is the hardest thing ever

They don't even know what they're saying and they're still attempting to reply.
>>
>>58312588
Making your own engine is a great learning experience. The end product is a bonus.
>>
>>58311320
postgresql
>>
>>58312600
I get that, but now they're even saying that rolling your own libraries is a fool's errand.
>>
>>58312722
sometimes it's pointless to reinvent the wheel

sometimes people don't want to learn but simply create cool stuff, and it's OK
>>
File: 32.png (2KB, 300x150px) Image search: [Google]
32.png
2KB, 300x150px
Sorry for the stupid question but the area of the red square is exactly half of the area of the black square behind it, right?
>>
>>58310791
I'm being pedantic, but that would be monogon

It goes mono/poly and uni/multi
>>
>>58312745
>cool stuff
>implying
Cut the bullshit this retards just want money because that's how the muh "system works".
>>
>>58312864
That's, like, basic geometry shit.
>>
>>58312864
No it's not.
>>
>>58312922
Just making sure desu I forgot a lot of geometry.
>>
File: 87.png (2KB, 300x150px) Image search: [Google]
87.png
2KB, 300x150px
And am I right in thinking the area of the red squares is exactly half of the area of the black square behind it in this image?
>>
>>58312864
>>58312928
the red square has half the area of the outer square, you can prove it to yourself just using the Pythagorean theorem
>>
>>58312864
>>58313019
Yes, now go learn basic geometry.
>>
JAVA OR PYTHON?
>>
>>58313054
Isn't Python basically just a more functional version of C?
>>
What's your favorite bash scripting tutorial/beginner's guide?
>>
>>58313054
both
>>
>>58313054
Neither
>>
>>58313054
Neither
>>
>>58313054
Neither
>>
>>58313122
just google when you don't know how to do something specific like string slicing
while\n do\n done
for i in (list of things here\n do\n done
if\n then \n else\n fi
set with n=15 or n=$(ls), recall with $n
wrap math in (())
if you need anything more complex than that+stringing together tasks in a row, a) don't use bash for it, and b) studying bash scripting won't help
>>
A good reason to use Haskell for projects is that you won't ever hire and subsequently have to maintain code written by Java or Python or Go or JS programmers.
>>
>>58313286
Use code tags.
>>
>>58313019
Divide the square into eights and you'll see that the red area is half the total area.
>>
File: dpt-poll.png (13KB, 660x249px) Image search: [Google]
dpt-poll.png
13KB, 660x249px
PÃ¥minnelse
>>
>>58313316
didn't want it 5 miles long with newlines+buffered space on top/bottom of text, and it's not like the post is improved from having the while be purple or whatever
>>
>>58312427
Linus Torvalds is a confirmed Mac user.
>>
>>58313329
Right now it's unreadable you dunce
>>
>>58313348
is this hyperbolic, do you have add, and/or have you ever programmed before?
what do you not understand?
>>
>>58313110
triggered.jpg
>>
>>58313376
It's parabolic, brainlet.
>>
File: hackerman.jpg (78KB, 500x492px) Image search: [Google]
hackerman.jpg
78KB, 500x492px
>>58313376
>\n
>>
>>58313414
I know how to use code tags, I'm not using code tags to write
while $var
do
looped code here
done

>>58313429
you'd rather the post be 7 lines longer for no reason?
hot tip, when at your computer hit enter each time I wrote \n, and don't type those two characters

why is this such a big deal
I fucking pray neither of you was the one asking for this
>>
>>58313341
I wasn't kidding. Pike - at least at his job at Google - runs OSX with one monitor dedicated to the acme editor ported from plan 9. Most of the former plan 9 crew that now work at Google use this set-up, but apparently everyone else there runs linux (source: an interview i read last night)
>>
>>58313491
If you don't see how that is many times more readable than the garbage you posted before then you are beyond help.
>>
File: 1482225616453.jpg (624KB, 1920x1200px) Image search: [Google]
1482225616453.jpg
624KB, 1920x1200px
>>58313504
Fuck readability. Is the file size smaller? Yes. So fuck you. It doesn't fucking matter if plebs can read it as long as it runs as best as possible and takes up the least space. I bet assembly gets your dick soft. I bet your idea of "programming" is copypasta-ing libraries that you googled. Fuck off, men are talking here.
>>
>>58313532
I use a compiled language.

protip: the compiler gets rid of whitespace, so my code can be readable without losing performance
>>
>>58313532
>I fucking pray neither of you was the one asking for this

ily
>>
>>58313504
I see how it's more readable, I don't see why that's necessary for 4 lines of code going in and out of non-code text, or why legibility is necessary for understanding the base constructs of a language
it's not like you really care whether it's nicely spaced out, what you get from my post is that it's if condition;code;else;fi in bash, and then you stop reading and start writing something
I'm not gonna frame it and put it up on my wall or print it out and keep it in my wallet
>>
File: normal_IMG_0602.jpg (21KB, 349x262px) Image search: [Google]
normal_IMG_0602.jpg
21KB, 349x262px
>>58313546
didnt mean the greentext words, i accidentally
>>
>>58311686
I think I'm getting the hang of it, slowly. Using IDA, I've managed to attach it to the process and get to the point the subroutine is about to be executed. It's just a bit difficult to get it to work the way a want since it seems to have a performance counter running on a separate thread.

I might as well go ahead and ask. Since this program decompresses the data it loads on memory. Is it also possible to retrieve that decompressed data using IDA?
>>
>>58313549
I'm not prepared to try to read poorly formatted code.
>>
Why is there such a fuss about codes of conduct these days?
>>
>>58313583
that's your problem
you can walk away from your computer now satisfied in yourself, or you can take 20 seconds to read what I wrote and start writing whatever shell script you wanted instead
you could also just copy/paste what I wrote into your editor, which you presumably have open, to get syntax highlighting, and search/replace \n's with newlines
>>
>>58313622
Cynical answer: it allows people who don't like to actually work on code to "contribute".
>>
Does anyone have a good tutorial for bash scripting?
>>
>>58313654
Why should I do any of that, anon? It's you who's having the problem, not me.
>>
>>58313622
it's paid mod shills

>>58313549
You need to understand that there is a lot of pedancy here. Not just becaue asians and autist white kids, but because black "intellectuals" and the general fedora, as well.

When a topic shifts from code to correction, is usually a good idea to ignore that MOD, yes it's a mod, and look for someone else to talk to.

Remember, autist, asian kid, black man, fedora.

You're either going to be arguing with the autist's mother, the asian kid's whole country and legacy, black man's hood/mother/woman/enemy/church/favorite superstar/pains/current insecurity/favorite twitter personalities/favorite youtube personalities/favorite rapper/etc. ALL AT ONCE ( that's why it's like you're always arguing with the same person over the same stupid shit ), and the fedora's unwillingness to confide in another's intellect. Mostly due to the above and the general nature of the normie way versus what it's like on the internet and in books.


>>58313583
Don't you look for common constructs? Or do you look for an entire and proper meld before you even attempt to correct someone else's code? The general idea behind interactive/script/utility/automation programs is usually pretty straightforward. Just leave him to his code if you really can't read it. Hovering over it trigger you? Hide Post
>>
>>58313682
By adding ever more protected classes to a project's code of conduct?

By demanding that people who said something on their personal Twitter be removed from a project?

I think I get it.
>>
>>58313622
feminist women figured out that "coding" actually requires lots of effort to become competent and they took the easy way out

they can insert themselves into software projects by demanding that projects adopt condescending "code of conducts" to "protect marginalized people" from the grown men who work on that project.

The "coders covenant" encourages expulsion from a project for committing wrongthink on a public forum that has nothing to do with the project.
Basically, it's an insidious way to remove people who oppose feminists.

eg, a developer for a project says something politically incorrect on twitter and apparently the project is supposed to expel this developer no matter how valuable he is, despite the tweet having nothing to do with the project.
>>
>>58313696
>Don't you look for common constructs?
Yes, but I didn't see any. Just a bunch of impure imperative stuff.
>>
>>58313708

So how do these covenants get around ban evaders? You make a new github account under a different name and keep contributing as normal. They have no way of verifying that newcomers to the project were not a person who was previously banned.
>>
File: 1472059625724.jpg (198KB, 800x994px) Image search: [Google]
1472059625724.jpg
198KB, 800x994px
my site is constantly targeted by sophisticated scraper using botnet/hacked servers

i'm always writing scripts for better detection

this is never ending hell
>>
>>58313708
>tfw people are now afraid to work with female programmers in case they turn out to be SJW nutjobs
>tfw people now assume any female programmer with a job got it because of her gender, not her ability
>>
>>58313740
If you were just ousted from a project you contribute to, why would you want to go back?

Why would you try to reinsert yourself in a toxic environment where you're no longer wanted?
>>
>>58313740
They would be devastated if they weren't allowed to do something without plastering their name all over it, so they project that onto others.

Also >>58313753.
>>
>>58313752
Wow, progress is great! :^)
>>
>>58313762
No, they want to improve software and be able to claim credit for their work.
>>
>>58313747
Just give in to Google.
>>
>>58313683
Why not try the official one

https://www.gnu.org/software/bash/

most often, these will have the most succinct form of transcription for any process. Though, with the GNU and enterprise projects, you will probably need a bit of theory from like a programming language or at least the theory of one such language. You could do it the Computer Information Systems way but you might get lost when you get to the actual scripting over getting to know the environment.

After that, the best way to learn these things is to have something in mind and executing using the tools. One such simple activity would be setting up your linux or figuring out how to manage files in a filesystem. Things like copying individual files, reading output of file contents and then packing those in directories and, essentially, setting up a new environment for different kinds of work. Remember, everything is a file. Some of them just fit better at different points and some of them don't have enough info or have too much info when attempting to complete a task with that file. That's a general way to put it.
>>
>>58313772
Then you would fork it.
>>
I started learning C ~3 weeks ago and now I do the python exercises on codeacademy.com.

after eacg exercise I feel like I'm slowly forgetting C syntax. maybe I should stop
>>
>>58313685
no, it's you
you asked for a bash scripting guide, I wrote one, you find it illegible
you told me to change what I wrote, and won't accept that I'm not going to do so
how am I the one with an issue here? I'm not changing or reposting what I wrote, and I know how to write bash scripts
>>
>>58313788
It would be preferable not to have to fracture the community like that. Splits are rarely easy and smooth.
>>
>>58313788
Nobody is going to follow you.

Unless you're the founder and want to kick everyone out, nobody is going to do this.
>>
File: 1482417164304.jpg (166KB, 960x960px) Image search: [Google]
1482417164304.jpg
166KB, 960x960px
Is there any proof that the Russians are behind the DNC / Podesta leaks?
Does the source of the leaks affect the validity of the content in the (hashed, verified) emails?
Why is /g/ a battleground for this shit, anyway?
How much does it pay to try to shut people up about this?
Why does the MSM cover pedophilia scandals for priests, cops, and teachers, but the second politicians get implicated, we get pushed a bullshit "fake news" narrative?
How to I connect OpenBSD running in a VM to my wireless network?
Are there any good tutorials for using the acme editor?
Has anyone done anything cool with Quipper?
How is it so weird to believe that underage sex trafficking exists among the ultra-rich and the elite when former speaker Dennis Hastert is a confirmed rapist and Jeffery Epstein got prosecuted?
Why did Bill Clinton take all of those trips on Epstein's plane to Epstein's private island?
Why did James Alefantis call an infant a "hotard" on his instagram account?
>>
>>58313797
I'm not even that anon, lol
>>
>>58313783
>would be setting up your linux or figuring out how to manage files in a filesystem
What exactly does this mean? I have abstract ideas of what I might want, but nothing concrete to start with.

Also, I didn't see a tutorial on that bash page. Is it somewhere else?
>>
>>58313795
>>58313795

also how the fuck can people who started with python can learn C after it?

they must be getting so annoyed by it.
>>
File: 1471744753806.jpg (44KB, 499x499px) Image search: [Google]
1471744753806.jpg
44KB, 499x499px
>Quipper was developed at my university
>one of the major contributors to HoTT is a professor at my university and worked on Quipper
>>
How many threads is too many? I hear people complaining all the time about applications not using all of their cores properly.

If I have a function that performs an operation on every index of a short array, would it make more sense to run each operation on each index in its own thread? Obviously there's an overhead to creating threads, so what is a sensible metric for the trade-off involved?
>>
>>58313753
That environment isn't toxic. The newly improvised toxin is. What better way to assert yourself over a project and problem, as a lead the way the hypothetical was put, than to be put down by it only to rise again.

This is like meeting your friends new friends, them deciding to be rude, toxic, impure and immature about you and then them calling you toxic and that you should just remove yourself.

It's some straight up asia nigger shit. The way China got rid of all the other asians not on the mainland.
>>
File: dylan_function_builders.png (90KB, 687x592px) Image search: [Google]
dylan_function_builders.png
90KB, 687x592px
>>58309392
By itself they are quite useless, but since in most implementations you also have higher order functions and closures, you can use them to generate code or to specialize functions.

They also allow you writting various function compositors, like curry, rcurry, conjoin, ...
>>
>>58312443
I like this pic because it looks like he's wearing goggles and one of those old timey bathing suits and is getting ready to go swimming. The background even looks like a changing room.
>>
File: atelierB3fondblanc.jpg (24KB, 400x400px) Image search: [Google]
atelierB3fondblanc.jpg
24KB, 400x400px
Is there any proof that the Russians are behind the DNC / Podesta leaks?
Does the source of the leaks affect the validity of the content in the (hashed, verified) emails?
Why is /g/ a battleground for this shit, anyway?
How much does it pay to try to shut people up about this?
Why does the MSM cover pedophilia scandals for priests, cops, and teachers, but the second politicians get implicated, we get pushed a bullshit "fake news" narrative?
How to I connect OpenBSD running in a VM to my wireless network?
Are there any good tutorials for using the acme editor?
Has anyone done anything cool with Quipper?
How is it so weird to believe that underage sex trafficking exists among the ultra-rich and the elite when former speaker Dennis Hastert is a confirmed rapist and Jeffery Epstein got prosecuted?
Why did Bill Clinton take all of those trips on Epstein's plane to Epstein's private island?
Why did James Alefantis call an infant a "hotard" on his instagram account?
>>
>>58313970

(You(
>>
>>58313852
Lol wait do I know you???
>>
>>58309082
data Iterate f a = Empty | Node a (Iterate f (f a)) (Iterate f (f a))

use Iterate [] T to fulfill the requirements
>>
>>58313852
How'd ya know I'm into HoTT though? I posted something about implementing homotopy earlier ITT but not in any way related to me shitposting about quipper
>>
>>58309392
Lambdas (and thus first class functions, which lead to higher order functions) allow you to directly abstract over code, not just data.

>>58313866
One thread per logical core. Kick them all off when the program starts (or maybe lazily) and leave them running. Put them to work using a job system.

>If I have a function that performs an operation on every index of a short array, would it make more sense to run each operation on each index in its own thread?
Maybe. Depends how large the array elements are and how much work you are doing with each. False sharing can fuck you over.

>>58313999
You might, anon.

>>58314018
I'm into HoTT myself.
>>
>>58311889
It's used often in embedded computing and plane
industry. It even went into space.

Did any of your code went into space?
>>
>>58314026
>Lambdas (and thus first class functions, which lead to higher order functions) allow you to directly abstract over code, not just data.
And what does that imply?
>>
File: PYTHON.jpg (9KB, 368x85px) Image search: [Google]
PYTHON.jpg
9KB, 368x85px
>>58313849
>>58313849

omg guys this is amazing
>>
File: make-dmbs.png (27KB, 637x353px) Image search: [Google]
make-dmbs.png
27KB, 637x353px
>>58314065

>>58313926

And also they allow you to portray data through functions, but this is more due to them being closures.
>>
>>58314065
Easier factoring out of duplicated code. Easier advanced control flow.
>>
>>58313825
Setting up your linux basically means filling in your /usr/local/bin directory and /bin directories with the kinds of programs you want/need. Setting paths to aliases and creating variables you think you'll be needing, in the case that you want to treat the OS like an environment rather than a simple computer.

GNU/Linux is essentially a collection of the machinations of your processor as instructions that point it at the different parts on your computer. So, like, if a directory represented your Linux Distro, one directory up would be the GNU toolset, and every directory below Linux would be describing each "machination" ( my word for concept of mechanical doohickey ) and have "driver" files that in them would refer to the machination files so that when you accessed the file from a neutral point of process, you could, essentially, "copy paste" what's on one side of the file system to another without having to describe the path of the electrical charge with an even more complicated system of inference ( Though, most tecnically, you are describing the path..just from a few orders of magnitude lower ).

So, if you want a linux that accesses things based on timing, you set up a series of folders that'll hold your timing info, start from on directory, write middle path logs to a second directory and output to a third. Then run the whole program in full and check the times.

To do the above, you would just need to set up a directory to hold those three sub-directories and from within that directory run commands that'll produce meaningful data, evaluate the processing power, time, cycles, etc. and have them output to the sub-directories.


Another thing you could do is make it run to a design if you understand your hardware real well. But that's a bit more involved and might require tinkering with the kernel.

You could set up some partition on it to act like a webserve and test out your networking skills.
>>
>>58314137

You could set up a set of directories that hold m amount of files over n number of rows and have pixel data in each file that would output the screen the data, whether through gtk, opengl or simple ANSI styled monospace text is up to you and then use your terminal to develop a sort of game and make an environment that ignores the whole computer side of things, once you're in this directory, and just acts like a console/game debugging deal.

There's really a lot you could do with it, but you gotta be real specific or you might lose some detail or vision while trying to re-encapsulate the essence of the idea into parts that the machine can manage. It can manage a lot but the more there is to manage to more complicated it can all get. Unless you set yourself up in a way you know you can always remember and handle or if you organize yourself extremely meticulously.

So, to answer the original question:
Managing a file system is just like organizing your binder, or your windows directories, or your picture folder, or your homework folder. Just on a larger scale. There's also the idea that you want environments within the file system and that you can literally edit out anything and redefine what a filesystem is for some. GNU and Linux are not monolithic. Not too monolithic, anyway.
>>
Is cracking the coding interview worth it?
>>
>>58314192
and, btw, when I mean specific, I mean for the sake of having a full set of data to work off of in improving or catching mistakes from different perspectives.

Like, you could make a game that has literally 7 states and based on some really linear conditions, meaning someone chose 4 and another someone chose 2 and is next, you could prepare the next event to always be return 7 but that would be kind of unintuitive just as this example is. While the point of programming and computers is to do things quicker, marginalizing the method can lead to bogs in the future and the further forced approximation of some of the more descript things. Nothing really comes to mind right now ( ahaha ) but I know it's true because I've run into it a lot. I do recall that it would've required the same codebase for every different player to be repeated and doubly for updates. It basically cuts down on variation. I try not to mess with things of a narrowing nature unless it's from deducation. I also don't know how to just sit there and make lists without having a friend to chat to or music I can ignore ( nu jazz is good for this and I'm not even weeb or fedora )

Also, you encounter a lot more asian stuff ( don't kill me asians, I grew up with a ton of you) in working with computers and there are a lot of very forceful asian religions and ideals, vocations, parametrics, rhetoric and general shillery that I try my hardest not to have influencing me during the brainstorming, verification and validation points because those guys do not live in an environemnt like mine. I am libre and they are monolithic. Every must fit the Way. I know sometimes it's for a good reason but most of the asian dudes here are rich and don't need that shit. They'll never argue good structure and coding practice with you. They will just correct you, see re-direct, and call you poor and bytfo.
>>
>>58314137
>>58314192
>>58314316
Is this copypasta?
>>
>>58313753

If you spent the last several years dedicating yourself to a project, why would you allow yourself to stop contributing just because everyone else thinks you're a jackass? Fuck everyone else. The code is the only thing that matters.
>>
>>58314363
>why would you allow yourself to stop contributing just because everyone else thinks you're a jackass?

If that was the case, nothing would change.
It's when you're forcibly removed from the project.
>>
>>58314316
Sorry for going off topic. This place gets my dander up bui there's really no where else that offers the freedoms we get here. I don't have to click here, ask this way or that way, I can call you a fag, I can hate women, etc.

Anyway, narrowing is a both a good thing and a bad thing in programming. Good because it means you're done. Bad, in the case of not being done, because it means you have to stack it all up again and hope you don't forget the stack you had before and also maybe the original narrowing could follow a the ideal strategy whereas the second one will have to abide a whole separate strategy and thus tank performance. With numbers, you write out less, faster, and you get to say less, faster and safer.

Don't mind legibility unless you will be looking for people to read it and making sure they read it whole and give you critiques. I had a great system for myself, I could work for days, until I started trying to share my code in more ways than C. Now, I have picked up a lot more considerations and work a million times slower because of how agitated I became in deciding that these stupid faggots are the only people that will wanting to read my code.

Except ruby and a few others here. Though, the others are usually anon.

If you didn't learn English as a first language, treat it like translations and direct translations. Now explain that to an autist with aspergers and that knows how to script in bash. You will have to learn the method for the "lowest common denominator" out here as well as managing the infinitely complex possibilities of your new set of skills.

Okay, I'll stop.

ps. I have no problem with any of those people. As Chen Zhen said it, "I don't hate". But I get sick of the same autist mother arguments, same chinese way pointers, same black insecurities and bullshit tautologies and fedora social skills.
>>
>>58314448
oops

here's the gnu manual incase you didn't get it earlier.

It doesn't provide a workflow but it does give in depth explanations of every functions in there. And most functions are named as you would know them. Except for special utility functions that are named after the computer science terms. Just please don't forget how you describe functions to the day. You'd be surprised how agitating these faggot fucks can be.
>>
>>58314502
https://www.gnu.org/manual/manual.html


link

>>58314342
No. I just typed that out. Is it wrong or something? Btw, copypastas are just for being aloof and annoying.
>>
>>58314072
just type them in capitalized...

If you accepted it as a input and it was over 67, add 100.

It's not difficult. Sometimes it may even space out peak action in a heavily parallelized system.
>>
>>58314342
Btw, I have one of these posting sprees every few weeks.

Also, Hi Ruby.


ps. Here is a list of book by the dudes that made bash. Imma do this for now, myself.
>>
>>58314574
https://www.gnu.org/doc/other-free-books.html
>>
I have about a month to learn C++ for a new position I'll be filling. I have some experience with JavaScript and Java, but I've never actually worked with C++ or C before.

All I know so far is I'll be working in a Linux environment, and all I have so far is a 1000 page study guide by Stroustrup himself. How would I best go about getting familiar with the language in such a short timespan?
>>
>>58314596
Implement old projects in C++
>>
>>58314192
>>58314316
>>58314448
Are you like, a crazy person or something?
>>
Name ONE (1) thing that emacs can't do.
>>
>>58314774
Make you lose your virginity.
>>
why is web dev so much harder than normal dev

nothing makes any sense

it's dozens of arbitrary frameworks stacked on top of each other until there's no more logic to it
>>
>>58314774
be a good text editor
>>
>>58314808
Wrong.

>>58314844
Also wrong.
>>
>>58314774
That's the problem.

Emacs is an operating system that also happens to edit text.
>>
What's the best "universal"ish IDE for Linux?
>>
>>58314901
emacs or vim
Linux doesn't really have its own Visual Studio, you can check out codeblocks or IntelliJ though if you really need an IDE
>>
>>58314838
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f
>>
should everybody know JavaScript?
>>
>>58310606
>Implying any math is usefull higher than calculus and basic linear algebra
>>
>>58315022
>implying HoTT won't replace CS in 10 years
>>
>>58315020
No. Nobody should know Javascript.
>>
>>58315016
>half the reasons he shouldn't use x is because it's 2016
I can only hope he's exaggerating here
>>
>>58315084
Are you literally autistic? Can you not figure out which character represents the author?
>>
What's the best book to learn hacking?
>>
>>58315051
>modern CS
>practical
Tell me when you automated proof machine can reverse engineer binaries. Then I'll be scared for my job
>>
>>58314901

vscode is comfy.
>>
>>58315125
>automated proof machine
Type theory is thankfully moving away from proof automation and tactics bullshit towards focusing on making proofs easier to write.
>>
Working my way through pythoncrashcourse projects pretty fun book would recommend
>>
>>58315016
My fucking god. My sides have passed the oort cloud.

This shit is 100% true.
I was in this exact position, and just ended up using jQuery and some lambdas. Sorry. Callbacks. It's not that hard to write
var downloadComplete = function ...

And just supply that as the callback function.
That's not spaghetti. That's not hell. That's just... A simple solution to a small problem.
>>
>>58314838
what kind of stack doesnt make sense to you?
>>
>>58315125
>>58315142
And by easier to write I mean having e.g. quotient inductive types built in to the language instead of setoid diarrhea everywhere. HoTT is literally that but higher inductive instead of quotient and groupoid instead of setoid.
>>
>>58315169
It's not that any given stack does or doesn't make sense, it's that JS now has more scaffolding bullshit than Java. Except with Java, if you want full on enterprise Spring, you have ONE dependency that you declare, and tools take care of shit for you. And these tools don't change every year.

>>58315174
Could you write that but in English?
>>
>>58315115
I think you should check your autism, I was asking how much he was exaggerating when he said that one of the bigger reasons he was given to not use a certain library was because "it's 2016"
>>
How do I train my left pinky for professional use of emacs?
>>
I'm reading Programming from the Ground Up (http://gnu.mirrors.pair.com/savannah/savannah//pgubook/ProgrammingGroundUp-1-0-booksize.pdf) to try to learn some of the main lingo for programming while also learning some core ideas.

I have some background in C++ and Java. Is this the 'right' next step?
>>
>>58315205
By learning to use your right thumb as well
>>
>>58315186
>>58315186
I disagree, most of the stuff that's surrounding a React stack is staight forward
>>
>>58315221
>right-thumb emacs

I didn't know it existed...
>>
>>58315232
I mean, assuming your keyboard has right and left alt and ctl keys
>>
>>58315205
don't use emacs, you will get carpel tunnel
>>
do programmers have a higher than average IQ?

is this proven?
>>
>>58315247
Is this true or a meme?

My mom just started using emacs.
>>
>>58315251
most programmers are quite stupid
it doesn't take very much effort to regurgitate design patterns mindlessly from rote memorization
>"i do it that way because thats how i was taught"
is the mating call of the cargo cult codemonkey
>>
looking for a project to contribute to

hopefully one that doesnt use some age-old "mailing list" shit.

C/C++
>>
>>58315274
It's a meme since some high-profile Emacsers has it. But you can get around it by doing some simple steps. Mapping Caps-Lock to Ctrl helps a lot.

You could also try using your wrist to hit the ctrl-key instead of using your pinkey. Some people prefer that. I prefer remapping Caps-Lock because it makes other programs comfier too.
>>
>>58315292

why dont you just go on github

i'm a total noob and I know this
>>
>>58315403
because if i go on the "explore" tab on github I'm just going to get some fucker's repo programmed in "Go" or some javascript fuckery and all the C++ stuff actually featured is big-time shit like FFMPEG or whatever.
>>
new to programming..i've made a few things on github and recently some people have been submitting merge requests to me after they change a few comments and nothing else

is this normal? whats the reasoning for even doing this? all they do is make my comments more wordy
>>
>>58315499
>he got git by the github grammar nazi fairies
>>
>>58315499

lets see your projects
>>
>>58315016
So this is why the obamacare website had more lines of code than windows xp and cost billions of dollars....
>>
>>58309528
Storing routes
>>
New thread:
>>58315601
>>
Monads are a fucking farce.

If you base a language on the lambda calculus with continuations (which is more fundamental than pure lambda calculus), they're unnecessary.

>inb4 Haskellfags trying to defend a language based on a deprecated calculus
>>
>>58315853
>impure more fundamental than pure lc
amusing but i'll humour you

>monads are a farce
Monads provide two main things
1) As they are a functor, namely an applicative, you can embed a value into a monadic computation, e.g. IO Int, rather than just a singular IO type
2) Monads allow you to make decisions on what 'effect' to do next.
Regular applicatives cannot do this.
>>
>>58315853
>>58315967
If you didn't want embedded values, then a simple monoid (or semigroup if there's no noop) will do, e.g. raw ASM

There are other useful objects like indexed monads, which allow you to enforce certain constraints, e.g. "you can't leak file handles if you want to turn this File i j () into an IO ()"


But of course, monads work a lot like continuations.
Did >>= (\x -> ... ) not tip you off?
Do notation (which Haskell uses for monads) is actually good for continuations (which is why it works with monads).
Thread posts: 324
Thread images: 38


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.