Better HN
topnewbestaskshowjobs
Log inSign up

vasilakisfil

333 karma · joined Sep 11, 2014 (12y ago) · 134 submissions

Submissions

comment 4y ago · link · parent

you are right, not so useful for Result type, but still, it comes handy for Option types (since None doesn't hold anything).

comment 4y ago · link · parent

I skimmed through their docs but couldn't find whether they:

* support for abstract apps, not only HTTP/web apps like heroku, let's say I want to deploy a SIP app

* support for HTTP/2 and potentially HTTP/3

If they do support these two I would say it's enough to be considered Heroku killer.

comment 4y ago · link · parent

it's so funny how everytime services are down, their status page is like everything is normal here. I understand that there are internal politics around such things but still...

comment 4y ago · link · parent

I wish I could use one of those, I had one actually some years ago but my eyes were burning (I have huge fonts compared to average people in my regular 17inch laptop).

comment 4y ago · link · parent

Usually you need redis to scale up horizontally, meaning with multiple servers/processes, and still keep consistency in your data. In general redis is a very useful tool that provides various features, even pub sub.

comment 4y ago · link · parent

> Returning a 2xx code immediately tells the client that the HTTP response contains a payload that they can parse to determine the outcome of the business/domain request.

There is nothing in the protocol that mandates only 2xx status codes are parsable. Instead, the Content-Type pinpoints to the client what kind of content the body has, regardless the status code. And the content-type will most probably be what the client asked (if not, then the server announces that the response content is not subject to negotiation, something that you see rarely nowadays..)

In general I think this post reflects one of the mentalities that appeared around 10 years ago regarding HTTP APIs (another was the extreme hypermedia-driven APIs). But I really think nowadays we can do much better, we can deliver a practical API that works 99% of the times.

By the way in the latest HTTP RFC (RFC9110) status code 422 is finally officially defined (previously was part of webdav extention), which means that the war 422 vs 400 for validation and other semantic errors is over and we have a clear winner. But 200 vs 404 for something that was not found? Well that was has ended long ago I think..

comment 4y ago · link · parent

Serialization/deserialization is such an important part of web development, I have no idea why Rails includes the ancient JBuilder (and very slow since it goes through templating) library, instead of investing in a proper library. Let alone deserializing which is equally important..

I think the API Shale provides is pretty sane. I would probably use it in my next Ruby/Rails project. I don't like the fact that Nokogiri is included by default, it would be nice to declare a core type, and then bring in what you need (JSON, XML, YAML) as a different gem. But that's not a deal breaker for me.

I have created my own serializers in the past (SimpleAMS[1]) because I really detested AMS, no offence to AMS contributors, but AMS library should just die. Rails, and way more importantly Ruby, should come up with an "official" serializers/deserializers library that is flexible enough, rock solid and fast. For instance I had done some benchmarking among common serializer libraries [2] and AMS was crazy slow, without providing much flexibility, really (meaning, slowness is not justified). Others were faster, but were supporting only one JSON spec format (like jsonapi-rb). I am wondering where shale stands.

Another thing is that most serialization libraries seem to have ActiveSupport as a main dependency (not shale though) which I think is a bit too much, and actually has a performance hit on the methods it provides.

I really think that Ruby community can do better here ?

[1] https://github.com/vasilakisfil/SimpleAMS

[2] https://vasilakisfil.social/blog/2020/01/20/modern-ruby-seri... (scroll towards the end for benchmarks)

comment 4y ago · link · parent

nice! I use that quite often, so it might come handy. Quick question, how did you build that ? Does Google provide any sort of API or did you build a web scraper for that ?

comment 4y ago · link · parent

Nom is a fantastic library. I have built a SIP library [1] on top of Nom, no way I would have built that without Nom's help, and even if I did, it would be a heck of a mess and under-optimized code.

[1]: https://github.com/vasilakisfil/rsip

comment 4y ago · link · parent

Location: Stockholm, Sweden & Athens, Greece

Remote: Yes

Willing to relocate: Maybe

Technologies: Rust, Ruby, Javascript, PostgreSQL, ElasticSearch, Redis, AWS, Networks, APIs, Voip, SIP, SDP, WebRTC

Résumé/CV: https://vasilakisfil.social/public/FilipposVasilakis.pdf

Email: vasilakisfil@gmail.com

Among others:

* HTTP/REST APIs specialist, pure interest in networked services and optimizations

* Good knowledge of CAS/SAML/OAuth2 and related auth protocols

* Good knowledge of VOIP/SIP/SDP/RTP/WebRTC and related protocols

* Good knowledge of Distributed Systems theory, concepts & principles

Looking for a permanent role, but open to consultancy as well.

comment 4y ago · link · parent

this is really good idea, how comes not many sites/companies/people use it?

comment 4y ago · link · parent

This is so depressing, and I am left with just over 60%.I can't imagine how someone would feel with just 10% or even less..

comment 4y ago · link · parent

for some reason, from the video, screen doesn't feel the same quality as other e-ink readers like kindle.

edit: I mean, kindle videos feel like you are reading a real paper, while here feels like you are in an actual screen.

comment 5y ago · link · parent

This should be related, but I haven't tried it (my brother builds it, so I am not affiliated) https://requiresecurity.com/

comment 5y ago · link · parent

In my experience none really cares about your side projects during interviews. I have plenty of side projects, given plenty of talks, I list some of those in my resume along with my github link, yet from 40 interviews I had in the past 5 years I think ~3 mentioned something about my talks and side projects. And definitely didn't give me any advantage over the other interviewers.

But I am fine with that, I do my side projects & talks because I enjoy it and not to increase my chances when applying to a new job. Although there is nothing wrong to do a side project to increase your chances to get a better job.

comment 5y ago · link · parent

This works by loading a bunch of JSON on page load, and then do search on the client side in that json blob. I think it's fine, but I have looked into something similar to do as a toy project for learning postgres FTS by fetching an API provided by ietf, storing the data and doing search on the stored data. However, I couldn't find a straightforward API provided by IETF, and I was super surprised. Similarly I would also have liked a similar straightforward API from W3C for documents.

comment 5y ago · link · parent

I haven't followed on what actually happened, but this is only bad for IRC itself. And if we had IRCv3 + federation etc, maybe it wouldn't matter that much but we are not even close.

comment 5y ago · link · parent

thanks was from mobile and I couldn't see it. Now from desktop I can see it.

comment 5y ago · link · parent

I would like to see the keyboard layout but I can't find any photo.

comment 5y ago · link · parent

That's a big statement. I am afraid it's not easy to replicate Heroku, let alone build something better. Quite the opposite I would say.

comment 5y ago · link · parent

I think it's great that you can declare types optionally, but I think they are allowed for a different reason: documentation and explicitness.

I would like Crystal compiler to take into account such definitions and speed up somehow. I know I am talking without experience, I just feel that coming from Ruby to Rust, declaring types on function definitions is not that much of a hassle.

comment 5y ago · link · parent

crystal is much slower on compiles

comment 5y ago · link · parent

Crystal is a beautiful language, however compiling times is something that put off most people who try it. How comes and they don't allow you to optionally provide types in your function/class signatures so you can help the compiler and speed up the whole process ? I mean global type inference is nice, but giving the option to specify types and speeding up the compiling time would be even more nice.

comment 5y ago · link · parent

https://en.m.wikipedia.org/wiki/Siemens_Greek_bribery_scanda...

comment 5y ago · link · parent

You are bringing in Rust's amazing type system but that assumes that you understand how the 3rd party system behaves. Otherwise your types will be very loose (i.e. String ? could be anything in there) not gaining anything compared to Javascript/Ruby/Python.

If I know how the external system will behave then yes Rust is better, obviously. However I was talking on the case of figuring out, as the article says. Sometimes you are not even there, you integrate with an external (legacy? undocumented? buggy?) system and you need to understand what's going on. In these cases a dynamic language is so much more productive than Rust and any Rust-like language.

comment 5y ago · link · parent

I use Rust everyday in the past 15 months. The programming language is just a very small part of the whole picture. Usually you integrate with many 3rd party systems that don't always provide all the guarantees they claim (so you get many edge cases) and understanding these things is not trivial. If it was only for understanding the code it would be easy. And actually having worked with both Rust and Ruby, the easiness of binding.pry and debugging is unbeatable. Rust gives you guarantees how the code behave, but when you have input from external sources (user input or external service input), it's much easier to understand what's happening (=debug) in a dynamic language.

comment 5y ago · link · parent

I have been playing this game in Google Stadia since last week and it has been mostly a joy. It has crashed 2 times, but that's all the bugs I have encounter. My only complain about the game is the npc AI is pretty low, but then you can always treat it as an arcade rpg fps kinda game. In any case I have been enjoying it a lot.

comment 5y ago · link · parent

Studying theory to become a SE is one thing. Being a SE is another thing. Being able to communicate with your (tech or non technical) colleagues in a constructive/useful way is also another important thing.

What I have seen is that a lot of software engineers lack communication skills. Being able to deal and communicate with other people, feel empathy, see things from their perspective, deal with non technical POs or managers, crazy CEOs, offensive colleagues and all sort of things is something that should be taught before you enter the market somehow. And when I say "deal" and "communicate" I mean it in the most fruitful way for you, your colleagues, the company. In that order.

So "being" a SE is not only knowing the theory.

comment 5y ago · link · parent

squashing commits make history important actually. The history how you reached the solution in your branch is not important, I am not interested in a wip commit which could indeed have a valid commit message, but still not final. Only the committed is interested into that.

So I think just before merging squashing the commits makes completely sense. Before that the committer is free to do whatever he/she likes.

Of course in the case the diff of files is so big that make multiple commits sensible, means that the PR is not broken correctly. Then, it's fine to have multiple commits, but the problem is elsewhere not in squashing them.

comment 5y ago · link · parent

Check messagebird. They are very expensive compared to twilio but they claim that they offer real numbers.
12345