Post 407841 by ale@mastodon.sergal.org
(DIR) More posts by ale@mastodon.sergal.org
(DIR) Post #407711 by ale@mastodon.sergal.org
2018-10-07T01:49:52Z
0 likes, 0 repeats
HOLY SHIT I'M STUPID
(DIR) Post #407720 by ale@mastodon.sergal.org
2018-10-07T01:50:30Z
0 likes, 0 repeats
I SPENT THE PAST HOUR TRYING TO IMPLEMENT THE SAME FUNCTION I ALREADY MADE LAST WEEK IN ANOTHER PROJECT
(DIR) Post #407725 by ale@mastodon.sergal.org
2018-10-07T01:50:55Z
0 likes, 0 repeats
I CA NNOT BELIEVE MYSELFI COULD'VE SAVED SO MUCH TIMEWITH COPY PASTE
(DIR) Post #407734 by tsu@social.tsuki.club
2018-10-07T01:50:56.569442Z
1 likes, 0 repeats
@ale hey, w.e. is goin on, you're not dumbhope everything's ok
(DIR) Post #407735 by ale@mastodon.sergal.org
2018-10-07T01:51:16Z
0 likes, 0 repeats
@tsu read thread
(DIR) Post #407748 by SIGCINT@layer8.space
2018-10-07T01:51:46Z
0 likes, 1 repeats
@ale THIS STATEMENT IS BASICALLY UNIVERSAL THO
(DIR) Post #407773 by tsu@social.tsuki.club
2018-10-07T01:52:38.710581Z
1 likes, 0 repeats
@ale abstract reusable code to a library you can import into other projects
(DIR) Post #407774 by ale@mastodon.sergal.org
2018-10-07T01:53:19Z
0 likes, 0 repeats
@tsu im gonna publish an npm package that validates urls with a simple regex pattern and have it get like 50,000+ dependents
(DIR) Post #407789 by ale@mastodon.sergal.org
2018-10-07T01:53:38Z
0 likes, 0 repeats
@tsu (it's for validating hostnames :P)
(DIR) Post #407841 by ale@mastodon.sergal.org
2018-10-07T01:58:04Z
0 likes, 0 repeats
the life of a programmer:re-implementing the same thing multiple times and then realizing :woah: i could've saved a lot of time by just putting this into a small librarythe eureka moment :blobmelt:
(DIR) Post #407852 by ale@mastodon.sergal.org
2018-10-07T01:59:18Z
0 likes, 0 repeats
then there's /those/ people who make absolutely everything a pure function (aka every method/func does one single thing)these people are bad
(DIR) Post #408022 by Vault@mstdn.io
2018-10-07T02:23:01Z
0 likes, 0 repeats
@ale and then later realizing you don't want to put up with the design choices of the library developer and you re-re-write everything again. fml
(DIR) Post #408040 by veryonline@witches.live
2018-10-07T02:26:13Z
0 likes, 1 repeats
@ale I spend a great deal of time creating libraries that I never use.
(DIR) Post #408043 by ale@mastodon.sergal.org
2018-10-07T02:26:25Z
0 likes, 0 repeats
@veryonline NICE
(DIR) Post #408055 by veryonline@witches.live
2018-10-07T02:27:49Z
0 likes, 0 repeats
@ale Doesn't pure function mean it has no side effects?
(DIR) Post #408277 by ale@mastodon.sergal.org
2018-10-07T02:51:04Z
0 likes, 0 repeats
@veryonline yesi.e. f(x) = x + 1like math. you give it a value, it returns a value. that's it
(DIR) Post #409222 by majachai@niu.moe
2018-10-07T04:40:52Z
0 likes, 1 repeats
@ale that's not the point of a pure function. it's just a function that will always do the same thing when provided the same input arguments (so it doesn't affect global state or rely on external factors that could produce error states). it doesn't mean making something really specific