Better HN
topnewbestaskshowjobs
Log inSign up

electrotype

378 karma · joined Jan 29, 2011 (15y ago) · 177 submissions

Submissions

comment 8y ago · link · parent

Amen

comment 8y ago · link · parent

CSS Grids are a game changer in my opinion.

Using some "grid-template-areas" + media queries is so cool... It gives you so much control over the layout!

comment 8y ago · link · parent

An interesting thing about AdoptOpenJDK is that it seems they may provide builds with DCEVM + HotswapAgent integrated, in the future [0]! And maybe become a very good and easy to use alternative to the way too expensive JRebel.

[0] https://github.com/HotswapProjects/HotswapAgent/issues/218#i...

comment 8y ago · link · parent

And there are currently heat warnings... Won't be fun!

https://www.theweathernetwork.com/ca/alerts/high-alert/quebe...

comment 8y ago · link · parent

Even in safe mode, with all add-ons disabled, it still doesn't work... I should try a clean install maybe.

comment 8y ago · link · parent

It's not a problem on your side. It happens on all sites with material icons... But thanks.

I'm just trying to use the smart people on Hacker News to help me with my issue! :-P

comment 8y ago · link · parent

I'm using Firefox and the "Material Icons" icons are never displayed properly... Any idea why?

https://i.imgur.com/Y06PbsL.png

comment 8y ago · link · parent

I'm not an expert, but what is the difference between a plain old ESB and what we now call an "API Gateway" or "API Manager" (such as Kong or WSO2) in the world of microservices?

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

Can someone please compare both?

Does the fact that Minizone is based on "async_hooks" make it more future proof? Less hacky?

comment 8y ago · link · parent

I agree. Using classes for entities allows you to use libraries such as https://github.com/typestack/class-transformer

And allows you to use "instanceof". User defined type guards for interfaces are hackish at best.

comment 8y ago · link · parent

That gets my vote too.

JRebel works well, but we need an official and free tool.

comment 8y ago · link · parent

It does : https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_v...

comment 8y ago · link · parent

I'm still using Jquery and some of the millions js libraries available only when you do not bind yourself to a SPA framework taking control of the DOM. And it work pretty well I must say!

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

Check https://www.youtube.com/watch?v=bzkRVzciAZg

comment 9y ago · link · parent

Have a look at https://github.com/Aris-t2/CustomCSSforFx , it can do many things, even if it's not a perfect Classic Theme Restorer replacement.

comment 9y ago · link · parent

I work at a place where our websites should definitely be about informations and accessibility. But the pression to use SPAs in order to "be cool" is so strong, almost nobody questions this decision.

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

Please Firefox developers : always keep in mind that power users are loyal to Firefox for some specific reasons. One of those reasons is that Firefox is, by far, the browser with the most customizable interface. The "Customize..." feature is why I personally stick to Firefox :

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

I didn't know that, thanks!

comment 9y ago · link · parent

As long as you start ConEmu with "-run {bash}", everything works very well, yes.

comment 9y ago · link · parent

I had to test a couple of variations before being happy because the same colors are used in all types of terminal (I use regular cmd and Bash). Sometimes one color is great in one type of terminal but is clashing with another color, for a particular use case, in the other terminal!

http://i.imgur.com/9Dx79vq.png

(By the way, there is a color picker when you click a color)

comment 9y ago · link · parent

The problem with WSL is that it's young so some integrations are still not perfect.

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 9y ago · link · parent

I use it with ConEmu and I like my colors... Everything is configurable.

http://i.imgur.com/BHDxdOJ.png

comment 10y ago · link · parent

> Makes a difference: Same people can maintain it without too much friction.

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

But Javascript fans often also say the server should only be a REST API, consumed by the client side, and not bound to it. What that means is :

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

You can have a lot of interactivity with plain Javascript + some Ajax requests, without the need for the application to be a single page developed using an almighty framework. Classic websites are not synonym of "static documents" in my opinion.

comment 10y ago · link · parent

This is a huge release for the Angular team, I'm happy for them and I don't want to sound like I'm "attacking" them with such question. Also, english is not my main language so maybe I don't understand perfectly when to use this expression or not. I see I should use it more carefully! ;-)

comment 10y ago · link · parent

Serious question : Why are SPA frameworks so popular these days? When someone asks "What should I use for web development?", It's now all about React/Angular/Ember/etc.

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

Reminds me of Agile...

comment 10y ago · link · parent

I've worked a couple of years with C# and, indeed, my love for "I" prefixed interfaces comes from there! In fact, Allman [0] is also my favorite indent style, but I've done much more Java than C# in my life, and I'm now used to the "{" at the end of the line.

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

[1] http://www.pippo.ro/

[2] https://www.spincast.org/documentation#testing_app_example

123456