12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 8y ago · link · parent
Stop trying to shorten code by 2 lines. It’s not that bad to write it out. If it helps, think ahead to the 1st or 5th revision of the code you’re about to write and imagine where you’d even be able to add new code, given magical operators. In a case like this, it’s easy to imagine a single “else” case with “?” needing to change into multiple else-if cases, requiring the entire fancy operator expression to be rewritten. No real saving.
comment 8y ago · link · parent
comment 8y ago · link · parent
Though, it seemed to happen primarily with my own produced sounds and music, which I aggressively edited to back away to lower volume in the meantime. This helped a lot but the occasional pop or scratch never really went away until they changed the OS, and I haven’t seen it since.
My theory is that if a sound has a high enough volume all by itself, it doesn’t “mix” well with a lot of other sounds that have sufficiently high volume. And with music, unless each of the instrument tracks has a moderate volume, an overlap of enough notes with high volume could go off the top and be clipped, producing a horrible scratch.
It could be as simple as speakers that support a better frequency range. Perhaps something used to be done in software that is now done with higher-quality audio hardware, allowing imperfections to come through that were not noticeable before. I remember firing up old games with better speakers for instance, and being shocked at how flawed their sound really was; better equipment just didn’t exist when the games were made so they didn’t edit past the perceptible range of the audio equipment of the time. Sometimes you really do need to experience sound with the equipment that existed when it was produced.
comment 8y ago · link · parent
For instance, I made a game, and I might accidentally end up with a value that won’t modulus correctly due to zero denominator. In that app, mathematical accuracy for this single outlier does me no good at all because it manifests as “might crash randomly” when I want “doesn’t crash, period”. I therefore wrote a “safe modulus” routine that essentially guards against zero and makes a command decision to return a value. The added robustness against crashes is preferable, since I may not know if I have found every stupid case of the math accidentally working out to exactly zero.
In fact, more generally, exact zeroes mask lots of bugs. They are often default initial values, meaning you might not notice something working accidentally. Sometimes I use a really tiny float as my “meant to be zero” to distinguish, e.g. 0.0001 means “item was supposed to appear at coordinate 0”, that way anything that accidentally ended up at 0 is easier to detect.
comment 8y ago · link · parent
The solution needs to start in much simpler terms: Google should publish page traits that are rewarded and punished, and tools for seeing where you stand. It should reward/punish all sites based on how they fare in the published areas.
We don’t need new protocols/wrappers/rehosting or extra scripting or whatever else to drag bad sites into the 21st century. These just create additional issues when we have plenty of engineering problems already.
comment 8y ago · link · parent
I would add, “phones” are mostly not used for phoning now yet for some reason in 2018 your call still blocks the entire screen, out of the blue. This means your call could be ripping an E-mail draft out from under my fingers, or my place in a document or a game. I universally hate calls.
comment 8y ago · link · parent
As I see it, turning on “purchases” is a sure-fire way to accidentally order stuff every time I make a noise. Turned it all off.
comment 8y ago · link · parent
When software can implement ideas in a short period of time, we need laws that can work even faster. Speed up the process somehow, and “default answer: No”, or something...
comment 8y ago · link · parent
Cisco stuff though...hmmm. I hope it’s a good fit engineering-wise (or really, just NeXT-Apple the remote login folks and trash the awkward Cisco tools).
comment 8y ago · link · parent
The progress animations are out of control too. Every time I see one, I imagine the engineering hours it took to animate and wondered if they could have just spent hours optimizing the code instead. The weirdest thing about a lot of progress indicators is that developers don’t even get the point: your indicator has to be in sync with the activity! It has to give meaningful updates, it can’t just be a background animation that looks alive even when the server has died and isn’t coming back.
comment 8y ago · link · parent
There’s a common rule in Unix-like systems that essentially says “inputs are liberal, outputs are conservative”. It matters to have programs that can adapt, because this makes a lot of things more practical.
comment 8y ago · link · parent
While there may be something “brittle” from time to time, in my experience this just means it was possible to tackle the problem with text when the alternative would have been to have no way to do it at all.
PowerShell feels like it wants everything to be structured perfectly, and “perfect is the enemy of the good” applies. Sometimes, I don’t care if there is a way to perfectly structure a particular input because many use cases just don’t have stringent requirements.
comment 8y ago · link · parent
Deposits at time of purchase have proven effective. Put a deposit on every product with recyclable material using some generic measurement (like “weight of packaging”), such that when you return it you receive a quick and approximate return (in this example, by weighing everything you recycled and just not caring too much what the breakdown was).
comment 8y ago · link · parent
We desperately need absolute maximums enforceable in the browser, reversing the firehose. I want to opt your site in to more data use, after I trust your site. And I expect sites to work within my limit or not receive visits.
comment 8y ago · link · parent
I’ve given real reviews on Yelp of businesses that had real problems. These negative ratings were shuffled off into their special bucket of maybe-less-reliable reviews, well under pages of HIGHLY questionable 5-star reviews. I also have a friend with a business who was plainly told that he needs to pay to ensure good reviews. Yelp is a scam, and wins by being a virtual monopoly (as Amazon reviews do).
It is also amazingly hard to get reviews on the App Store from real users, for instance. I imagine you pretty much have to ask 60 friends to “help” you, or pay somebody, either of which creates a pool of fake reviews. It really changes your perspective on any other “ratings” you see.
In the end, I think society will learn that this is another example of buyer beware, and you get out of it what you put into it. Since looking over “reviews” for 30 seconds is low-effort, it is low-value. If you want good results, you need to spend a good amount of time and effort researching products.
comment 8y ago · link · parent
Why does it seem so hard to get chat right? Heck, Yahoo Messenger had lots of features in about year 2000 that we still lack or struggle with in newer products?
comment 8y ago · link · parent
Monorepo also bugs me because there will always be some external package you need, and invariably it’s almost impossible to integrate due to years of colleagues making internal-only things assume everything imaginable about the structure and behavior of the monorepo. There will be problems not handled, etc. and it leads to a lot of NIH development because it’s almost easier in the end.
Also, it just feels risky from an engineering perspective: if your repository or tools have any upper limits, it seems like you will inevitably find them with a humongous repo. And that will be Break The Company Day because your entire process is essentially set up for monorepo and no one will have any idea how to work without it.
comment 8y ago · link · parent
Also, being forced to take on a massive amount of debt just to have a chance to get a certain job makes that job less valuable overall. A company can still boot you out in less time than it takes to pay off debts so you’re really trying to find continued employment to justify an investment such as having to move or obtaining a degree. And of course you might acquire new debts while paying off the older ones.
These situations tie the hands of so many, and that’s not a “strong” economy. If there’s no truly disposable income, you’re essentially expecting people to set aside their basic needs to raise your stock price.
comment 8y ago · link · parent
There’s no credit given for having a tidy business with steady profit. Instead you have to have “growth” and other this-quarter-must-be-better-than-last-quarter-or-else crap that “investors” want.
comment 8y ago · link · parent
You know, if movie and recording studios want this so badly, let them put up the billions it should require for them to produce their own coprocessor.
comment 8y ago · link · parent
Programs are not all written by experts. Performance may be left on the table in areas that have nothing to do with optimizers or schedulers (e.g. picking an absolutely terrible algorithm or not noticing unnecessary memory allocations).
If something must remain “unspecified”, I at least want a debugging tool for that behavior. If something “may” happen, give me a switch to make it happen. If something is data-dependent, show me the data that triggers a different outcome or give me a way to scramble data enough to increase the chance of triggering a change in behavior.