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

In biology you should be dissecting frogs not papers.

comment 10y ago · link · parent

Well you got be bang to rights there.

comment 10y ago · link · parent

> Recently I noticed that for every PDF I upload to Google Drive (on my Linux machine using firefox), later I cannot view it (on any of my devices)

That does seem like a bug in Google Drive too? Taking the MIME type too literally rather than do something more clever like verify the binary.

comment 10y ago · link · parent

Being SaaS doesn't dictate web delivery. Desktop apps can be rented and auto updated. Case in point: Office 365

comment 10y ago · link · parent

Who uses such a model? Unless you write assembly language?

comment 10y ago · link · parent

With YNAB moving to the cloud, a good old fashioned desktop budget app.

Write it natively for Windows, Mac, Linux, iOS, Android and Windows Phone so it performs well.

comment 10y ago · link · parent

My solar system will shut off if the grid shuts off. The reason is to guarantee no voltage on the lines when the technician is looking to repair.

Having said that I have no battery, but if I did then probably it could just isolate the grid and stop feeding back when the grid shuts down and run the house off the battery.

comment 10y ago · link · parent

You can't get true 100% coverage* on digital hardware. (on quantum maybe!) so what to test or not is always a judgement call. Most of the time I'd assume the software stack is trustworthy but if you are doing something extreme you may want to test the compiler or even formally prove the compiler works as expected.

* true as in all possible inputs and outputs rather than merely all code paths

comment 10y ago · link · parent

Not always. Otherwise we'd all be using punchcards and valves still.

comment 10y ago · link · parent

Sure I'm thinking more of the case where there is a bug in the said program. Formal proofs and verification could help but attackers just need to find one weakness.

comment 10y ago · link · parent

Hacks can be recovered from. Losing a million dollars permanently to an anonymous attacker with no recourse is a different proposition.

comment 10y ago · link · parent

With mules?

comment 10y ago · link · parent

> At some point you have to assume something is there and correct

If you excel at compositional design then this may work OK but a lot of code bases I have worked on just need a good ol' refactor to sort the mess out. And then the "there and correct" part could fail due to human error, or the new person not knowing the old assumptions etc. The asserts are a step in the right direction in documenting the assumptions though. Types go one level better by both documenting the interface, and enforcing that contract at compile time.

comment 10y ago · link · parent

It's new paradigm - bloatier than an IDE, as slow as a web page but without the advantage of storing / running anything i n the cloud.

comment 10y ago · link · parent

> They need a much better idea of time (such as approaches to McCarthy's fluents).

I am not sure what the time problem is for functional programming, but I reckon the Elm language/framework solves problems with time in a very elegant way with it's flavour of FRP and Signals.

In Elm, you can play back your UI interactions in a debugger as they happened and watch the variables as they would have been!

comment 10y ago · link · parent

If you want to see what people will be getting excited about in .NET in 5 years time, Java in 10 and Javascript in 15, just keep looking at Haskell. The stuff in this article is certainly not new but concurrency abstraction and implementation is miles ahead in Haskell.

comment 10y ago · link · parent

A smart person who is also pragmatic and takes the team into account though is superproductive. Their solutions may take a bit of learning but it pays off.

comment 10y ago · link · parent

It depends. June, July or August?

1459.

(Haskell) Async exceptions, STM, and deadlocks(fpcomplete.com ↗)

3 points · by bbcbasic · 10y ago · 1 comment

comment 10y ago · link · parent

Can adding code to a contract really allow reversal of fraudulent use? And why would we trust you?

P.s. noticed typo Decetnralization.

comment 10y ago · link · parent

The list will depend on the language, platform and your interests. Build something that interests you and challenges you a little but isn't too overwhelming.

comment 10y ago · link · parent

This style of programming reminds me of SQL where you specify intent and let a query optimiser work out the execution plan. I like it. Not sure this is production ready but it'd be fun to try at work.

comment 10y ago · link · parent

Same for Android chrome.

comment 10y ago · link · parent

> Unfortunately Weightley is only optimized to work on computers or tablets. Tweet me if you want a mobile version!

Sad. I was looking forward to checking it out.

comment 10y ago · link · parent

Can you give an example and how you'd re factor it. I'm having a hard time visualising what you mean.

I have seen code that catches any exception and returns false. That is annoying although for different reasons.

comment 10y ago · link · parent

Your answer reminds me of the film Trainspotting.

comment 10y ago · link · parent

You have a 2/3 chance of choosing open ocean which is much much worse.

comment 10y ago · link · parent

I can't speak for anyone else but I believe so yes.

comment 10y ago · link · parent

It's the least sexy name for a programming language this century

comment 10y ago · link · parent

The compiler guarantees it won't happen. Such a test would be a test of the compiler and in my opinion unnecessary. And in Haskell at least... impossible. You can't write the the test because IT won't compile!
1
484950
84