HNHacker News
TopNewBestAskShowJobs

marcos100

295 karma · joined March 24, 2016

submissionscomments
marcos100··on Show HN: Looptap – A minimal game to waste your time
Played twice. Immediately knew that I should stop.

Great game!

marcos100··on Write shitty code
I feel you. Some people are saying that, if it works, it's not shitty code, but it's not the truth.

I made a service that was reliable, but only because there are a lot of ifs inside the code that fixed bugs. It was really shitty code that somehow worked reliably.

The service was replaced because someone else rewrote the whole thing in another language.

marcos100··on Embrace slow productivity
I like your analogy, but how do you find the perfect balance? I mean, you can play tetris at level 1 forever, but it is not ideal for productivity (unless you are really at level 1). You have to reach the level that you are comfortable enough with the speed of the falling pieces.

Is it experience? You have to review the tasks periodically? You use some kind of metric?

Sometimes I think I'm too slow, and sometimes I'm too overwhelmed and I only acknowledge it after some non-trivial time passes (or, at least, that is my perception).

marcos100··on Literate programming: Knuth is doing it wrong (2014)
Love your comment.

doc-comments are good because it explains well what the class/method/whatever are there for, sometimes with examples, that helps understand the code.

But I hate that they use so much space inside the source code that I have to scroll hundreds of lines to read the code. And those doc-comments are filled with markup that makes it harder to read.

I would like a literate a system that generates source code that is well formatted and where the only comments are what the function does and some inner function comment where the code is complex. Every other lengthy and detailed description should be inside the produced pdf/html.

marcos100··on Literate programming: Knuth is doing it wrong (2014)
Knuth's style allows code to be written in any order using named chunks.

AFAIK, there are some types of notebooks that allow the use of chunks, but I've never seen people writing in those.

marcos100··on Engineers should invest in decision-making skills early
It's better to have a business with profits and things to fix up than having no business. It's a tradeoff that has been proved to be valid.

As an engineer, it's hard leave some things half baked, but it is what it is.

marcos100··on Maybe we could tone down the JavaScript (2016)
Is it scaling well? Do you have a lot of concurrent users?

I'm thinking o using blazor server in a production app, but the latency and higher costs may be a problem. Wasm is not ideal for me because of the high initial payload.

marcos100··on Ask HN: Show your failed projects and share a lesson you learned
The problem is knowing what is "good enough". It comes with experience and, if you're doing something new to you, I think it's hard to assess.

You may probably tell what went in hindsight, but even then, it's just one if in the lifetime of the project.

"Oh, we could've released when x was done". Maybe, but maybe not too.

marcos100··on Best practices for writing code comments
Function comments should explain what it does, and comments inside functions should explain the how.

  // Receives n >= 0 and returns the n'th fibonacci number
  int fib(int n) {
      // We use the memoized version of the algorithm.
  }
marcos100··on Best practices can slow your application down
I agree with you. It will efficiently allocate resources for an inefficient application. But when your system can't handle the load anymore, you'll have to allocate more resources and k8s will handle it for you like magic.

It's so easy that people can use thousands of machines to handle the load. This with the "hardware is cheap, dev time is expensive", makes it common to see those kind of very large systems.

marcos100··on Best practices can slow your application down
For those who only read the quote "premature optimization is the root of all evil", here's the context:

"Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."

From some readings of Knuth, I have a feeling that he always think about efficient code.

marcos100··on Best practices can slow your application down
When you program without performance in mind, hw is always your constraint.

k8s is a blessing because you can scale out easily and is a curse because you can scale out easily.

marcos100··on HTTP/3 Is Fast
The charts are ok for the purpose of visualizing the performance of the protocols. At least for me, they are side-by-side with the same min and max values and is easy to compare. The purpose is clear and starting from zero adds nothing of value.

People who think the bottom line is zero don't know how to read a chart.

What maybe is missing is a table with the statistics to compare numbers with maybe a latency number.

marcos100··on Ten years of experience, still failing phone screens
Totally, it's like admitting that you don't know how to hire. And it's worse if HR is involved.
marcos100··on Making life easier for newcomers to the .NET ecosystem
I thinks it's easier to engage new people into your technology with this approach.

