HNHacker News
TopNewBestAskShowJobs

qwertyuiop12

53 karma · joined July 29, 2021

submissionscomments
qwertyuiop12··on Every invoice in Brazil's economy runs on SOAP 1.2
SOAP is good for flexible APIs due to xml “eats anything”, the “included” support for signatures and schema validation.
qwertyuiop12··on Privacy doesn't mean anything anymore, anonymity does
the only way is “anonymity by design”. history showed us that “don’t be evil” does not work if the entity can change its mind unilaterally.

be confident that the service is not keeping logs? JÁ!

qwertyuiop12··on A Tiny TypeScript Rant
Probably in the past a strong typing system was a good deal. However, when you growth, it has many advantages having a type system which lets you change whatever you want without fighting against the compiler/transpiler. So useful for debugging and hacking purposes.

Also, as you experienced, you can implement new "language restrictions" using zod or new lint rules. Making your project more resilient to version updates and creating your "language superset" that can growth with you.

qwertyuiop12··on EXIF orientation info in PNGs isn't used for image-orientation: from-image
I don’t know “why”. Why the format defines a way to set the orientation instead of set a pixels matrix as it is.
qwertyuiop12··on What if the aliens come and we just can't communicate?
I recently read Project Hail Mary. It has one of the best approaches I’ve ever seen.
qwertyuiop12··on My open source project was relicensed by a YC company [license updated]
In general, I try to add a fingerprint into the output.

For example, in a project which generates images I usually set a specific set of pixels.

qwertyuiop12··on Tailwind CSS vs. Pico CSS (2022)
I use both and they work like a charm. But I disable the tailwind base styles ;)
qwertyuiop12··on Htmx and the Rule of Least Power
These years I tried many approaches and I felt in love with htmx for my side projects.

It’s a return to the old easy times.

However, many times I only use a small subset of it.

I recommend to begin with small steps and increasing the complexity a little bit on each one before being crazy applying ALL for a “to-do” app: pure html, htmz (a tricky way, TAKE A LOOK), htmx and react or whatever.

Finally, I also recommend to follow htmx in Twitter, you will laugh a lot.

qwertyuiop12··on Ask HN: What would it take for you to return to the office?
For me, it would be the salary needed to have an amazing flat or house near the office. So, if you have the office in Toronto or New York it’s okay, but I will want many money (probably you won’t hire me)
qwertyuiop12··on Ask HN: What is your go-to PaaS these days?
baremetal or vps and ansible playbooks with OVH. Easy and cheaper.

Also, my own in-house servers if I don’t need so much availability.

qwertyuiop12··on DaedalOS – Desktop environment in the browser
Uau. Since many years that I am considering creating a DE based in html and do something like this.

The html + css approach is wonderful, easy to learn and thanks to arias and html standard amazing in terms of accessibility.

qwertyuiop12··on Ask HN: What would be the effect if the entire Windows OS lineage went OSS?
It does not change a lot. I don’t prefer Unix systems because they are open (okay, for some problems yes), I prefer Unix because the provided system abstraction.

I don’t like the windows register and some of its issues derived of retrocompatibility. Also, many of its defaults for directories or “system hidden files”.

qwertyuiop12··on Ask HN: I'm bad at design, which stops me from finishing side projects. Advice?
I had the same problem. Take online courses.

And now, you can use AI to be “inspired”

qwertyuiop12··on Time to Use the Latest Gmail
It's sad because the new version is awful. It takes too much time only to read emails.
qwertyuiop12··on Why Is the Front End Stack So Complicated?
The stack is not te problem, the problem is people using the incorrect tools and doing over-engineering.

React and others are simply a tool to pass the logic to the client. Useful in situations like apps that can run almost completely without the server or it can manage the offline situations.

All the related tools are only optional things to improve something: • transpilation for older browsers • talwindcss to manage the styles -if you are a lot of people- • redux or others to manage the application state

For other kind of applications, you can continue using the same pattern where the server has the main responsibility of generating the entire view.

In my case, I’m quite happy using htmx and avoiding frontend frameworks because usually I don’t develop offline apps.

qwertyuiop12··on Ask HN: Why is it so bad to use any in TypeScript?
Because it’s the main benefit of using typescript.

For a playground can be excessive, but for production is a nightmare.

Otherwise, you can use only JS with JSDoc and enable the @ts-check.

qwertyuiop12··on Rate my new startup idea (or roast it)
What happens with SPAs? Because the page is constantly changing. The tag is smart enough to be displayed only when it is needed? If so, it could be hard for the developer search the tag in SPAs with more than 3 “pages”
qwertyuiop12··on Ask HN: After 20 years coding, how does one level up?
A language is only a tool. Try different approaches like composition over inheritance ( I created a method in TypeScript to create mixins/traits in order to migrate non-sense OOP patterns that I did in a few projects ), patterns that you didn’t apply before… also you can look for DDD ( and its “patterns” ).

Or start new projects for your own curiosity. I implemented a cache policy recently and I learned -tried- to develop different parts of an OS.

qwertyuiop12··on To Type or Not to Type? A Systematic Comparison of JavaScript and TypeScript App
I think that Typescript is better for people that consume external libraries.

When you are making some personal software, in general you know how it works, the problem is when you use external tools.

Many times I had errors due to optional params in a constructor to capitalize or not capitalize the keys.

Also, typescript helps you documenting the code “without” documenting, only looking for what types are passed.

qwertyuiop12··on Ask HN: In 2022, what is the proper way to get into machine/deep learning?
The Machine Learning course by Andrew Ng in Edx.

A basic ( and not at all! ) approach to know if it is funny for you

qwertyuiop12··on New MacBook Air with M2
2-3 years ago the price was less than 1000€. 1500 for the base model is ridiculous
qwertyuiop12··on Ask HN: No cynical answers, why do companies push their apps so hard?
Engagement statistics basically.

The first cause is that in general users use more their phone than their computer.

The second cause is a corollary of the first cause and the existence of tools such as push notifications.

qwertyuiop12··on Ask HN: How can lawmakers better protect reporters of security vulnerabilities?
Report only to companies that accepts publicly vulnerability reports and keep all the records
qwertyuiop12··on Strava Web Microfront Ends
I think that microservices is a good approach that was demonized a few years ago due to there were companies that did not separate the pieces correctly.

The main cons that you can find are the sync work between teams ( here is the hard work, if you separate in little pieces you can cause that teams need more sync effort ) and devops effort.

qwertyuiop12··on Make an internet radio station with one line of bash
Do whatever in one line: 1) Open a source code with Sublime 2) Ctrl+J to join the lines 3) Enjoy
qwertyuiop12··on Best practices can slow your application down
If you have a qa team, perfect. But I don’t recommend to follow this way.

Many code is slow due to it has a couple of wrong implementations, such as rendering or make something heavy all the time when you have to do it only one time.

There is no problem to create a decoupled system using di, the final performance it will be tolerable.

Also, you have the possibility to create custom builds with tests and good practices in the main branch.

qwertyuiop12··on SaaS Pricing Manifesto
No. I don’t want a world with subscriptions for all.

Sure, it’s the best for the product, but it is stupid pay a sub for something like a calendar. Think if you pay for system tools like file manager, custom configurations…

qwertyuiop12··on Tile buyer Life360 reportedly sells precise user location data to nearly anyone
I though that I was the only guy who think this