Better HN
topnewbestaskshowjobs
Log inSign up

kords

15 karma · joined Jan 16, 2019 (7y ago) · 40 submissions

Submissions

comment 11mo ago · link · parent

I agree that tests and automation are probably the best things we can do to validate our code and author of the PR should be more responsible. However they can't prove that the code works. It's almost the opposite: If they pass and it's a good coverage, then code has better chances to work. If they fail, then they prove code doesn't work.

comment 5y ago · link · parent

It reminds me of the Starbucks too much ice lawsuit: https://www.nbcnews.com/business/consumer/half-full-woman-su...

3.

How lines of code made a rocket explode(medium.com ↗)

1 points · by kords · 5y ago · discuss

comment 5y ago · link · parent

I got a bathtub stopper and I saw on the box a Prop65 warning. Not sure if it's because of the lead.

comment 5y ago · link · parent

If you integrate with a third party service and their environment is slow, because it's not a production environment, your tests will fail due to timeouts. How would you fix this?

One way I would think is to not go against their service; create a similar service and run it according to your SLA. But then, you have to make sure contracts are in sync, so you need to verify contracts from time to time.

comment 5y ago · link · parent

I remember I was enjoying XSLT; I used it to create templates and, in the end, valid XHTML pages. I thought that's the future.

comment 5y ago · link · parent

I like this book: "The Art of Thinking Clearly" by Rolf Dobelli. It has some tips on how to avoid some of them. https://www.amazon.com/Art-Thinking-Clearly-Rolf-Dobelli/dp/...

comment 5y ago · link · parent

Same, I would rather release on a Monday than a Friday.

comment 5y ago · link · parent

Indeed, online publications and governmental agencies seem to have adopted " ".

comment 5y ago · link · parent

I liked Humans vs Computers by Gojko Adzic a lot.

comment 5y ago · link · parent

Yup, today I was looking on some examples of AWS CloudFormation templates and I saw version 2010-09-09. Instantly, I thought the webpage I was reading must be old; so I opened the docs. In the docs, I see "The latest template format version is 2010-09-09 and is currently the only valid value."

Last version was 10 years ago and this service is one of the core AWS services, so it's definitively not abandoned.

comment 5y ago · link · parent

Looks good, but I wish autocomplete would be available.

comment 5y ago · link · parent

Serverless framework(https://www.serverless.com/) is another popular tool which can be used with multiple cloud providers. Unfortunately, it has similar limitations as the tools described in the article. I just wanted to mention it because, for me, learning curve was easier than Terraform or Pulumi.

comment 5y ago · link · parent

I just remembered about this: https://www.youtube.com/watch?v=4AEbn1NUvq0 Number "21" shows on the screen before the actual extraction (1:06 & 1:38)

comment 5y ago · link · parent

I was considering migrating my NodeJs lambdas to .NET Core, but I guess cold start times will have a higher impact over billing.

comment 6y ago · link · parent

I would like to see something like "This light speed spacecraft design does not exist".

comment 6y ago · link · parent

Sometimes I find this useful. This should also help the test errors you mention.

   public class MyTest()
   {
      private readonly IServiceProvider _serviceProvider;
      public MyTest(IServiceProvider serviceProvider)
      {
         _serviceProvider = serviceProvider;
      }

      public void MethodA()
      {
         var serviceA = _serviceProvider.GetService<IServiceA>();
      }

      public void MethodB()
      {
         var serviceB = _serviceProvider.GetService<IServiceB>();
      }
   }

comment 6y ago · link · parent

I wonder why it was easier to build an image of this black hole at 16.4 million parsecs (53 million light-years) from Earth and not the one from the center of our galaxy which is at 26,000 light-years.

comment 6y ago · link · parent

They have ways to detect the "unusual". If I fill a form really fast, or something is weird in the state of my browser I get prompted to select crosswalks, road-signs or hydrants. It will be great if they would apply them on their algorithms too, when an "unusual" result occurs.

comment 6y ago · link · parent

Typically modules come with their own contracts. Even in the backend by itself, we see same class definition as a model, as an entity and as a business object. OOP also had goals regarding reusability (see criticism section - https://en.wikipedia.org/wiki/Object-oriented_programming). Reusing the same code is hard.

comment 6y ago · link · parent

I have a very large json structure that generates a Media Live channel in AWS. When I want add/change something it's almost impossible. I can see this tool helping me.

comment 6y ago · link · parent

Not sure if Vim can do it, but code can be read outside of editors. Sometimes people review PRs in browsers. I can see why there might be a confusion when using static imports or properties/methods from the base class without the base keyword.

23.

Ask HN: How to insulate an iPad in warm environments?

3 points · by kords · 6y ago · 2 comments

comment 6y ago · link · parent

For me, it would be the Composition API. I think it will clean a lot of code I have. I'm not too familiar with other competitive frameworks unfortunately. I chose VueJS for my personal projects because it felt easier to learn.

comment 6y ago · link · parent

It's back now (at least for me).

comment 6y ago · link · parent

I use double-click for fullscreen, but yeah, it will go on top.

comment 6y ago · link · parent

I've tried it, it's awesome. The things I'm missing in that new window are progress bar and volume control. Or at least I haven't seen a way to make them visible.

28.

Interfaces in CSharp8 are bit of mess(jeremybytes.blogspot.com ↗)

1 points · by kords · 6y ago · discuss

comment 6y ago · link · parent

I wonder what's the price for a new one

comment 6y ago · link · parent

I think it's the other way.
12