3,059 karma · joined Oct 30, 2014 (12y ago) · 2,493 submissions
You is posting to fast. Slow down. Dang!
comment 11y ago · link · parent
Or just store them as a fraction if you really care about the value not getting corrupted.
comment 11y ago · link · parent
So when I finally found a half decent simple tool to run an XPath (as a C# developer) I decided it was worth a submit.
2133.
XPath Navigator for Visual Studio(visualstudiogallery.msdn.microsoft.com ↗)
3 points · by bbcbasic · 11y ago · 1 comment
comment 11y ago · link · parent
There is no doubt a steep learning curve with Haskell and FP in general. You may be thinking: what is all this <$> <*> and $ nonsense! However once learned, you can look at the Haskell code and it is more clear precisely what it is doing (and what it can't possibly do).
I think the article undersells Haskell. Haskell gives you code purity. Purity means you can reason about a function. A function that takes in an Int and returns an Int won't read data from your disk. It won't call a web service to get the answer. It won't update the counter int on your class and then one day cause it to overflow, causing another class that reads the counter int to throw an exception. This makes maintaining code a hell of a lot easier and more pleasant.
comment 11y ago · link · parent
comment 11y ago · link · parent
routine :: Int -> Maybe Int
routine n = Just n >>= (divisorFilter 3) >>= (divisorFilter 2) >>= (divisorFilter 5)
-- Supporting function
divisorFilter :: Int -> Int -> Maybe Int
divisorFilter d n
| n `mod` d == 0 = Just n
| otherwise = Nothing
-- Using do syntax
routine' :: Int -> Maybe Int
routine' n = do
first <- divisorFilter 3 n
second <- divisorFilter 2 first
divisorFilter 5 secondcomment 11y ago · link · parent
Your idea is probably good for low-skill tasks where anyone could do it. For something specialised, for arguments sake I need an XSLT expert, I would probably still go for a traditional freelance site.
Another advantage of your idea is any problem that needs close interaction. Tutoring and coaching spring to mind but I am sure there are other scenarios.
comment 11y ago · link · parent
Or you can foray into sales, or CTO role at your smallco. Then as a director negotiate shares.
However sounds like you'd be good as a technical cofounder. You said "I can learn anything in no time" and it sounds like you are ambitious.
You could also launch a lifestyle business like many on HN have done, which can slowly grow to beyond what a dev could earn in a job.
comment 11y ago · link · parent
So not sure why you would take a gap year without knowing what to do. Makes it seem like you don't want to study computer science?
So maybe you can question why you are wanting to study? Is it your favourite subject? Do you code for fun? Is there another subject you'd rather be studying, but maybe isn't as 'acceptable' with the various pressures to conform?
Hope this doesn't sound to harsh, but it is worth thinking about what you really want. Maybe THAT is why you need the year out.
If so then I would suggest some kind of travel. Get away from the peer / teacher / parental pressures and enjoy yourself. You might get a feeling about what you really want to do.
If you go crazy from not being able to fire up your IDE and crank out code, you may find that CS is right for you after all :-)
comment 11y ago · link · parent
Or ignore compensation as a route to wealth. Invest in real estate on the side. The job provides security. The investments create wealth in the more distant future.
comment 11y ago · link · parent
Let users can log in and change the remote/non-remote status (and other attributes).
Have some kind of trust system (could be linked to HN points or whatever).
(Even better if the YC guys made a custom job board where you fill in a form with all the details so there is no inconsistency.)
comment 11y ago · link · parent
First I assumed a man.
Now I know it is a woman, I still have some mental assumptions of what she looks like, what her son looks like etc. Weird.
I don't think it is sexist just human nature. I mean you can't imagine a person who is a 'schrodinger's cat' of all possible people :-)
comment 11y ago · link · parent
Maybe it would help to explain why in regular maths + and * have similar properties. For example they both return the same result regardless of order of parameters. They are both conform to ((a <op> b) <op> c) = (a <op> (b <op> c))
Where <op> can be + or *. Now we are getting a bit abstract but keeping it kind of concrete, without using scary terms like 'associativity'.
And once he is used to abstractions he may find Haskell easier.
I was lucky to study Maths at Uni, so to me Haskell makes a lot of sense. Although the foldr/foldl/applictive/monad stuff is a mind bender I have to admit, but well worth persisting.