HNHacker News
TopNewBestAskShowJobs

jviotti

394 karma · joined November 5, 2014

https://www.jviotti.com
submissionscomments
jviotti··on Airbnb Is Spending Millions of Dollars to Make Nightmares Go Away
While this is indeed a terrible thing, I fail to see a strong correlation to the fact that the attacker entered the building due to the keys being at the counter. That is a possible reason along a million more, such as the fact that the attacker could force the door's lock, get someone else from the building (an accomplice?) to give him illegal access.

Pointing the blame at Airbnb therefore feels odd. Things like these can also happen (and they do, probably even more often) at your own place, and would you sue your landlord if so? Whether these things are more probable to happen at Airbnb is also a very hard thing to prove. IMO your own place might be riskier as an attacker can study your routine over time, which opens up more security holes.

These type of attacks are probably outside anyone's control and I don't think the Airbnb places have an implicit responsibility to ensure a higher level of security than you have at your own place (it can be a Airbnb luxe feature, though?)

jviotti··on Vegan cheese has quietly but steadily infiltrated mainstream supermarket shelves
It might be a matter of taste and also certain kind of cheese might be harder to replicate. My partner and I also tried a lot of vegan brands, and while we disliked most (they were fine but not comparable), we both found the "original" Violife line to be really good.
jviotti··on Show HN: After 2.5 years on my side project, it has hit £500/month revenue
Sure, happy to help if I can. I believe you can find my e-mail address on my HN profile (or on my website otherwise)
jviotti··on Show HN: After 2.5 years on my side project, it has hit £500/month revenue
Cool stuff. Apart from a Software Engineer, I'm a musician/producer and the idea of having better stats about who listens to what and for how long sounds pretty appealing. I'm giving it a spin now and will write my thoughts as I go through it:

- My first concern before signing up that the landing page is not answering very well for me is how the UX looks for my listeners. I see a screenshot of what seems like a mobile app, but I'm not sure how accurate that is, and how it would look like on i.e. a laptop

- After I signed-up, the main call to action asked me to create a "SongBox". I guess this is the term you use for a playlist, and the in-app short tutorial also hinted at that but I'm wondering if this is a term that some people might be confused about, at least at the beginning. I definitely did get a bit confused

- I have some copyrighted songs, but also some demos I'm working on at the moment. It'd be nice if the UI made it clear whether is safe or not to share non-copyrighted files through the platform to get feedback, etc (some platforms such as SoundBetter apparently have some protection for this as part of their terms of use). I don't know if this is the case so I will only upload copyrighted files

- A small thing that can probably be easily fixed: I started by creating a SongBox, which prompted me to upload the files I wanted to add to the SongBox. After I uploaded some files, the songs remained unchecked by default, which meant that the main call to action to continue creating the SongBox would not actually add the songs by default to my SongBox. Because I started with the goal of creating a SongBox (the main call to action) and I did not have existing files, the product could be really sure that I did wanted to add those songs and at least check them my default or omit the whole song-checking phase

- Having two different screens to select the songs I want to add and then to also sort the selected ones felt a little bit weird. Maybe they can be joined into a single screen where you can select & sort at the same time? (i.e. the selected ones bubble up to the top and you can sort them in place?)

- I get the link to share, which is exciting, but again, I have no idea how this will look like, so I have to open a private browser tab to try it out before feeling confident to share it. Maybe the product can at least show me how it looks on this screen? (i.e. embedded at the right?)

- I didn't realise I could customise my bio until opening the page. Maybe the wizard I followed could have suggested me to do that if I was creating my first SongBox and I did not fill it yet?

- Cool stuff! I can see analytics coming in right away! What did seem super weird is that if a song is playing and I jump to another section of that same track (i.e. to skip part of it) then SongBox dashboard shows that as 2 different plays. Having the ability to know at which points of the track (i.e. minutes & seconds) people try to skip forward to another section vs just stopping the song would be killer!

- After some initial plays the average listening time looks very skewed. It shows a lot, lot more listening seconds that I actually did. Maybe there is something wrong with the average calculations?

Overall I think the idea of having better analytics for how people listen to your song is super nice. I'll keep an eye on the platform but the stats I got based on my own plays through private browser tabs seemed not very accurate, so I'm hesitant to trust it more for the time being. Hope that helps!

