Better HN
topnewbestaskshowjobs
Log inSign up

bbcbasic

3,059 karma · joined Oct 30, 2014 (12y ago) · 2,493 submissions

Yolo mofo. Fomo? Hodl!

You is posting to fast. Slow down. Dang!

Submissions

comment 11y ago · link · parent

The problem is that the range will increase with each operation. E.g. the range in x*y is more than the range in x and so you need to keep track of those ranges. But the ranges themselves will be inaccurate if stored as floating point numbers.

Or just store them as a fraction if you really care about the value not getting corrupted.

comment 11y ago · link · parent

I submitted this because I tried 10 or so different free XPath tools and they all had really sucky UIs. They are based on the design philosophy 'how do I make this UI as pathologically unusable as humanly possible'. And some throw in a random crash or too for good measure.

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

But is yours easier to reason about?

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

Which goes to show that what requires a 'new feature' in C# is just a freebie in Haskell, due to the powerful type system. See my other comment ITT for how to do this in a tighter way that is more like the C# syntax. (You just use the bind operator rather than wrapping it in a do)

comment 11y ago · link · parent

To avoid labeling:

    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 second

comment 11y ago · link · parent

Thanks that is what I was really looking for. I will now use it.

comment 11y ago · link · parent

If you like this sort of thing, it is worth looking a Yahoo Pipes.

E.g. I created a pipe today to give me an RSS feed of HN submissions about Haskell.

comment 11y ago · link · parent

I guess these are the magic words:

"the VCs insisted"

Blindly doing what the VCs say, when the founders know better is what cause the trouble.

comment 11y ago · link · parent

First world problems eh!

comment 11y ago · link · parent

Much bugfree

comment 11y ago · link · parent

I would have used it back in the day when I used Fiverr alot.

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

Fiver gigs usually take 1-2 days to complete. So it isn't what the OP is suggesting.

comment 11y ago · link · parent

Pronounce it as a vowel-less word i.e.: "skwll"

comment 11y ago · link · parent

So in a nutshell: tough love.

comment 11y ago · link · parent

I like the idea, because I have an uncomfortable feeling every time I need to use a Google or FB login to log into something.

comment 11y ago · link · parent

Eventually the first question will be asked more often.

Today's 5gb is tomorrow's word document.

comment 11y ago · link · parent

You are begging the question

comment 11y ago · link · parent

You could try join a proven startup like DropBox or AirBNB etc. They should be able to give you a good salary and equity and there is still scope for it to go up.

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

Blind drunk experts

comment 11y ago · link · parent

I wonder.. would the spent rocket fuel generate more power in (an appropriate) power station than the original nuclear material?

(Assuming gravity assist is used)

comment 11y ago · link · parent

Just a different point of view, but when I finished high school I couldn't wait to get into university and start studying maths. I would have hated to have a gap year that would have delayed the amount of time before I start.

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

> The only way to truly beat the system financially is to get early equity in a startup that becomes very successful.

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

This is not just about teaching but clarity. If you don't define what terms like 'web scale' mean then the reader brings their own baggage about what they think it means.

The classic example is "the MVC pattern". Which one?!

comment 11y ago · link · parent

A very neat idea. Does it work for husbands/wives as well as friends? :-)

comment 11y ago · link · parent

Yes certainly, it is an illusion that marketing, customer support, product development and sales are all discrete things without any overlap.

comment 11y ago · link · parent

Wikify it.

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

I find I need a mental model of who the person is. It is based on assumptions of course.

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

I think he will have a harder time not having not studied algebra (yet?).

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.

comment 11y ago · link · parent

Yes the silver fox is IT's best kept secret.
1
717273
84