378 karma · joined Jan 29, 2011 (15y ago) · 177 submissions
comment 8y ago · link · parent
[0] https://github.com/HotswapProjects/HotswapAgent/issues/218#i...
comment 8y ago · link · parent
https://www.theweathernetwork.com/ca/alerts/high-alert/quebe...
comment 8y ago · link · parent
I know of some architectures where the API Gateway has a lot of logic put into it... And you have to go through it to reach any of the microservices in the network.
Isn't this a single point of failure and similar to an ESB?
comment 8y ago · link · parent
And allows you to use "instanceof". User defined type guards for interfaces are hackish at best.
comment 8y ago · link · parent
My opinion is that for 80% of the websites out there, a SPA framework is not only overkill, but is also a bad choice. Your website is probably not Gmail or Facebook. Server side rendering is perfectly fine.
We should start a competition where any framework/no-framework could be used to develop a project and judge the winners using metrics such as : time it took to develop it, compatibility, accessibility, fun to interact with.
comment 9y ago · link · parent
comment 9y ago · link · parent
Most seem to think that if you are not using Angular/React/etc, you are doing it wrong, you live in the past. But the large majority of our websites could easily be plain HTML + some Javascript to spice everything!
I'm still a very big fan of progressive enhancement and of sites that do work when javascript is disabled, even if they are then not as pretty.
comment 9y ago · link · parent
http://i.imgur.com/AH1ahF3.jpg
I really don't care which browser is #1 in speed tests. I don't care about integrations with social networks. I simply want a browser that I can configure the way I want!
Another suggestion : when you change something, even if you are 100% sure everybody will like it, please at least leave an "about:config" option that can revert that modification.
Sadly, I realized that, when Firefox is updated, I'm not trilled anymore to see what new features are included, I'm instead anxious to see what has been changed/removed!
108.
Ask HN: How is HTML client-side testing done by big companies such as Google?
8 points · by electrotype · 9y ago · 3 comments
comment 9y ago · link · parent
http://i.imgur.com/9Dx79vq.png
(By the way, there is a color picker when you click a color)
comment 9y ago · link · parent
For example, the integration with VSCode :
https://github.com/Microsoft/vscode/issues/25033
https://github.com/Microsoft/vscode/issues/24967
But both teams, WSL and VSCode, are very, very responsive. I'm pretty sure in a couple of months everything will be fine.
comment 10y ago · link · parent
For a very small team, I guess it makes sense. I would still prefere to be able to use Java/Kotlin/C# on the server and on the client then. Or even Dart. Not Javascript...
> Why not? It's nice, for example, to export your validation logic to a separate library and consume it from both sides.
Then they are couple together. And then you will tend to design your API in a way this particular application is well deserved. But if one day you have to consum the same service from another application, a native iOS application for instance, then you may start to realized that your API is too bound to your first consumer.
But I guess it's not that important if your backend will only be consumed by this particular application, ever.
comment 10y ago · link · parent
1) It makes no difference at all if is the server is implemented using a different language than the client.
2) You shouldn't share any logic/code between the server and the client, even if they are using the same language.
comment 10y ago · link · parent
comment 10y ago · link · parent
But when I look at how are built the sites I like and visit frequently, I'd say 95% of them are not SPA, they are classic sites where the server generate each page (sometimes with one or two Ajax requests)!
The Single Page pattern is great for desktop-like applications such as Gmail, it's obvious. But otherwise, I don't know... I think I still prefere the "feel" of classic websites.
comment 10y ago · link · parent
That said, I don't really care that much about "Java standards". I like Java as a language (it's cross platform, solid, typed) and I use it the way I think it's best. For example, Spincast doesn't use the Servlet API at all.
Before starting Spincast, I've tried pretty much all those modern frameworks. Maybe I should have kept notes about what I didn't like about each of them, but I finally decided to start a new one. I would have loved to find a framework that would have met most of my preferences, and with an existing community, but I didn't. Maybe the closest one I found was Pippo [1]. I don't really like Spring (even if I'm a certified Spring developer) neither, even Spring boot.
What makes Spincast different, in my opinion? I guess one have to play with it a bit to really see how it works, how it feels... But the most obvious thing is that it's based on Guice from the ground up. Guice it the only strong dependency Spincast core has (except for SLF4J).
Maybe the section about Spincast Integration Testing [2] is a good read to have a feel on how Spincast works, and how Guice is used everywhere.
Anyway, thanks... There are now comments about Spincast on HN, wouhou! ;-)
[0] https://en.wikipedia.org/wiki/Indent_style#Allman_style
[2] https://www.spincast.org/documentation#testing_app_example