2,501 karma · joined Mar 17, 2012 (14y ago) · 582 submissions
Twitter: https://twitter.com/basicallydan GitHub: https://github.com/basicallydan
comment 12y ago · link · parent
I think a more useful view would be to show the flash drives in terms of price per GB, within a certain range. By plotting them in this discrete (best word I could think of) where they cannot occupy the same space in the graph it's misleading about the best value for money.
comment 12y ago · link · parent
If you don't mind me asking a couple of follow-up questions, how far in advance do you tend to book, and is it daily or weekly, or does it kinda just vary?
comment 12y ago · link · parent
OP can you confirm this? If so it sounds like you're half way there with your experience!
248.
Ask HN: Could you tell me about your coworking space experiences?
10 points · by basicallydan · 12y ago · 13 comments
comment 12y ago · link · parent
Slightly off-topic: I wonder if we're going to see more games being written to run in Web Browsers, or more games being written using web technologies like JS + WebGL but for desktop/mobile devices using things like phonegap/node-webkit [0] and then sold through various app stores such as Steam, iOS & Android.
The infrastructure for monetising web games in the same way that Steam and the App Stores has done isn't there yet, but maybe it will be soon?
[0]: Like A Wizard's Lizard http://steamcommunity.com/sharedfiles/filedetails/?id=205801...
comment 12y ago · link · parent
It is more than 10x the price of the Model S though. Perhaps, with time, Rimac will become a competitor to help the electric car market become more mainstream. EDIT: I kinda doubt it, though. With a price of $980,000 that's a long way to go.
Very cool indeed.
---
253.
A simple and flexible way to do a game loop in JavaScript(danielhough.co.uk ↗)
2 points · by basicallydan · 12y ago · discuss
comment 12y ago · link · parent
Trolling isn't just "pissing off other users", it's "pissing off other users for the lulz". That's a very dumbed-down definition of trolling, too. I think it's unlikely that a government would piss anybody off just for the sake of it. I suspect they'd have motives to do with economic or social goals on some national or international level.
However, that doesn't mean that this alleged power can't and won't be abused in the way that a troll might abuse the flag power.
comment 12y ago · link · parent
comment 12y ago · link · parent
Yeah, me too. Apart from the actual, observable benefits you mentioned, I just find something really satisfying about the separation. Fewer hacks, easier to modify things.
I think the rise in the popularity of doing things this way is largely thanks to the increase in popularity of test-driven development. Creating a client app without an API is so easy given all the tools available for mocking or faking APIs, and creating a standalone API is easy given that most of the time, you're just testing the JSON or XML output of a bunch of functions.
comment 12y ago · link · parent
In my opinion if there's one thing a reader should take away from this it should be that Single Page Apps and separation of server and client are The. Best. Thing. Ever. From the start, design your system this way.
Good post, and an entertaining read.
comment 12y ago · link · parent
comment 12y ago · link · parent
You could be onto something, I'd love to hear if you come to any conclusions about that. Off the top of my head I can't actually think of anything since as far as I can tell, the only difference is that one `var` statement is used and in the other it's one for each variable - they are still declared in the same place.
As for the code smell thing, that's a good point. I think after roughly the same amount of time using multiple vars would cause the same indication but it's probably more obvious with single var.
comment 12y ago · link · parent
As I said at the end of the post though, I find the comma-first thing to look pretty weird. Is it really so tiring to write `var`? Having to introduce the comma-first solution seems almost like a further argument for why the single var pattern isn't as great as it first seems, to me.
265.
A criticism of JavaScript's Single Var Pattern, and a simple alternative(danielhough.co.uk ↗)
18 points · by basicallydan · 12y ago · 7 comments
comment 12y ago · link · parent
Thanks for the explanation :)
comment 12y ago · link · parent
Here in the UK we have a nationwide organisation called Code Club [0] which supplied volunteers with curriculums. They're available on the CC website but also in their raw forms on GitHub. Check it out if you want some inspiration for further lessons: https://github.com/CodeClub/scratch-curriculum
comment 12y ago · link · parent
---
Real use cases so far
On the server: LiteScript itself
LiteScript is written in LiteScript, every new version must be able to compile itself to be ready for release. LiteScript is a real-use case of a heavy, server run, text processing, class based program written in LiteScript.
---
I'm must be missing something here, but this kinda blows my mind a little bit. Somewhere in the compilation process there must be somethign which isn't LiteScript?
Anyway, this does look cool. Good job.
[0]: https://github.com/luciotato/LiteScript#real-use-cases-so-fa...
comment 12y ago · link · parent
So excited about this, absolutely brilliant. I did notice some frameworks that I was using (I think it was Bourbon) breaking with SASS 3.3 though.