Better HN
topnewbestaskshowjobs
Log inSign up

iamrohitbanga

37 karma · joined Jan 2, 2012 (14y ago) · 40 submissions

Submissions

comment 4y ago · link · parent

I wonder if there are other templating engines out there that have similar plugins that load text from remote source, and could have similar bugs.

comment 7y ago · link · parent

Also the news on the Google app (the most easily accessible one with a left swipe), also open in I guess Android Web View. I use my mobile browser mostly for news articles and less often for opening other websites. Will still end up using Chrome like stuff I guess.

comment 7y ago · link · parent

Hmm I see. I think I was getting confused since I searched for browser app in settings and ended up setting browser app as well as Voice and Assist app as Firefox as they are in the same submenu.

If I choose Voice and Assist app as Firefox instead of Google then active edge, Ok Google does not work. May be I could just try setting browser app to firefox.

Let me give this combination a try for a few days. Browser is firefox and assist app is google which as you say still renders some links in android webview.

comment 7y ago · link · parent

I use firefox on desktop. But on mobile one major blocker for me is that Google assistant does not work with firefox browser on android.

comment 7y ago · link · parent

That's not entirely correct. Hindi is the official language of Republic of India. That is why 14 September is celebrated as Hindi Divas: https://en.wikipedia.org/wiki/Hindi_Divas

6.

AWS X-Ray Analytics(aws.amazon.com ↗)

1 points · by iamrohitbanga · 7y ago · discuss

comment 7y ago · link · parent

Haven't read the book. Goes to my Wish List. I completely agree about encapsulation of complexity inside the module.

Similar to UX design principles. Just like google or other successful sites present a very simple interface (in case of google the home page is quite clean) but behind it lies very complex code.

IMO, encapsulating complexity and handling all edge cases also lends to total functional programming [1] even without using pure functional languages. [1] https://softwareengineering.stackexchange.com/a/334876/38285

comment 8y ago · link · parent

Agreed. It is the "idiomatic" way of writing code in Ruby. I love Java but writing lambda expressions in Java with deeply nested parenthesis makes the code really ugly and less readable esp with chaining.

As far as I understand, Ruby style is writing the code in the most elegant way to increase readability and (hopefully) reduce chances of bugs.

comment 8y ago · link · parent

I feel where Ruby's optional parenthesis syntax really shines is in method call chaining.

e.g.

    employees.flat_map(&:addresses).map(&:city).uniq.sort
    # in place of
    employees().flat_map(&:addresses).map(&:city).uniq().sort()

comment 8y ago · link · parent

Personally self control and discipline is the only way to avoid productivity nightmares. Still I can see it as a productivity enhancer for many usecases.

comment 8y ago · link · parent

Which companies participated in the survey? Is it possible to know?

comment 8y ago · link · parent

Great! Brings back some old memories. Straight out of college, I interviewed with some big company for a product management role. At the time the interviewer asked me to pick a website I like and describe what new features I would like to see in it. I picked github.com and said that github has a such a big corpus of code and people have so many questions about how to do this or that in a programming language. I would like to see a way to search that corpus and see related code examples. Also may be find common bug patterns and suggest fixes (I didn't know about FindBugs at the time). Sadly I didn't have a good way to implement it or a solid design idea at the time.

comment 8y ago · link · parent

May be the salon, restaurant also have a bot talking to Google assistant.

comment 8y ago · link · parent

I personally like eclipse more than Intellij IDEA. I tried using IDEA for a month and even after getting used to the shortcuts I found eclipse more productive and hence faster. I did not benchmark for my usecase. The most frustrating part of Intellij was a 2 second pause whenever I tried to run unit tests even though I turned auto-compile on. Eclipse feels way more responsive to me for refactoring and running tests.

EDIT: Although I would like to add that I liked Intellij VIM integration more. I have been using Vrapper for Eclipse and it is decent but not many people are contributing to the project for a while which raises doubts on it's sustainability: http://vrapper.sourceforge.net/home/

comment 8y ago · link · parent

Why does rm need to call mprotect or ioctl?

comment 10y ago · link · parent

Can we use existing SO answers to curate documentation?

comment 10y ago · link · parent

Or Ruby 2.3's lonely operator (&.) or swift's optional chaining (?.)

18.

Journey to the Stack(duartes.org ↗)

4 points · by iamrohitbanga · 12y ago · 1 comment

comment 13y ago · link · parent

privacy is a genuine concern. May be develop a software can run on my PC but for true scaling it must move to the cloud. I would say privacy concern makes it a harder problem but if there were no privacy concerns this would be an application with high utility ...

20.

Google glasses to find things in the real world

2 points · by iamrohitbanga · 13y ago · 2 comments

comment 13y ago · link · parent

I discovered this article through facebook.

comment 13y ago · link · parent

When we actually get to use qubits may be?

comment 13y ago · link · parent

can you please elaborate?

comment 13y ago · link · parent

spend half an hour you will get good accuracy.

comment 13y ago · link · parent

However I think inbox pro plans to camouflage the link by using an app where the second step will hopefully provide a better user experience. More like an email delivered notification.

comment 13y ago · link · parent

ispace

comment 13y ago · link · parent

So you can buy new iphones.

comment 13y ago · link · parent

That makes sense for most processor architectures. But there are exceptions. The Cell Processor (Sony PS3 Processor) has 8 RISC SPUs. These processors do not have branch prediction logic. This is because they were designed for computationally intensive graphics kernels which are useful for Sony PS3 games. There is a huge performance intensive to avoiding branches on these processors. So many times both routes are taken and then the appropriate value is chosen using a mask instruction. This does not stall the pipeline on the processor.
12