jviotti··on Ask HN: How many people, time and budget did you need to build your backend?
Good point. I re-phrased the title to say "people" instead of "engineers"
jviotti··on Ask HN: How common is it to work on projects with no testing?
People tend to see flaws within their area of expertise, for better or worse. A developer is likely to say the problem is due to how software is made, while a brand marketer is likely going to mention poor brand marketing.
jviotti··on Show HN: CS textbooks top universities use
Thanks a lot for the great feedback!

1. I pushed a quick fix to make it look better on mobile. Thanks for the heads up!

2. Yeah, I see what you mean, and I'm definitely thinking about how to make the website much more browsable than an ordered list. I can see how the website can optimise access to books from a particular subject, and also how to get all the books, across universities, about the overall same subject, even though the latter is trickier as the courses names vary, etc

3. This is actually a great idea. I might put this in a publicly available GitHub repo (both the data and the website), which will also encourage more contributions!

jviotti··on Show HN: CS textbooks top universities use
A hand curated collection of textbooks used by top universities, sorted by the amount of courses they are referenced on. It started as a personal list to see if there was any patterns on the books best-known CS universities recommended, and it has been very valuable to figure out what book to buy next. Hopefully its useful to others as well!

I included some initial universities and ~400 books, and I'm trying to grow this list even more, so please leave a comment if there is any book you know about! (please include the university name and the course if so)

jviotti··on Ask HN: How did you get started with automated stock trading?
Very interesting, thanks a lot for sharing!
jviotti··on Node: List all connected drives in your computer, in all major operating systems
Hi @scott_karana,

Sorry for the late response, HN should send some kind of notifications on comments (maybe I don't have it enabled for some reason?)!

About the unit ambiguity, we display straight what the operating system shares with us, but I'm making a note to parse the numbers and display in an unified way, or just document the possible differences.

Regarding the drive model/name, there are plans to provide this!

Cheers!

jviotti··on JavaScript query language to perform complex object searches
Haha definitely! You could write a small module that compiles the lisp-like syntax that you mention above to a Queryl object.
jviotti··on JavaScript query language to perform complex object searches
Hey there,

Objects (or DSL) are easier to encode/decode than functions.

Also notice that Queryl is a very low level way of defining queries, and can easily become horrifying and unmaintainable with very complex queries.

The idea was to provide the low level, verbose way of defining this, and provide a user friendly frontend (as a DSL, probably) that compiles to it.

jviotti··on JavaScript query language to perform complex object searches
Yeah, it was inspired by MongoDB, but then deviates in some ways:

- Conjunction and disjunction operations are defined by arrays in MongoDB, but as Objects in Queryl.

For example:

{ $or: [ { foo: { $gt: 100 } }, { bar: { $gt: 200 } } ] }

vs:

{ $or: { $gt: { foo: 100, bar: 200 } } }

- As you can notice in the above example, in MongoDB, you declare the property and the specific query inside, while in Queryl is the opposite: you declare the operation, and then the property.

- Of course, Queryl is still in it's infancy, and doesn't support as many operations as MongoDB does (but will be added eventually).

There are probably more differences that I'm not spotting due to lack of in depth knowledge in MongoDB queries.

jviotti··on JavaScript query language to perform complex object searches
Hey there! Your second example was the original idea when building Queryl, however that required me to always inspect the properties of an object, and based on the key, check if it is a Queryl operation (e.g: starts with $ and it's recognised), or a simple property to match for equality.

Also, it had the edge case in which a user's object properties could collide with the operations defined by Queryl, which (I believe, didn't write tests for it) doesn't happen with the current approach.

jviotti··on JavaScript query language to perform complex object searches
Looks cool, I haven't heard of it. However I don't think I could use their querying language separately from the ORM.

Our use case for Queryl is to filter array of objects based on different criteria, but I guess an extra benefit is that the query language is completely decoupled from its usage, so anyone can use it in their own projects for different needs.

jviotti··on JavaScript query language to perform complex object searches
The project heavily relies on lodash for it's implementation actually, so you can of course do it straight with lodash, however the benefit is that you don't have to write any code to produce complex searches (with multiple nested levels of $or and $and), which would require a lot of conditionals if done straight with JavaScript.

Another benefit (which was the reason behind the implementation), is that we can stringify the search object to easily persist and share it, which would not be that easy with plain code.

← PreviousPage 4 of 4