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 10y ago · link · parent

Kind of old code syndrome. I would say it is more like changing from Java to Ruby on Rails full time, and looking at your old Java code which is now a rusty language, with rusty memories of the class libraries and frameworks you used. Even with beautiful code it will be a struggle.

comment 10y ago · link · parent

It is not like riding a bike!

I am reading up on stats after 15 years away from the subject and even the very basic stuff I have forgotten. Although the 'muscle memory' is there so that perhaps it is a bit easier then when totally new.

What I also find is I am more interested in the application/intuition behind something now rather than the mechanics of the formulas. Maybe that has to do with a different aim i.e. usefulness vs. passing an exam..

comment 10y ago · link · parent

Ok so you are happy with this?

    Model
        .where(...)
        .foo { ... }
        .flatten
        .bar { ... }
        .join(...)
In Visual studio it doesn't really make a difference from a debugging perspective. However in other debugging tools perhaps it does, and in that case I would tend to agree. But then this is a minor point, something that can be covered with a coding standard and linting the source.

comment 10y ago · link · parent

Your point seems to be more about using chains of set operators rather than the fact that it is on one line.

I am a C# guy and I find Linq which is the equivalent to this insanely useful and I often write code as above. The tax on this is the rest of the team need to be up to speed in reading such code. If they are then what you gain is use of a bunch of predictable operators rather than loops with counters, state, etc... that could have subtle bugs.

Using code like this is no different to writing SQL that does joins and aggregates in a stored procedure and calling it from your code, something I also thing isn't a bad thing.

Debugging can be done by splitting it into lines, or using a decent enough debugger. Or making it pure and writing unit tests or property-based tests to cover it.

comment 10y ago · link · parent

You can buy racehorse options though :-)

comment 10y ago · link · parent

This freaks me out! Whoever me is? :-o

comment 10y ago · link · parent

I suspect the people who are right every time keep quiet about it.

comment 10y ago · link · parent

Business owner with great conversions won't participate. Business owner with sucky conversions will.

See http://www.investopedia.com/terms/l/lemons-problem.asp

comment 10y ago · link · parent

Surely you are thinking of Sonar?

comment 10y ago · link · parent

I don't think they are expected to tell its fake though? It's hard to do a double blind experiment without a "placebo universe".

comment 10y ago · link · parent

>120 year old mother

good innings!

comment 10y ago · link · parent

Probably due to the cost of managing the operations including dealing with compliance, fraud, chargebacks, refunds, disputes and suchlike. Also this whole silly rewards points thing that many of the cards seem to do needs to be paid for somehow. And that's just the credit card company, not the processing company taking payment on the internet who will want their cut, and may do their own fraud/refund/dispute handling too.

comment 10y ago · link · parent

Thanks. That's my TIL for today.

comment 10y ago · link · parent

headphones don't let you opt out of an open office. there is still noise you can hear above the music, visual distractions, proximity, catching colds, 6 person meetings on neighbours desk, everyone cans see your screen etc.

comment 10y ago · link · parent

Foreclosures, debt collection, company administration, auctions ...

comment 10y ago · link · parent

I love organic hipster chocolate. I ain't going to buy any either. I'm an oldish git. Not sure how this is a story though.

comment 10y ago · link · parent

I am not sure how that can be called well considered. He really shouldn't throw stones in glass houses. It is clearly a pro-Israel piece, he even alludes to the bulldozing regime as being acceptable without directly saying it. Shameful to use his sons death for this propaganda.

comment 10y ago · link · parent

Can someone explain why lambda expressions are being picked out?. I.e. why not say 'An expression is not necessarily a closure' as wouldn't this stuff apply to any old expressions, functions etc.

I am not a lisp person but thinking of this in terms of say C# or Haskell.

comment 10y ago · link · parent

Haskell resonates well with me, although it is hard/almost impossible to get a job as a Haskell dev. I also like the idea of the Haskell-like languages that even enahnce some of the features, PureScript, Elm for example.

Even if you only ever do basic Haskell it is very useful to have that mindset when using lambda expression and functional programming features embedded in other languages. Or to use the FP languages tied to a platform, like Scala and F#

comment 10y ago · link · parent

I wonder what the downvote rationale is here?

comment 10y ago · link · parent

[1..n] is not an array but a lazy-generated linked list. So you'd get a space leak only if it loaded the entire list in memory, or it kept all of the intermediate calculations (called thunks) in memory. The question is does it do that, or can it use tail-call optimisation, which would effectively compile to a loop with an accumulating variable, discarding the thunks

I admit now I am stuck looking at http://hackage.haskell.org/package/base-4.8.2.0/docs/src/Dat... as it uses foldMap which I am not used to. According to https://wiki.haskell.org/Fold foldl can make use of TCO. When I get some time I will see if I can produce the thunks as I am very interested i this!

comment 10y ago · link · parent

I agree when trying to do Haskell dev on Windows it is painful sometimes things don't install that would install on Linux. On the other hand I think the .NET stack + VS is an excellent stack to use BUT you are developing for Windows and nothing else pretty much. Mono excepted but not realistic for a lot of things.

comment 10y ago · link · parent

I have never owned an Apple laptop or desktop, but I think the reason is a combination of the sleek style, usability of the OS, compatibility with Linux tools (can run Ruby, Haskell, Vim, whatever, etc easily on it) and the battery life.

I am surprised at how many developers I see at meetups with Apple as opposed to x86 + Linux, and I am an oddball running Windows!

comment 10y ago · link · parent

Oops. I didn't allot enough attention when I typed that title in.

comment 10y ago · link · parent

Sorry that was the best of the worst. The original source is a propitiatory e-reader thing.

1766.

I'm sleeping alot less thanks to Airbnb(pressreader.com ↗)

4 points · by bbcbasic · 10y ago · 6 comments

comment 10y ago · link · parent

How to prevent bubbles from forming. How to provide a viable way to invest in ones retirement that provides some surety.

comment 10y ago · link · parent

Call me an MCP if you want but this ain't something that gets me fired up. I am more interested in awesome products regardless of the gender of the founder or software developer.

1769.

(Sydney) Police accused winebar wine list of promoting heavy drinking(news.com.au ↗)

2 points · by bbcbasic · 10y ago · discuss

comment 10y ago · link · parent

It will be after the next ... lets call it business cycle.
1
585960
84