Hacker News new | past | comments | ask | show | jobs | submit | GycDH6mb's comments login

Is this why when I'm on Etsy, some obscure, niche item that I'm looking at will always say "13 people have this in their carts right now"? Etsy doesn't seem like the type to me, or maybe that code is just flawed


I think they just include abandoned shopping carts in this number


...and those abandoned shopping carts are from Google Search Bot which checked the product prices...


Wait, how does this work? Google bots this complex, or Etsy especially made it possible for Google bot? Also Etsy shows price directly on page, so whats the reason?


I’ve been suspicious of Etsy for years for this very reason. Either Etsy is scamming or the sellers are playing games.


You can test it yourself:

Become an Etsy seller and sell something what wouldn't be even show up in search

Observe if "N people have this in their carts right now" shows up

...

PROFIT


They actually allow you to turn off stories in settings, and that entire tab will just disappear. You have to respect that!


My curmudgeonly self would prefer if the stories were off by default. It's not a feature I'm even remotely interested in, and feature creep really isn't a positive thing.

I've tried snapchat and Instagram stories, and I hate that the messages disappear with time. It seems counter-intuitive for an asynchronous communication method, and that doesn't even count how it always feels like another FOMO marketing gag to keep you engaged with the app.

Just let people delete posts (and really delete them to boot).


I think you don’t quite have the right mindset for the purpose of stories. The point is “this is not important enough to interrupt my friends; but here’s what I’m up to if you’re interested”. It doesn’t matter that it expires, because it’s only relevant to what is happening now.

Of course it still has all the usual social media failings where it is used to make the senders life seem more exciting and fun than it really is but I see the point of having the option.

I especially like signal’s groups implementation. I have a couple of large group chats where I am happy to share my day with people but it’s not important enough to notify everyone’s phone and it doesn’t matter if they miss it.


> it’s only relevant to what is happening now

See - that's the part I don't get. Photos, to me, are not ephemeral. They are valuable, even if you don't think they are at the time. I've lost too many photos because I considered them to be ephemeral, and I regret that loss because I now only have vague memories of the events they captured. My only remaining memories of some of my oldest friends who are no longer with me are captured in those "irrelevant" photos.

Future you will thank you for keeping photos of your friends.


I mean the person who took the photo still has it and you can still ask for it if you like it? If anything stories make you likely to see more photos of your friends, not less.


When the company I worked for was in the process of being acquired, our codebase was frozen as well. I'm pretty sure this is just standard practice, no?


My previous experience of this was:

1. No user facing feature releases for the time being the deal being agreed and becoming effective (plenty of backend systems, performance optimisations, etc. still got released)

2. Don't touch anything on the day of the deal, in fact, take a free day off.

3. No major feature removals for 3 months after the deal.


I use DDG not for any concern over privacy, but because the developer tools and results are so nice. !bangs are also excellent and a huge timesaver

`! mdn window.postMessage` .. so easy!


You can do this natively in every major browser too. You'd have to configure the triggerwords yourself, though.


> It seems like many of the variables are given names that are not descriptive at all to make it a bit more difficult to read.

The code is just minimized for prod..

The article as written makes it sound like the developer(s) intentionally wrote their code cryptically, whereas minimization for deployment is fairly standard practice


How common is it to have your minifier change symbol/variable names to short ones?


Pretty much all of them do it. You can’t minify keywords or literals, so that just leaves whitespace, which would be barely any minification at all.


Jsmin cited a typical 50% reduction without touching symbols, though perhaps that's an average that included removing comments.


I just popped open DevTools on an SPA I made using create-react-app with default settings. Sure enough the minified production JavaScript uses shortened variable names. This is default configuration for Webpack, which is pretty widely used throughout (and outside) the React ecosystem.

Interestingly you can still view the unminified source, since create-react-app generates source maps by default.


It is pretty common. The goal of the minifier is to reduce the size of the file, so taking the function names, variable names, etc and making them as short as possible works towardd that goal


Closure Compiler (for JavaScript) does it. With the SIMPLE_OPTIMIZATIONS [0] flag, it will rename parameters for—and variables local to—functions to save space.

[0]: https://developers.google.com/closure/compiler/docs/compilat...


I've seen some minifiers that can restructure your code... replace if{} with a ternary ?: operator or use boolean shortcutting to replace the whole conditional with a ||, and so on. It's supposed to never do anything that actually affects the logic, but that sort of stuff scares me.


Very common


That's literally what they are for.


For some context, it didn't used to be terribly common. There's a fair amount of minifying that you can do without touching symbol names, though obviously it doesn't help as much as shortening them. The old jsmin cited about 50% reduction, and it didn't touch any variable or class names.


It's actually pretty standard


If they really wanted to hide it, there are some nasty obfuscators for JavaScript: https://obfuscator.io/


https://jsfuck.com is another good one


If you don't mind my asking, what could be improved? I work in engineering but would like to send the feedback over to our customer support team.

Unfortunately, a large portion of HelloSign's customer support team was affected by a reduction in force earlier this year, because Dropbox didn't want to pay salaries for support staff in high cost of labor areas, like San Francisco.


I'd be THRILLED to tell you. Shoot me an emal at grey@hodge.be and I'll tell you everything. I love the product, been a fan of Dropbox for ages, and if I can help you help someone else improve the experience, maybe Docusign can get real competition.


Or even IP firewall? Hell, our admin panel can't be accessed outside of our physical office, save for VPN.


I’m pretty sure Twitter is still (mostly) working from home like all the other tech companies in the area, so a physical proximity requirement is out. A VPN requirement could work; in theory there’s no reason a VPN login is any more inherently secure than the login to whatever admin panel they’re using, but in practice VPNs can help centralize security policies across many applications. (I have no idea what Twitter’s systems look like, though.)


> there’s no reason a VPN login is any more inherently secure than the login to whatever admin panel they’re using

VPN credentials can also be tied to a device certificate, which can be securely stored in the machine’s TPM.

This prevents VPN login from anything except a company issued machine. You don’t get this with normal password auth.


People are generally far less likely to give out credentials to their VPN or personal accounts than they are to give out passwords to a random application. Additionally requiring a VPN increases the barrier to entry to accessing the application as you could have additional requirements to a VPN (such as a 2FA and device certificate).


You're not wrong, and maybe "hostile architecture" like this is cruel, but damn if I owned a business and I had homeless people setting up tents or loitering outside my door every night I'd probably find a way to stop it too. Spikes are a cheap and easy-to-deploy deterrent.

In a similar vein, I volunteer with a pigeon and dove rescue organization, and it's no secret that businesses install spikes on eaves and ledges to deter birds too. Although it always makes me sad to see them, I can understand and appreciate why they do it.


[flagged]


That crosses into personal attack. Please don't. Please do follow the HN guidelines: https://news.ycombinator.com/newsguidelines.html.


choosing one problem over another doesn't say much to the person's priorities; perhaps they just thought they'd have more impact in that field.

Furthermore, that attitude drives people away from philanthropic work by alienating them about what image their proposed good deed generates.

Just do good, any way you find.


I use "&&" as the shortcut for for my address, "@@" for my email, and "##" for my phone

For my work address, email, and phone, I just append "w"


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: