HNHacker News
TopNewBestAskShowJobs

satyanash

376 karma · joined September 23, 2014

https://satyanash.net

reach me at satyajeet at kanetkar dot co dot in

submissionscomments
satyanash··on JMAP: A modern, open email protocol
> Is it so complicated to work with a duplex-stream?

It's not that duplex-stream is complicated, it's just that request/response semantics are much more suited for most use cases. Where duplex streams make sense, we now have websockets. Even then, on top of that you'll end up implementing stateful request/response semantics because you need some structure unless you're literally dumping binary data into the socket.

satyanash··on JMAP: A modern, open email protocol
If this takes off, it would remove one of the last few holdouts of non-HTTP application specific protocols. That just leaves us with SMTP really. While using HTTP is not necessarily a bad thing, it's certainly an interesting indication of how application developers prefer convention based protocol definitions (JSON over HTTP) instead of having a strictly defined protocol over a duplex stream (IMAP over TCP).
satyanash··on Predicting Variable Types in Dynamically Typed Programming Languages
> ...allows programmers to write code quickly by not requiring to declare the types of each variable which are determined at run-time based on the values assigned to that variable, thereby increasing programmer productivity

Modern compilers for statically typed languages are really good at inferring types of various identifiers based on multiple hints in a deterministic way (see Kotlin, Swift etc). Mentioned statically typed languages C,C++ and Java are pretty old and therefore carry some baggage of verbosity that is no longer needed.

> ...since the variable types are not declared in the source code, the source code becomes difficult to understand and extend

> For programmers working on the large code base written in dynamic languages, it is hard to understand the control flow of the program if the types are not available at the compile time.

Dynamic languages as a result of their "dynamicness" tend to allow much better expression of control flow when compared to static languages. Only recently available statically typed languages have targeted expressiveness as a first class goal in designing the language. In fact, statically typed languages are notorious for obtuse control flows as a result of their type enforcement (see C, C++, Golang)

satyanash··on Ask HN: What's the worst-designed, slowest app that still makes a lot of money?
That still shouldn't prevent them from iteratively, slowly fixing the UI such that people have to only get used to small bits at a time.

It is one of the most unintuitive design I have seen. It only works because we're trained to it's quirkiness.

I also feel the UX is horrible because it will often log you out and demand that you log in again if you have performed a set number of actions repeatedly.

satyanash··on Show HN: Shiori – Simple self hosted bookmarks manager
Also have a look at Crestify[0]. It doesn't store local copies of the bookmarks, but instead archives them to Archive.org and Archive.today. It is open source and PRs are welcome.

[0] https://github.com/crestify/crestify

satyanash··on Ask HN: What's the worst-designed, slowest app that still makes a lot of money?
While that was true for quite some time, it has dramatically improved to it's current state such that it is only noticeable during peak 'tatkal' booking time.

The UI/UX is still horrible though.

satyanash··on Internet Is Filling Up Because Indians Are Sending Millions of ‘Good Morning’
Google’s solution: a new app called Files Go that highlights files for possible deletion—with a special feature to search out and delete all good-morning messages at once. The company used its giant image database and artificial-intelligence tools to train the app to weed out good-morning messages.
satyanash··on WhatsApp Encryption Security Flaws Could Allow Snoops to Slide into Group Chats
WhatsApp has some decent decisions even after the complexity of being tied down to a single device at a time.

WhatsApp Web is essentially a hack where any message you send through the web app is _always_ routed through your phone (which is why it needs to be connected all the time).

Earlier you could not even view the media on the web client without first downloading it on your phone. But now it looks like they've hacked it further such that you can view the E2E encrypted message on the web app without downloading it to your phone. I guess it achieves this via shipping the decryption key to the web app (just for the current session) where it allows it to decrypt messages in the browser and using the phone just as a router of sorts. This is just speculation based on apparent behavior though.

satyanash··on REST is the new SOAP
I don't think the parent here is talking about whether the language is static/dynamic. The point is that most REST calls are wrapped in a statically 'dispatched' function call.

