Better HN
topnewbestaskshowjobs
Log inSign up

mkawia

105 karma · joined Sep 23, 2014 (12y ago) · 64 submissions

amateur developer
Submissions

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

Rust aims to be mainstream hence the effort to improve ergonomics and marketing,documentation. Or atleast safe systems programming to be mainstream.

comment 9y ago · link · parent

I'd even prefer the golang way of error handling by `if err!= nil` over exceptions, treating errors as values is so much better

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

When in doubt be extra safe.

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

I see it like; smart,disciplined programmers are capable of writing complex programs in dynamically typed languages without making as many errors.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

angle brackets ,we decided long time ago we hate those :)

comment 10y ago · link · parent

App engine app's clients use gRPC to connect to datastore , as far as I know

comment 10y ago · link · parent

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>

comment 10y ago · link · parent

Still no service worker

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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 .

comment 10y ago · link · parent

So like a lite developer advocate

comment 10y ago · link · parent

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

comment 10y ago · link · parent

Google Play was poorly made

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

comment 10y ago · link · parent

I could see a use as some sort of a Control panel.

comment 10y ago · link · parent

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

comment 11y ago · link · parent

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

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

123