HN user

mradmin

89 karma
Posts1
Comments54
View on HN

Agree the traefik config is a little complex but otherwise it works great for me. About using portainer, it's useful for showing a holistic view of your containers and stacks, but I also use it for remote deployment of services (Eg as part of CI/CD). I'll push a new docker image version then I'll use the portainer webhooks to redeploy the service, then docker swarm takes over.

This is the approach I use, but I've always found some sort of issue in every generator I use. A valid openapi spec does not imply a generator will be able to handle it. You'd think have a specification would mean the generators are "bug free" but it's not the case, and bug reports are lost in a sea of issues: https://github.com/OpenAPITools/openapi-generator/issues so i don't see things improving anytime soon.

I've also wondered if the "logic-less" template approach is the right approach for these generators. You can't fix bugs or add workarounds just by providing a custom template, you need to change the underlying Java code to provide the correct data models to the logic-less templates.

Some of these are multi-liners that can be converted to one-liners. For example I believe "npx" can be used for all the node examples for example "npx http-server -p 6007 ./root"

[edit] ahh i see this is called out in the gist comments

History of Techno 5 years ago

There's also some wacky code in the HTML. Check out the body tag:

  <body class="post-template-default single single-post postid-4483 single-format-standard bridge-core-1.0.6  qode-title-hidden qode_grid_1200 footer_responsive_adv qode-content-sidebar-responsive transparent_content qode-child-theme-ver-1.0.0 qode-theme-ver-18.2 qode-theme-beatportal disabled_footer_bottom qode_header_in_grid wpb-js-composer js-comp-ver-6.0.5 vc_responsive &quot;&gt;&lt;noscript&gt;&lt;iframe src=&quot;https://www.googletagmanager.com/ns.html?id=GTM-WVTMQP&amp;user%5BisLoggedIn%5D=0&amp;&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hidden&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt;&lt;br style=&quot;display:none;"  >
If it's not clear, all that code is within the class attribute!

I live in Barcelona (expat). On the "main" beach (Barceloneta) you'll find full on nudity, mixed with tourists, families and others who aren't nude. The thing is, truely no one cares. It is so not sexual, and i am yet to see someone treating it as sexual. I don't ever see people recoding the nudity. Every beach I go to along the coast here (and up the Costa brava) I find nudity. Young, old, male, female, you name it. I expect to see peni, balls and breasts any beach I go to. I don't know what it is about this side of the world, but nudity is still completely separate from sex. No one will bat an eyelid if you decide to go nude. This is maybe a generalisation but after almost 3 years I'm yet to see people complain or be uncomfortable about the nudity here. I don't really have another other point, just mentioning my observations.

CSS Modules 11 years ago

I can't speak from experience with regards to this particular approach, but I've worked with css-modules with webpack (css-loader), and debugging the class names is no problem at all, CSS source-maps point to the source, you can view the source code within your developer tools. It shouldn't really be any different than debugging Sass generated CSS, for example.

This website made me totally lose the plot, while attempting to spot the drowning child from the beginning of the video after refreshing the page.

GWT pronounced «gwit»

Seriously? First I've heard this is how you pronounce it. And how does one pronounce gwit? I think I'll continue to call it: G.W.T.

Regarding image sprites, if you're using a CSS pre-processor, like Sass (with Compass), then auto-generating sprite images and associated classes is trivial and adds little to no complexity or maintenance.

Slow UI or slow loading? Slow loading is due to all the HTML imports generating HTTP requests. This can be optimised by inlining the web-components, using a tool like https://github.com/Polymer/vulcanize

I'm not sure why the polymer website is not optimised like this.

[edit]

Here's what vulcanize does: http://polymer-twitter.badsyntax.co:8002/build.html (Code here: https://github.com/badsyntax/polymer-twitter)

Concatting styles is a whole different story, conceptually it doesn't fit in with encapsulated compontents.

What if you had a requirement to create variation styles of those elements? How would you do that? Would you add you base style in your id selector, and then variations with classes? Again, you'll face specificity issues with that approach. Keeping things simple is the best approach here IMO. I've done a heck-load of CSS and have seen how hacky a stylesheet can become because of specificity issues. Sticking with classes and keeping selectors short will make your stylesheet easier to follow and more maintainable, but this is just my approach!