HNHacker News
TopNewBestAskShowJobs

mkawia

105 karma · joined September 23, 2014

amateur developer
submissionscomments
mkawia··on Please Make Google AMP Optional
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.
mkawia··on Please Make Google AMP Optional
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.

mkawia··on Ask HN: Will Rust ever become a mainstream systems programming language?
Rust aims to be mainstream hence the effort to improve ergonomics and marketing,documentation. Or atleast safe systems programming to be mainstream.
mkawia··on Ask HN: Will Rust ever become a mainstream systems programming language?
I'd even prefer the golang way of error handling by `if err!= nil` over exceptions, treating errors as values is so much better
mkawia··on A summary of jQuery method alternatives in native browser implementation
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.

mkawia··on Curl is C
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.

mkawia··on What makes WebAssembly fast?
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.
mkawia··on The struggle with Rust
When in doubt be extra safe.
mkawia··on The Many, the Humble, the Ubuntu Users
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
mkawia··on Rust severely disappoints me
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.
mkawia··on Rust at OneSignal
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.

mkawia··on Rust at OneSignal
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.
mkawia··on Fixing Python Performance with Rust
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.
mkawia··on Why I'm Not a React Native Developer
I see it like; smart,disciplined programmers are capable of writing complex programs in dynamically typed languages without making as many errors.
mkawia··on Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers
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.
mkawia··on RE:DOM – Tiny DOM library
angle brackets ,we decided long time ago we hate those :)
mkawia··on gRPC: Internet-scale RPC framework is now 1.0
App engine app's clients use gRPC to connect to datastore , as far as I know
mkawia··on How to use Elm at work
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>
mkawia··on Safari 10.0
Still no service worker
mkawia··on Go stack traces and the errors package
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

mkawia··on Why Rust for Low-Level Linux Programming?
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 .

mkawia··on Why Rust for Low-Level Linux Programming?
So like a lite developer advocate
mkawia··on Peter Thiel's dangerous blueprint for perverting philanthropy
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

mkawia··on Angular 2 versus React
Google Play was poorly made

https://play.google.com/store/apps/developer?id=itdisplayswh...

mkawia··on os.js: JavaScript Cloud/Web Desktop Platform
I could see a use as some sort of a Control panel.
mkawia··on os.js: JavaScript Cloud/Web Desktop Platform
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

mkawia··on Bootstrap 4 alpha
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

mkawia··on A little Golang way
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.

mkawia··on Inside the sad, expensive failure of Google+
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.

mkawia··on Ask HN: Why and how is Hacker News so fast?
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

Page 1 of 3Next →