Better HN
topnewbestaskshowjobs
Log inSign up

dkharrat

175 karma · joined Aug 15, 2011 (15y ago) · 33 submissions

Submissions

1.

Google’s API Design Standard(google.aip.dev ↗)

3 points · by dkharrat · 5y ago · discuss

2.

Unified Logging in Java 9(blog.codefx.org ↗)

1 points · by dkharrat · 9y ago · discuss

3.

Encapsulating the User in a Function(medium.com ↗)

2 points · by dkharrat · 9y ago · discuss

4.

Swift on Android: The Future of Cross-Platform Programming?(academy.realm.io ↗)

3 points · by dkharrat · 9y ago · discuss

comment 9y ago · link · parent

It would also be useful to provide a way to convert the other way around (from a date to epoch).

I actually built a similar tool a while ago: http://timeconv.io/ that's similar to yours :) The goal is to provide a set of useful time/date utilities.

comment 10y ago · link · parent

Is there an advantage to overriding the man command over the approach of just directly exporting the env variables in bashrc? I currently do the latter and I don't override the man function. I suppose overriding the man function would allow for man-specific customizations, but perhaps there are other good reasons too?

7.

Run code inline in Atom using Jupyter kernels(github.com ↗)

229 points · by dkharrat · 10y ago · 54 comments

8.

ReSwift: Redux-Like Unidirectional Data Flow in Swift(github.com ↗)

1 points · by dkharrat · 10y ago · discuss

comment 10y ago · link · parent

Type erasure introduces limitations on what you can do at runtime that forces a developer to write code to workaround it. For example, in Java you can't write a generic method that instantiates an object based on the type of the generic. The workaround is typically to pass in the Class type as an additional parameter to the method, which in theory should not be necessary. A lot of JVM-based languages are required to introduce additional complexity in the language to simulate reified generics (e.g. Scala's Manifest/TypeTag classes).

comment 11y ago · link · parent

Doesn't Airbnb fall in the same category? Renting out your property for a few days to complete strangers requires a lot of trust, and yet from what I can tell, Airbnb seems to have overcome this hurdle.

I do agree there was a trust issue with Homejoy (I've personally tried them once and had similar concerns). But, I don't believe the issue was that they were in an unviable business where trust can't be gained, but rather they didn't have the right mechanics in place that help develop the necessary trust between the consumer and the cleaners.

comment 11y ago · link · parent

Not entirely sure, but according to its github page[1], you can have it use the OpenJDK classes for a "conventional JVM".

[1] https://github.com/ReadyTalk/avian#building-with-the-openjdk...

12.

Avian: a lightweight alternative to Java that runs on iOS and Android(oss.readytalk.com ↗)

87 points · by dkharrat · 11y ago · 28 comments

comment 11y ago · link · parent

An example where kill -9 can screw things up is killing a database process (e.g. MySQL, mongo, etc). Killing it with -9 will most likely lead to data corruption/loss, as the process might be in the middle of flushing to disk for example.

14.

How security flaws work: Buffer overflows(arstechnica.co.uk ↗)

1 points · by dkharrat · 11y ago · discuss

15.

This is what Apple's website looked like in 1998(cnet.com ↗)

2 points · by dkharrat · 11y ago · discuss

comment 11y ago · link · parent

> If I understand WebRTC correctly, once the link is established, all communication is peer to peer.

In general, it's peer-to-peer, but for clients that can't communicate peer-to-peer for whatever reason (usually due to certain NATs), a relay server is used as an intermediary. To the user it's transparent, so they can't easily tell if it's peer-to-peer or not.

comment 11y ago · link · parent

It's based on the WebRTC standard, so in general, yes it's peer-to-peer. However, in cases where the peer-to-peer connection cannot be established (e.g. a user behind symmetric NAT), then a third-party relay server is used (called a TURN server) which acts as the intermediary between the peers (sort of like a proxy).

comment 11y ago · link · parent

This is pretty cool.

On a similar note, anyone know of equivalent options for iOS? I see a few open source implementations, but none that are actively developed. There's SocketRocket, but that's just vanilla WebSockets.

19.

Introduction to Category Theory(cs.nott.ac.uk ↗)

3 points · by dkharrat · 11y ago · discuss

20.

Show HN: Core Data for Android - NexusData(github.com ↗)

1 points · by dkharrat · 11y ago · discuss

21.

All-TIME 100 Video Games(techland.time.com ↗)

6 points · by dkharrat · 14y ago · discuss

22.

What does it feel like to be a CEO of a startup?(quora.com ↗)

2 points · by dkharrat · 14y ago · discuss

comment 14y ago · link · parent

I disagree. Yes, MVC provides a pattern that allows views to be input to the user, but if it doesn't make sense for your app, it's perfectly fine to make the view "read-only" and still abide by the spirit of MVC.

If you're claiming that regular HTML views are compliant with MVC because they have HTML links, one can argue that some RSS readers convert the reference links from the RSS feed to actual HTML links that you can use to navigate to the individual RSS item. How is that different than a regular HTML view with links?

24.

WebGL Shader Effects: Old Film(devmaster.net ↗)

5 points · by dkharrat · 14y ago · discuss

comment 14y ago · link · parent

Can't wait for the Light Table IDE to support this language :P Debugging will be so much easier.

26.

The Basics of 3D Lighting(devmaster.net ↗)

1 points · by dkharrat · 14y ago · discuss

comment 14y ago · link · parent

Same here, though I also miss WinSCP.

comment 14y ago · link · parent

I believe SEO is one of the main things that hinder client-thick architecture adoption for many apps that depend on their content showing up on search engines, especially among content-driven websites (e.g. Stackoverflow, Quora, etc.). But I agree, all signs are pointing at the direction of thick-client implementations and eventually search engines will solve the indexing problem.
12