8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
But, okay, let's entertain your random tangent. Such a request is emblematic of junior managers/junior manager hopefuls misguidedly trying to wedge their knowledge into the function of the operation. In reality, you don't want to have to build a team that requires discussion about such matters. You need to define clear performance requirements upfront and let the benchmarks speak for themselves. Even if a function is O(N!), but measures successfully within the needs of the application, good enough.
It is especially important to encode these requirements in benchmarks as it documents for future developers the same requirements, and ensures they stay within them as code gets modified. The reality is that you won't be around forever. Keeping a team that relies on you to ask such questions is a failing on you.
But let's accept, for the sake of discussion, that you have failed your team. One still does not need to remember that kind of information. The function they wrote contains what they need to know, and they can consult the function to ascertain that information as needed – just as you could all by yourself in this scenario. If you like keeping such trivia in active memory, good on ya, but it is never necessary.
comment 2y ago · link · parent
The reality is that you don't get paid well if the data is worthless. You only get paid well when the data is worth orders of magnitude more than what you're being offered. If you are inclined to break that law, that's a pretty nice carrot dangling there.
If you are so inclined, why wouldn't you take the job and report the not so crafty exploits to bring in the sweet, sweet paycheque and use the really juicy exploit to also go after the even sweeter data? It's a total win-win situation...
...unless you get caught, but if you are so inclined that's not exactly on your radar.
comment 2y ago · link · parent
Said database APIs are typically not unreasonable when the database is running in the same memory space as the application, where latency is unnoticeable, as historically was the case when a lot of these APIs were designed. But, as you know, the model breaks as soon as you find yourself in a high latency environment, like over a network.
So then you get some weird bulk operators bolted onto the system to work around the latency issue, but they don't fit the mental model of the rest of the API designed around the idea of single unit operations. Save catching it in the fine print, they go unnoticed. Indeed, the naive programmer who hasn't yet been burned will not be able to fathom that another developer could design such a bad API and will put faith in the idea that the underlying system will somehow automatically mitigate the problem you describe. And in small scale testing it works fine, so there is no reason to doubt that notion. That is, until it is too late...
The experienced developer has learned to stop trusting other developers and bring a heavy skepticism when using another's API. This is a blessing as it means they (usually) stop making those kinds of mistakes when they encounter a bad API, but it is curse as it means they see no reason to fix the problem. "Why don't the junior devs just know better?!" they say. And so, the cycle repeats.
comment 2y ago · link · parent
1. You get to test the flaws in an environment where nobody will raise an eyebrow. If you go straight for the production system, it is likely your early attempts will visibly show up in the logs.
2. You get paid to carry out malicious deeds. That's a double win.
It would be kind of silly not to.
comment 2y ago · link · parent
How so? Presumably most pen testers are working in good faith. But, if there is a malicious actor in their midst, that individual would not disclose any vulnerabilities they intend to exploit, no. What would be the point? That's just a really good way to get caught.
> Then you talk about "discovered and revealed vulnerabilities".
Yes, that's right. While it is theoretically possible for all your pen testers to be working together maliciously, if you are careful in your employment practices you can make this highly unlikely.
As such, if your data shows that 100% of all known vulnerabilities were independently discovered by multiple testers, then there is reasonable confidence that any malicious actor's failure to disclose a vulnerability will still be reported by someone else.
But if that figure is less than 100%, and especially if it is considerably less than 100%, then there is much more doubt cast on another pen tester in your organization's ability to find the same vulnerability. Here you have a problem.
comment 2y ago · link · parent
The addendum about network calls in a loop makes it sound like his domain uses some kind of SDK with a bad API design. There are some notorious examples which are known to fool new and uninitiated developers who haven't read the fine print into writing code that looks perfectly reasonable on the surface, but does dumb things under the hood.
My experience with new devs is more towards obsessive concern with respect to time complexity, at least where isn't hidden behind a bad API design, fearing an algorithm with high complexity that when measured under its practical use would be just fine. It can be difficult for new (and even old) developers to grasp just how fast computers actually are.
comment 2y ago · link · parent
I think we can agree that nobody is born with the language needed to express a program. But can we equate that to having no innate sense of how to program in the abstract?
One of the newer programming languages on the scene, GPT, has shown that many people who didn't think they could program are suddenly able to thanks to a syntax that is nearly identical to languages used for regular social communication. It seems people could program all along, they just lacked a way to express it.
I seems fair to say that a "cloud-native real time chat client" also requires understanding a lot of implementation details that have been built up over decades. Those particular systems are no doubt something that needs to be learned to work with. But that's really moving beyond programming in and of itself.
In a similar vein, are people born able to conceive of a story? I think we can agree that nobody is born with the natural language necessary to express it to others, but if you were raised by wolves in the forest would you still have some semblance of a story floating around in your mind? Understandably we lack the tools needed to give a definitive answer, but the best evidence suggests yes. So, why not programming?
comment 2y ago · link · parent
But maybe we're talking more abstractly, outside of computing? I watched my children start to learn about lists and indices around the age of four to five. Presumably the story was similar for me. If there was a mind-blowing experience at that time, it is true that I have forgotten about it (along with most other things that happened back then).
comment 2y ago · link · parent
Situate yourself in one of those parts. Pick a direction, any direction. Start travelling in that direction. As you are geographically located inside that combination of states, you will eventually end up crossing into one of the aforementioned states. There is no heading you can choose that would avoid it.
Have you never looked at a map before?
comment 2y ago · link · parent
Oh? I distinctly remember – after hearing the same story over and over that they are mind-blowing – thinking "that's it?" when I was first exposed to them. I was primed to see my life change, and all I got was a nothingburger.
But maybe it is that I still don't yet truly understand pointers, and thus have not reached the point where my mind gets blown? What have I missed?
comment 2y ago · link · parent
In theory, so could the US government. It has done exactly that before on a smaller scale. It would do it for housing too if it were deemed a good solution to the problem. I expect what you are implying is that Americans lack confidence in that being a good solution to something on a grandiose scale, like the housing situation, to see it though? That is something that appears to be true.
But then why would the Chinese people have that confidence? The authority can tell anything it wants, but without the confidence of the people it isn't going to go anywhere.
comment 2y ago · link · parent
Do they? The metric includes "Unknown" and "Other" not referred to in this, representing another 5% of activity.
However, what the OP seems to be saying is that interpreting anything from the metric and trying to communicate that interpretation with others is pointless. Not even the linked article can decide whether Linux desktop penetration is 4% or 6%, and that's just one person. Good luck when you add a second person with their own feelings.
comment 2y ago · link · parent
Probably not. The body of the article reports 6.24% desktop Linux penetration already.
The 4% reported in the headline refers to browsers which report Linux in the user-agent string. That is more down to browser choice than kernel choice. Specifically, a popular Linux browser has chosen to omit "Linux" from its default user-agent claim, hence the discrepancy.
It may be that developers and hackers are drawn to certain browsers, but that is beyond the subject of Linux.
comment 2y ago · link · parent
Perhaps you are questioning why I am pretending to be engaged with your trolling? Mostly because I enjoy your sense of humour. Some of the stuff you come up with is downright hilarious. Well done!
comment 2y ago · link · parent
While China is generally considered the least democratic country in the world, it does exhibit some glimmers of democracy. Democracy is most certainly not a binary state.
Regardless, China is still quite poor compared to peer countries. Maybe that will change someday, but it is a long road ahead.
comment 2y ago · link · parent
And Canada mostly shares the same timezones and works hard to keep them in sync (e.g. daylight savings time) with US timezones exactly to allow these kinds of business dealings to happen comfortably. There are exceptions, but few Canadians live there. It is unlikely that the one asking is among the exceptional.
> Ontario is most definitely not within the Continental United States, geographically or otherwise.
Better look at a map again... Position yourself in the north end of Windsor. Pick a direction, any direction. Start travelling in that direction. No matter which direction you choose, you will end up in the continental US. The geography of the United States has it surrounded.
comment 2y ago · link · parent
It is likely that these tools can make most everyone a programmer, like how improved elevator designs has made everyone an elevator operator. But how game changing is that, really? Tools like Excel have already made great strides in that direction, and with coding now standard fare in public school curriculums, everyone being a programmer is a game already well underway.
comment 2y ago · link · parent
They come from the same people (Ken Thompson, Rob Pike). The Go compiler was the first program written for Plan 9, although it processed C code at that time – the Go language would come later. Eventually it was machine translated into Go sources.