News for hackers. Stuff that matters.

mkawia

Re:Please Make Google AMP Optional on Sunday June 11, 2017 @12:29AM (#14530639)
AMP is also literally breaking internet. People share google.com/amp links,sometimes there'd be no preview and hard telling what the actual website being linked is.
Re:Please Make Google AMP Optional on Sunday June 11, 2017 @12:26AM (#14530629)
It's a resource problem. The average website is in megabytes(that's expensive in emerging markets), loads lots of JavaScript on small devices draining battery.

Even if we take Louis CK's standard, a lot of sites would take more than 10 seconds on 3g. From a webdev point of view this is unacceptable.

Rust aims to be mainstream hence the effort to improve ergonomics and marketing,documentation. Or atleast safe systems programming to be mainstream.
I'd even prefer the golang way of error handling by `if err!= nil` over exceptions, treating errors as values is so much better
On mobile that's a big deal.

But on the other hand jQuery unlike MVC/virtualdom frameworks loads asynchronously and adds behaviour to static html ie it's non blocking.

Re:Curl is C on Tuesday March 28, 2017 @02:45PM (#13979431)
That's quote ,a library that generates code for you at compile time ,it takes code as input,has it's own syntax. It's like compile-time reflection.

It's not code rust programmers would normally write, I'm one of those programmers. I'm glad some libraries like serde,rocket and diesel are using it to generate code instead of doing run-time analysis.

Re:What makes WebAssembly fast? on Wednesday March 01, 2017 @08:16AM (#13763407)
I don't understand why the downvotes , JS is one of the most target languages. Elm,GHJS(Haskell),Purescript,Clojurescript and supersets like Typescript which come with their own toolchains.
Re:The struggle with Rust on Tuesday January 24, 2017 @11:01AM (#13472399)
When in doubt be extra safe.
Re:The Many, the Humble, the Ubuntu Users on Friday January 20, 2017 @07:25AM (#13443280)
Long time ubuntu user here , I 'd change the wallpaper and install some basic software and that's it . I'd use and installation for ~2 years
Re:Rust severely disappoints me on Friday January 13, 2017 @12:29PM (#13392614)
As rust developer from a higher-level languages , I really struggled with that ,then I discovered format!() macro ,maybe they should make it more visible to new developers.
Re:Rust at OneSignal on Thursday January 05, 2017 @10:33AM (#13327886)
Think as an author of a function that does something that can fail .

the signature ;"fn risky_shtuff() -> Result<Response , Err)"

Rust guarantees to you as the author who ever uses this function HAS to handle both cases (even if it's an unwrap).

However Rust doesn't stop you form making functions that instead return Option ,bools or even strings ,but you'd be actively working against very strong convention.

Re:Rust at OneSignal on Thursday January 05, 2017 @10:24AM (#13327785)
Go promotes the pattern of dealing with errors ,which to be fair I think is an improvement on exception based handling. But rust compiler forces the user of a function to handle error .it's impossible to 'val ,_ = getValOrErr()' in Rust. You just can't ignore an error.
Re:Fixing Python Performance with Rust on Thursday October 20, 2016 @03:11AM (#12750267)
Isn't it common sense for a person who's been writing programs in a high level programming language to use a safe low level programming language.
Re:Why I'm Not a React Native Developer on Wednesday September 28, 2016 @06:02AM (#12596525)
I see it like; smart,disciplined programmers are capable of writing complex programs in dynamically typed languages without making as many errors.
It's was meant to be there , It's a feature ,Going for the option/maybe types would have been too much according to it's designers.
Re:RE:DOM – Tiny DOM library on Sunday August 28, 2016 @08:17PM (#12379228)
angle brackets ,we decided long time ago we hate those :)
Re:gRPC: Internet-scale RPC framework is now 1.0 on Tuesday August 23, 2016 @05:16PM (#12347727)
App engine app's clients use gRPC to connect to datastore , as far as I know
Re:How to use Elm at work on Monday July 11, 2016 @03:25PM (#12073619)
I wish there was a way/documentation to embed in a vanilla js app ,like with IIFE or something instead of required the whole <div id="app"></div>
Re:Safari 10.0 on Tuesday June 14, 2016 @02:06PM (#11903983)
Still no service worker
Re:Go stack traces and the errors package on Sunday June 12, 2016 @10:05AM (#11888128)
I have something similar , I've extended the http code by adding a extra digits,it's for business logic errors .

So http 4000 is bad request , but in the business logic terms

Re:Why Rust for Low-Level Linux Programming? on Friday June 10, 2016 @03:03PM (#11879040)
Isn't Rust's biggest advantage is safety , I make websites with golang , I can't stand the nil-ness and all the mutation mess I easily get myself into, could use a safer type system.

Sometimes you just need safety and correctness .

Re:Why Rust for Low-Level Linux Programming? on Friday June 10, 2016 @02:56PM (#11878954)
So like a lite developer advocate
Yeah ,There are no good guys here.

Criticizing Thiel shouldn't be confused with supporting Gawker , because we don't know who Thiel might choose to punish next

Re:Angular 2 versus React on Monday January 04, 2016 @11:36PM (#10841216)
Re:os.js: JavaScript Cloud/Web Desktop Platform on Tuesday December 29, 2015 @11:54PM (#10810779)
I could see a use as some sort of a Control panel.
Re:os.js: JavaScript Cloud/Web Desktop Platform on Tuesday December 29, 2015 @11:51PM (#10810771)
The whole thing is 194KB ,a normal TODOmvc demo of your favourite Js framework goes above 250KB . Really Impressive stuff.

really motivates to build slimmer web apps

Re:Bootstrap 4 alpha on Wednesday August 19, 2015 @03:33PM (#10087859)
Exactly! if you are building like some custom CRM-ish application ,Bootstrap is really helpful.

Your users(and clients) won't care that the buttons are not flat or that it looks like many other applications ,if anything that's a positive if you build a UI components like Navbars they's used

Re:A little Golang way on Wednesday August 05, 2015 @04:31PM (#10012626)
So slap an http api ?

Building native apps is hard unless you are specialized , but puking up some html and json is easy ,hence building a blog is usually good for introduction.

Re:Inside the sad, expensive failure of Google+ on Monday August 03, 2015 @04:52AM (#9994517)
As a social network it has failed , But as an Identify Platform it's really good . My g+ profile while doesn't have many posts like facebook/twitter or instagram but has the most data ,my search history,my app downloads,youtube browse history, knows my phone ,my number ,All the places I have lived ,places I have worked . If I log on a new device with my gmail/g+ all over sudden I have all this data working to make my surfing better.

Now if only they used that data to make a better Google plus feed ,It's the feed that died.

Re:Ask HN: Why and how is Hacker News so fast? on Sunday August 02, 2015 @10:00AM (#9990747)
that 1.2Mb gets cached. Infact that will make the site faster because once the .js are downloaded only json/partials will be fetched when visited again.

It must be the backend ,ie when tasked to render the same page ,which backend would respond faster

Older »