Once they're hooked on, they'll have to learn the details. I don't know if you're old enough, but Rails got a nice momentum with their 'Blog in 15 minutes'.

marcos100··on They don't even know the fundamentals
It's about touch typing only. If you start changing other variables, the comparison doesn't make sense anymore (to the discussion).

Of course your senior engineer that wrote the thing will be more productive than your intern that writes 1000 WPM.

marcos100··on They don't even know the fundamentals
You touch type not to break a world record. You touch type because you can write without thinking about the keyboard, just like you don't think when using or arms or legs, and it's faster to correct an error that you made.

Imagine that you want to correct a block of code or a whole paragraph. If you don't touch type, maybe you will think twice before rewriting it.

marcos100··on My 10 Year Side Project Story
In brazilian portuguese we have an expression called "engenheiro de obra pronta" (something like "engineer of a completed construction").

It means that's easy to talk about a finished work, it's faults, how it could've been done better and, if one were to replicate it, he would take a lot of less time.

Of course he would, someone else took the trouble to plan everything and fix the all the problems to reach a reasonable architecture/design. And obviously, that person will never do it because "it's trivial".

marcos100··on Comparing SQLite, DuckDB and Arrow with UN trade data
Kind of. The dataset is small and he probably need to create the database at most once per day and have to read a lot more for his analysis/exploration.

Columnar databases are a good fit here.

marcos100··on Facebook chooses profits over people
Yes, free market is not free-so-I-can-do-anything. It must have some regulations, or else all the corporations will become evil.
marcos100··on How to Create a SaaS and Compete with the Big Players as a Solo Founder
I think patio11 recommends these tiers for low touch B2B SaaS with 10% discount for annual plans.
marcos100··on How to Create a SaaS and Compete with the Big Players as a Solo Founder
You're small enough that they don't care. If you grow big, then they buy your or copy your business and when that happens you'll have earned a lot of money, hopefully.
marcos100··on How I learned to program
I don't know if Chrome has anything similar, but Firefox reader view is awesome for formatting an article and making it easier to read.
marcos100··on How to Avoid SQL Injections, XSS Attacks, and File Upload Attacks in Web Apps
Yes, you should persist the raw user input. Why would my non-html gui app show some escaped html?
marcos100··on Design patterns let you apply existing solutions to your code
The authors of "Design Patterns" didn't create anything new, they just documented common patterns used in the industry and gave them a name. So, when you say "I used X pattern here", I can have a high level architecture of the code in my mind when navigating it and how it's supposed to work.

You should read the title as "Design Patterns for Java". You can try to implement the patterns in other languages and it may work but, if it doesn't, that doesn't mean the book is useless, it just doesn't fit your language of choice.

I believe someone would've written a book similar to "Design Patterns" at some point in time. It just happened to be the GoF.

You can say whatever you want, but today we all use patterns to talk about software. It may or may not be thanks to the book. We'll never know.

marcos100··on Pioneering work that has changed our understanding of migraines
> I blame schools for teaching kids to reach word limits, instead of how to express themselves concisely.

I thought the same in the past. But I think it's a good idea to enforce word limits to make them think more about the subject and to practice writing longer and complex texts.

The problem is that the teachers just impose a limit without explaining and then it just looks like some bullshit metric.

I think modern journalism is more about SEO and getting attention, not word limits imposed when we were in school (if you hate word limits, then you probably dind't continue writing longer texts)

marcos100··on Why NoSQL
If you're throwing everything the customer have input then you have a poor written application.

Not inserting bad data is much better than trying to make sense of inconsistent data because you don't know what is true or not.

marcos100··on Secret military aircraft possibly exposed on TikTok
Strava famously outlined hidden military bases.
marcos100··on Taming Go’s memory usage, or how we avoided rewriting our client in Rust
People who is interested in rust maybe want to see how it was used.

The author could have just kept "Taming Go's Memory Usage".

Maybe they never considered rewriting in rust. The pros and cons looks like just some random arguments to add rust to the title.

marcos100··on A search engine that favors text-heavy sites and punishes modern web design
If Google isn't useful then nobody will use it.

The search engine and the ads are tightly coupled. A better search engine means it can predict with more accuracy what you are looking for and can serve you an even more targeted ad that increases the chance you'll click.

← PreviousPage 3 of 4Next →