So in most cases you'd do something like:

    let foo = () => http.GET('/foo');
    .
    .
    .
    foo() //foo is statically dispatched in the source code here
satyanash··on Ask HN: What are your favorite books of all time, and why?
The Fountainhead - Ayn Rand

I don't agree with everything in it, but it is one of those books that really makes you rethink your life when read at the right time.

satyanash··on Show HN: The Million Dollar Homepage as an Ethereum Smart Contract and DApp
The system seems to be vulnerable to an XSS attack injected via the contract; the exploit seems to work on Chromium(60) but not on Firefox(55)

https://twitter.com/IAmMandatory/status/915439417665261568

satyanash··on Ask HN: What are your favourite developer blogs?
Joel on Software - joelonsoftware.com

Coding Horror - blog.codinghorror.com

Schneier on Security - https://www.schneier.com/blog/

Things of Interest - qntm.org

In Pursuit of Laziness - manishearth.github.io

Still Drinking - stilldrinking.org

Shallow Thoughts - http://shallowsky.com/blog/

Captain Nemo - https://captnemo.in/archive.html

satyanash··on 18yo arrested for reporting a bug in the new Budapest e-Ticket system
I am having this exact issue.

- Firefox 54.0.1 (64-bit)

- Arch Linux 4.11.5-1-ARCH

satyanash··on JavaScript Fatigue or My History with Web Development
in TFA fatigue appears exactly once. The author isn't even the victim of said fatigue. It's just a fancy title.
satyanash··on Why Python Is Not My Favorite Language (2016)
> I miss FactoryGirl ... I get a lot of repeated 'setup' code in my unit tests,

Recently discovered these two projects, thought I'd mention them:

* Model Mommy (https://github.com/vandersonmota/model_mommy)

* Factory Boy (https://github.com/FactoryBoy/factory_boy)

satyanash··on Neocities is implementing IPFS – distributed, permanent web
Check out Crestify which supports bookmarking with archiving to archive.org and archive.today https://www.reddit.com/r/alphaandbetausers/comments/3j702x/c...
satyanash··on Neocities is implementing IPFS – distributed, permanent web
You could use Crestify which automatically archives copies of your bookmarks to archive.org and archive.today Once you have a page bookmarked, you can use the archived links in your blog post

http://crestify.com/

https://www.reddit.com/r/alphaandbetausers/comments/3j702x/c...

satyanash··on Cryengine 3.8.1 Adds Support for Linux, OpenGL and Oculus Rift
I don't think it's that easy. The amount of effort that goes into testing, supporting and getting a game running for another operating system is not offset by the amount of consumers you have in the linux demographic.
satyanash··on Accounting for Developers
I've always understood it using the 'source' and 'destination' analogy that many unix tools follow.

Credit is the source while debit is the destination.

Using the source and destination keywords has the advantage of not implying the actual operation to be performed. For eg. credit results in an 'add' operation on an expense account while a 'subtract' operation on an asset account.

satyanash··on Slate – A Hacker’s Window Manager
This looks like a really bad post.

I don't think this is what a window manager is:

> For those of you who are unfamiliar with what a window manager is, it’s a way to snap individual windows into sections on your screen.

A window manager is a software that manages your windows for you. It need not necessarily 'snap' them. It can position your window according to however it pleases. It is also responsible for transferring the control between windows and providing window decorations and other controls to the user.

This I believe is in the X11 context. Could somebody with a Mac expand on if this is the case on the apple computers too?

satyanash··on Ask HN: Do you know other firms like Valve or GitHub?
I'm not sure about a completely flat structure, but they do value the actual work done than the post of an employee.

Employees are often encouraged to move between products as both of them mature.

Their attrition rate is also very very low.

satyanash··on Ask HN: Do you know other firms like Valve or GitHub?
Zoho Corp. is also an interesting company. Their CRM is often considered a better/cheaper alternative to SalesForce.

Their Zoho University concept is also an interesting attempt to solve India's problem of creating quality engineers (vs quantity).

← PreviousPage 3 of 3