HNHacker News
TopNewBestAskShowJobs

iamrohitbanga

37 karma · joined January 2, 2012

submissionscomments
iamrohitbanga··on Log4j RCE Found
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.
iamrohitbanga··on Reinventing Firefox for Android
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.
iamrohitbanga··on Reinventing Firefox for Android
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.

iamrohitbanga··on Reinventing Firefox for Android
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.
iamrohitbanga··on Languages of India
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
iamrohitbanga··on Please do not attempt to simplify this code
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

iamrohitbanga··on Javascript: call functions without using parentheses
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.

iamrohitbanga··on Javascript: call functions without using parentheses
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()
iamrohitbanga··on Show HN: Prod – Blocks addictive websites until you've finished your to-do list
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.
iamrohitbanga··on The Developer Coefficient: a $300B opportunity for businesses
Which companies participated in the survey? Is it possible to know?
iamrohitbanga··on Deep code search
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.
iamrohitbanga··on Google Duplex will call salons, restaurants, and pretend to be human for you
May be the salon, restaurant also have a bot talking to Google assistant.
iamrohitbanga··on The Fall of Eclipse (2016)
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/

iamrohitbanga··on Unraveling rm: what happens when you run it?
Why does rm need to call mprotect or ioctl?
iamrohitbanga··on Introducing Stack Overflow Documentation Beta
Can we use existing SO answers to curate documentation?
iamrohitbanga··on Getting rid of NULL
Or Ruby 2.3's lonely operator (&.) or swift's optional chaining (?.)
iamrohitbanga··on Google glasses to find things in the real world
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 ...
iamrohitbanga··on Why I'm quitting Facebook
I discovered this article through facebook.
iamrohitbanga··on Why Learning Assembly Language Is Still a Good Idea (2004)
When we actually get to use qubits may be?
iamrohitbanga··on X86 MMU fault handling is turing complete
can you please elaborate?
iamrohitbanga··on Gestures + Reveal.JS
spend half an hour you will get good accuracy.
iamrohitbanga··on A ‘frighteningly ambitious’ way to improve email
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.
iamrohitbanga··on Statement by Apple
ispace
iamrohitbanga··on Statement by Apple
So you can buy new iphones.
iamrohitbanga··on What is Branch Prediction?
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.
iamrohitbanga··on Under Their Feet
stealth aircrafts you mean?
iamrohitbanga··on Steven Sinofsky to Leave Microsoft
could yahoo be on the cards? marissa meyer made the move recently.
iamrohitbanga··on Steven Sinofsky to Leave Microsoft
I doubt if he will go to apple. He must be bound by non-compete agreements.
iamrohitbanga··on [dead]
down for a few minutes ... yes in Atlanta too
iamrohitbanga··on Introducing the new compose in Gmail
They have a sort of theme roller implemented. Watch the dropdown on top left.
Page 1 of 2Next →