Hacker Newsnew | past | comments | ask | show | jobs | submit | JSdev1's commentslogin

'node'.split('').sort().join('') == 'deno'


You may want to turn off the MSNBC, step outside and get some fresh air


I’ve never watched MSNBC outside of on silent in an airport bar. Your comment is unhelpful.


Why would they do that, what's the point beyond confusion? The whole thing is bad


Agree 3 column layout is no good, that 3rd column should go back to being above the 2nd column as before, I added custom CSS to fix that


Bad, I'd prefer native scrollbar, but only option for now is I added extra styling to improve


What's up with the huge amount of whitespace? This is supposed to be an information dense website, most of the screen is empty white. Not liking this, who designs this stuff? How to revert back, or I just need to add custom styles?

Update: I added custom styles to remove 95% of the extra margins, padding, spacing, line-height, updated h1/h2/h3/h4 header styling, code highlight styling, and it looks 10 times better, I can actually read the information. Unfortunately I still prefer the previous version

Question: Why do these important sites never get actual user feedback before forcing out a major update as a big "surprise" ?


> Why do these important sites never get actual user feedback before forcing out a major update as a big "surprise" ?

The people behind the redesign do so for career, resume & portfolio reasons - they are very unlikely to ever use MDN themselves so they don't care and don't see the problem. You can't rely on user feedback because there's a very high risk users will tell you everything is fine and there's no need for you to mess with anything.


So...they should change their tagline to: Resources for Developers, by UI Designers


Damn, it sure would be terrible to keep the UI the same even when the users say it’s, you know, fine the way it is. Ugh.


Ok I added styles that I am using for the site, I included Before and After screenshots, see link https://github.com/mdn/yari/issues/5389


Also interested in the custom styles. Although I like the redesign, it's all over the place typographically – 300 only for h1, 400 for h2 with a slight increase in letter spacing (?!) – but can't be bothered to apply a fix myself.


can you share your custom styles?


I'm still working on it. There is a large amount of things to fix. This is the #1 source of web dev information, and from what I can tell they completely screwed it up with this "design update"


Server was restarting, the site loads fast


It's the same thing as HTTP. Websocket starts off as an HTTP request with cookies, headers etc. Use those just like HTTP to authenticate, and your Websocket server should pass the user data to the websocket object


Don't have access to the headers from JS.

Best solution might be to generate a short-lived one-time-use ticket and pass it in the querystring.


If you make a normal HTTP request first, the server can issue a standard HTTP cookie to the client. That cookie will then be included when the browser makes the websocket request.

However, websockets are not subject to the same-origin policy, so this exposes you to CSRF [1]. To protect against that, you should check the Origin header on the server side.

[1] https://christian-schneider.net/CrossSiteWebSocketHijacking....


Cookies will be forwarded though, or..?


I just launched this site with websockets: https://hackernews.pro Websockets used for updating Story/Comment data, and User presence


Feel free to sign up for an Ably account and we'll help support your project with a community package, we love what you're doing!


I checked out the StackOverflow dark theme, the brown background was too bright for my eyes for a dark theme, but for this HN UI the Comments in the Story views do have a light grey background, so you must be referring to the Main page Story titles on black


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

Search: