Better HN
topnewbestaskshowjobs
Log inSign up

dtech

8,715 karma · joined Feb 25, 2014 (12y ago) · 2,256 submissions

Submissions

comment 4y ago · link · parent

> The InvalidValuesInEnumsFieldsFuzzer will send invalid values in enum fields. It expects a validation error in return. The GitHub API does not seem to reject invalid values, but rather convert them to a default value and respond successfully to the request. This is in contradiction with the OWASP recommendation around strong input validation and data type enforcing.

Doing this is incredibly good practice for compatibility, because otherwise you can never add or remove enum values because older clients will break on the unknown values. I also fail to see how it violates the recommendation, invalid data doesn't enter the system.

Imagine all webservers and browsers would need to be updated for every new HTTP header or status code is specified or web pages don't work anymore...

comment 4y ago · link · parent

Which industry you've worked in is not a protected class, you can discriminate all you want.

comment 4y ago · link · parent

This is easily researched [1]. While NL exports inflated due to having a large port with a lot of imports, they are still a large net exporter compared to size.

[1] https://www.cbs.nl/en-gb/news/2022/03/agricultural-exports-e.... In monetary values, 28% is re-exports and 72% is exports.

comment 4y ago · link · parent

Does it do more than just grep? That's awfully limited compared to what jq can do. I personally like jless for just searching and exploring.

comment 4y ago · link · parent

Only in the same way that "off" is an excellent TV channel

comment 4y ago · link · parent

Do you have a good resource or summary on why volatile / synchronized are problematic and java.util.concurrent should be preferred?

I always remembered the same, but was recently in a conversation with Java devs who contradicted it, and could not articulate well why this is the case. and could not find good resources on it.

comment 4y ago · link · parent

It works well with master data [1], i.e. semi-static data of limited volume that is widely needed throughout systems. Think physical store locations and such.

Services can either store it in their own database and still get an update stream, or services can read the complete set on boot and keep it in memory. It can avoid the need for RPC/REST calls so centralized services that keep track off this kind of data, preventing cascading failures if those fail.

[1] https://en.wikipedia.org/wiki/Master_data

comment 4y ago · link · parent

I'm confused by your response. If NASA is to be believed, he was not particularly zealous in following the policy. You propose that any government official of pre say 1980 should not be referenced because of this?

comment 4y ago · link · parent

No, this is not what people mean with "processed food" at all.

comment 4y ago · link · parent

I've been working with Rx for 10 years or so and I think it's a terrible model.

If you need processing of streams of asynchronous dynamic ("hot") data it's the least-bad model I know, otherwise there are much better ways, especially now that many languages have async-await keywords or at least a Future/Promise type.

comment 4y ago · link · parent

Very little people are advocating that WFH doesn't work better for focus work of clear and specced tasks.

However, in my experience that is maybe 30-90% of software engineering, depending on environment, role and seniority. There are lots of relevant activities that are more challenging remotely, such as 1-on-1 mentoring, pairing for debugging or programming, or designing and collaborating a project or interface across-teams. Maybe you are "lucky" enough to never have to bother with that.

comment 4y ago · link · parent

Those questions are stupid, it's like asking why bother having software if it so regularly has bugs? There must a nefarious plan behind the software development sector!

comment 4y ago · link · parent

If large groups of people and especially large groups of experts keep making the same mistakes with a tool, it's not the users that's the problem, it's the tool.

comment 4y ago · link · parent

Was that before or after it wasn't updated for years?

comment 4y ago · link · parent

Can you expand on this or provide sources? At least in my countries the gas storage is now-empty gas fields that used to contain natural gas anyway, I have a hard time seeing how that could contaminate water sources.

comment 4y ago · link · parent

I feel like this is a bit too generous to Oracle. The DRM-free thing is indeed a feature, but they know full well that it will encourage more and more unlicensed usage which they can then "extort" additional fees out of a company once it's in place and critical, which they would probably never have gotten if beforehand a trade-off check would've been done for operational expenses or the right gates would've been needed to have gotten over.

comment 4y ago · link · parent

I find it quite jarring to see all the Swedish people walking without helmets on those icy streets!

The number of bicycle accidents is quite small and the number of serious head injuries even smaller, helmets would save less than 5 children yearly [1]. This is mostly due to education, both primary school cyclists and driver's license and road design separating cars and bicycles.

[1] https://swov.nl/nl/fact/fietshelmen-hoeveel-slachtoffers-zou...

comment 4y ago · link · parent

Another thing for Russia, showing that they can and are not afraid to attack such infrastructure of EU countries. It's safe because it's "their" pipeline and cheap if they don't think they would've resumed operation in the future anyway.

comment 4y ago · link · parent

This is almost a certainty in large organizations, because these people spend their time on advancing their career, office politics and place in the organization as opposed to producing things / "doing their job". And unfortunately but unsurprisingly in most organizations it's a much more successful strategy when measured in power and compensation.

comment 4y ago · link · parent

It's how all Java collection interfaces work have worked since forever. They probably don't bother introducing new super-interfaces because Java code is never going to migrate from List etc.

comment 4y ago · link · parent

In the US legal system a non-government entity can force any 3rd party to spend time and money for their benefit? That seems pretty weird.

comment 4y ago · link · parent

Relevant to this discussion: Tesla only uses CCS in EU because it was mandated by law, just like USB-C now will be.

comment 4y ago · link · parent

For a while Apple included micro-USB to lightning dongles with EU iPhones, but I think they've stopped doing that some time ago.

comment 4y ago · link · parent

The Switch USB-C connector is notorious for being non-complaint to the spec, making charging it finicky. However I did not encounter as much trouble as you, 9 out off 11 chargers I try work. This problem is unique to the Switch however.

comment 4y ago · link · parent

Interesting! Any reason why they're specifically good for emulation?

comment 4y ago · link · parent

Yep, it works pretty well if you combine it with a JSON schema validator and call the validator in a isX(data: unknown): data is X type guard.

comment 4y ago · link · parent

why do you care about my 10 "wip" commits on a feature branch? Why am I not allowed to package a change in a nice set of commits once it's done/reviewable?

comment 4y ago · link · parent

On the music player side yes, but it had a lot of features/bloat like the music store and iPod synchronization.

comment 4y ago · link · parent

Congratulations for being special, 99% of academia uses Matlab, a simple GUI text-editor or something like Anaconda.

Emacs is such a fundamentally different paradigm from all other IT tools/editors that it just doesn't make sense to recommend a specialized tool with a steep learning curve and non-transferable skills when it's not ubiquitous and more standard alternatives exist without it which do OK. It doesn't matter that emacs was historically the first and everyone else decided to go in different directions, that's just the reality of today.

comment 4y ago · link · parent

That is not the scientific consensus, although a position taken by some. Much more people agree that bio-accumilation is dangerous to health and nature, also because that ends up in humans when they eat things.
1
181920
76