3,059 karma · joined Oct 30, 2014 (12y ago) · 2,493 submissions
You is posting to fast. Slow down. Dang!
comment 10y ago · link · parent
I'd probably call emergency services like most sane people. I'm sure even an OB would to the same even though technically they have the skills to do a C section. Even if they were already at the hospital.
Finally heart attacks are not necessarily or even usually fatal.
comment 10y ago · link · parent
How can a grad tell they are going to work for a top company that is great for their career within a good team? Especially if outside the US so not necessarily just going to work for Google.
comment 10y ago · link · parent
This finds deals near your location or another location and works in about 20 countries. Probably works in your country, try it :-)
This is a Single Page Application I created in a few hours as a side project.
Feedback on usability on both Mobile and Desktop is appreciated, plus any feedback as to whether you can see yourself using it.
I am thinking this would be useful for a holiday maker planning to go to a city to find deals to save money or just for ideas on quirky things to do.
Tech: ====
* Completely single page application. I wrote no server code.
* Hosted using Github pages and Cloudflare for the Https and redirects
* JS frameworks: KnockoutJS / Navigo / Zepto
* Tooling: VS2015 (but could have used anything), Webpack
* Uses Google Analytics / Maps service
909.
Show HN: DealOmni – Find deals near your current location, or anywhere else(dealomni.com ↗)
1 points · by bbcbasic · 10y ago · 1 comment
comment 10y ago · link · parent
For example in a side project I tried SammyJs then realised it requires jQuery. So I just hunted for something that can route urls without the needless dependency. I chose Navigo.
Point is it takes some care but not too hard to keep the size reasonable. Also don't use npm for dependencies on a web site. But npm is ok for tooling e.g. webpack
comment 10y ago · link · parent
The solution to this I feel is a bit of a prisoner dilemma because the entity that can make this easier is the company the candidate is a planning to leave (!). If they have flexible working, make it easy to take vacation on short notice etc. then that ironically helps.
comment 10y ago · link · parent
When you hit a wall you can probably work around it in Purescript whereas I feel you are too sandboxed in with Elm and you'd have to start patching your Elm source to get around it.
comment 10y ago · link · parent
It is a remarkable for one person to create a language, runtime, repl, debugger, compiler to another quirky language i.e. JS that is usable to the point that people are doing professional work in Elm. Also the compiler produces easy to understand messages.
Evan has made Functional reactive programming more accessible. I don't think I would have a chance to understand FRP at all without Elm. Elm has inspired other frameworks in Purescript and the development of ReactJS.
Sure Elm is not perfect. I found that much of the JS ecosystem not viable in the Elm world, even with FFI due to the purity of the virtual dom. I can't just go and easily chuck an impure calendar control in my code.
However despite it's drawbacks I feel the article was a bit strong in putting down Elm, which is sad because I think there are the seeds of some great future languages and ideas in there.
920.
What's the Plural of 'Virus'? (1999)(linuxmafia.com ↗)
1 points · by bbcbasic · 10y ago · discuss
comment 10y ago · link · parent
You can't (AFAIK) just drop in a Calendar control or whatever from the outside world, because the virtual DOM only allows Elm virtual-dom children. So you have to use the one calendar control in the libraries and hope that is good enough.
Then the embedding controls story is not mature enough IMO. Lots of boilerplate to bubble around the messages. Changing page on a calendar control? Yes your global state needs to deal with it. Maybe not directly know about it but some plumbing needs to be in place.
I'd recommend Elm for those diehard enough to keep at it despite the quirks but not for someone who is tired of all this learning new stuff in the JS world.
comment 10y ago · link · parent
If it is for a side project just use whatever you find comfortable. You don't have to learn them all.
E.g. for a side project just use vanilla JS, script tags (not NPM, Webpack etc.) and maybe a view framework, maybe JQuery and that'll probably sort you out. Then focus on building stuff rather than learning new frameworks.
comment 10y ago · link · parent
Having said that, I've been doing a side project in KnockoutJS and it isn't much harder than IC. You mark up the HTML and need a little bit of JS to call the api. So it would be like your example but with a line or two removed. And like your example as soon as you desire to do something custom you just add some more code.
On the service side you emit JSON instead of HTML and this can be easier IMO - virtually every language has a JSON library and you just convert your ORM objects to JSON (or just use them as-is!). That is less work than rendering HTML I would have thought.