|
"best javascript package manager" is in the same class as "most trustworthy bitcoin exchange" or "funniest post by me" there's probably a word for it
|
# ? Apr 3, 2016 02:11 |
|
|
# ? May 25, 2024 15:24 |
|
lesser of two evils?
|
# ? Apr 3, 2016 02:18 |
|
bower was kind of a weird thing since npm was already around and they worked so similarly. like you have an npm for back-end stuff and an npm for front-end stuff, why not just have npm? also css is a lot better if you don't have to target <ie9 and even better if you can do flexbox, and then even better if you can do the new gridbox. a lot of the problems with doing web development even a year or two ago was that you had to keep developing to support the complete garbage fire that is ie6/8/9 instead of the semi-garbage fire that is chrome/firefox/edge
|
# ? Apr 3, 2016 04:00 |
|
ms is hard at work closing the strategic dorkster gap: http://dotnetfringe.org/
|
# ? Apr 3, 2016 18:34 |
|
NihilCredo posted:ms is hard at work closing the strategic dorkster gap:
|
# ? Apr 3, 2016 21:51 |
|
i think i might be too stupid for haskell
|
# ? Apr 4, 2016 15:48 |
|
Bloody posted:i think i might be too stupid for haskell I know I am.
|
# ? Apr 4, 2016 15:55 |
|
i made a program that takes input and turns it into numbers and adds the numbers and compiles into an executable omg this is the most i have done with haskell ever
|
# ? Apr 4, 2016 16:02 |
|
nobody is too stupid for haskell. its pretty easy unless you try to dive into the weird esoteric research stuff. its just weird at first
|
# ? Apr 4, 2016 16:07 |
|
idk i just wanna make a parser thing
|
# ? Apr 4, 2016 16:09 |
|
Condiv posted:null? not Optional<T>? shame on you dont use optional<t> in constructor. really you should only use optional<t> when it's the return value. your constructor should handle null values.
|
# ? Apr 4, 2016 16:10 |
|
gently caress i just outed myself as a java dev
|
# ? Apr 4, 2016 16:14 |
|
Bloody posted:idk i just wanna make a parser thing you're in luck, Parsec is very easy and fun to use, even I with my tiny brain could write a parser for a toy language
|
# ? Apr 4, 2016 16:21 |
|
holy poo poo i parsed a line
|
# ? Apr 4, 2016 16:27 |
|
Bloody posted:holy poo poo i parsed a line
|
# ? Apr 4, 2016 16:32 |
|
ragel is cool too if you want to sperg out on parsing weird protocols. i used it to generate efficient C code to parse terminal escape chars to capture mouse movement in a terminal. dont ask what for, its for a project.
|
# ? Apr 4, 2016 16:33 |
|
unfortunately my parsed line is inside an either and i don't remember how to do poo poo with an either
|
# ? Apr 4, 2016 16:35 |
|
its either an error or a statement and i just wanna know which, yknow?
|
# ? Apr 4, 2016 16:36 |
|
use monads
|
# ? Apr 4, 2016 16:40 |
|
i liked it when elm renamed either to result with ok, err tags instead of left, right tags. i can never remember if left is supposed to be the good one or the bad one
|
# ? Apr 4, 2016 16:41 |
|
has any multi value return function returned an error on the left side?
|
# ? Apr 4, 2016 16:49 |
|
Bloody posted:its either an error or a statement and i just wanna know which, yknow? Pattern match on it with case. It's constructors are Left and Right. (Right is valid, Left is error by convention). Feel free to error on a Left if you dgaf
|
# ? Apr 4, 2016 16:53 |
|
CRIP EATIN BREAD posted:has any multi value return function returned an error on the left side? Haskell eithers do, see my previous comment.
|
# ? Apr 4, 2016 16:53 |
|
CRIP EATIN BREAD posted:gently caress i just outed myself as a java dev java is good. not as good as c#, but java has maven which is the best ever
|
# ? Apr 4, 2016 16:54 |
|
Shaggar posted:java is good. not as good as c#, but java has maven which is the best ever remember when maven central didnt do ssl unless you paid, and someone wrote that cool proxy server that injected a picture into every package you downloaded from maven central
|
# ? Apr 4, 2016 16:57 |
|
CRIP EATIN BREAD posted:remember when maven central didnt do ssl unless you paid, and someone wrote that cool proxy server that injected a picture into every package you downloaded from maven central link pls
|
# ? Apr 4, 2016 17:01 |
|
CRIP EATIN BREAD posted:remember when maven central didnt do ssl unless you paid, and someone wrote that cool proxy server that injected a picture into every package you downloaded from maven central I hadn't heard of that but you would have had to switch to the proxy server to use it, wouldn't you? or was it just a poc?
|
# ? Apr 4, 2016 17:03 |
|
I'm on a diet and can't eat burritos
|
# ? Apr 4, 2016 17:06 |
|
Janitor Prime posted:link pls Shaggar posted:I hadn't heard of that but you would have had to switch to the proxy server to use it, wouldn't you? or was it just a poc? http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/
|
# ? Apr 4, 2016 17:10 |
|
Bloody posted:idk i just wanna make a parser thing are you making a hardware parser? how's things with CλaSH?
|
# ? Apr 4, 2016 17:34 |
|
clash makes sense for datapath, but how do you model something like an icache? seems pretty stateful imho
|
# ? Apr 4, 2016 17:43 |
|
eschaton posted:are you making a hardware parser? im makin a simple verilog linter thingy clash is currently in the "uh wtf is any of this" state for me
|
# ? Apr 4, 2016 18:00 |
|
gonadic io posted:Pattern match on it with case. It's constructors are Left and Right. (Right is valid, Left is error by convention). yeah how do i do this from the interactive prompt i just wanna poke the output
|
# ? Apr 4, 2016 18:00 |
|
Bloody posted:yeah Call isLeft / isRight to see which one you've got Then "let (Left x) = val" to pull it out. Now x is bound to the inner thing I'm actually a bit surprised that either doesn't have a function like fromJust but whatever.
|
# ? Apr 4, 2016 18:46 |
|
oh im dumb and was misusing megaparsec
|
# ? Apr 4, 2016 19:59 |
|
So if you put just a function name or variable name in an if statement in javascript e.g. JavaScript code:
e: the code i'm looking at seems to assume this is the case, but it's a broken mess so i want to double-check HoboMan fucked around with this message at 20:51 on Apr 4, 2016 |
# ? Apr 4, 2016 20:47 |
|
HoboMan posted:So if you put just a function name or variable name in an if statement in javascript Yes It's just testing truthiness/falsiness on whatever variable you have in there. Null and undefined are false, objects and arrays (even if empty) are true, etc. Be careful with 0 and empty strings since those probably false
|
# ? Apr 4, 2016 20:49 |
|
verilog is icky poop
|
# ? Apr 4, 2016 20:55 |
|
i never did anything with verilog, just VHDL, and that was p. cool. that was a decade ago, tho.
|
# ? Apr 4, 2016 20:59 |
|
|
# ? May 25, 2024 15:24 |
|
gently caress, I got this button that pops up a dialog that stops working if i change something unrelated in the html. what the hell?
|
# ? Apr 4, 2016 21:37 |