Live data from Hacker News

A minimalistic site to vent and see others doing the same in realtime

ventscape.life

61–70 of 148 posts

Re: A minimalistic site to vent and see others doing the same in realtime

#62

Earlier quoted context omitted.

I'm not sure why there is a database at all, if you want messages to just appear and not stick around you could do this over websockets and never need to touch a database

I'm brand new to full stack so I have no idea what I'm doing. Kind of figuring it out as I go along. Decided to start with short polling since I was having trouble getting websockets working and just wanted to get a v1.0 out in the wild. Switching over to websockets eventually is 100% on my mind, but I have a near infinite amount of work to do on all fronts so we'll see when I have time!

Congrats for the little project, pls opensource the db!

Re: A minimalistic site to vent and see others doing the same in realtime

#63

I've been wanting to do a tech trash talk site for a while. Sometimes I've got nothing but hate and vitriol for something and it'd be great to have a designated anonymous space where people can brood and lament. You can do things like sort by most capital letters and profanity density or incoherency and spelling errors. Now that I actually typed this out, it sounds really easy to code.

I started https://dotdot.im as a random chat place sort of for this, or for nothing, don't really know...

Nothing's stored at this point, chat's only live in memory while at least 1 user is there, and cleared after. Still trying to figure out what I'll do with it

Re: A minimalistic site to vent and see others doing the same in realtime

#64
post #51
post #38

You're warned: const messageText = inputTextBox.value.replace(/ ]+(>|$)/g, ""); var $newdiv = $(' ' + messageText + ' ').css({ 'opacity': '0.95' });

Sorry, would you mind explaining what this will do?

Improper input sanitation, you can potentially add raw html to other people's pages (XSS).

Re: A minimalistic site to vent and see others doing the same in realtime

#65

Earlier quoted context omitted.

Hey, creator of the site here, thank you so much for the tip! Unfortunately I'm quite new to full stack. ~1.5 months ago I didn't know a lick of HTML (let alone CSS, JS, any backend framework, AWS, etc), and I'm making lots of mistakes along the way. Currently trying to figure out how to improve my DB performance as Spring's default pagination seems to be quite slow and my site is getting hugged to death at the momen…

Sounds like you're using offset for pagination. https://use-the-index-luke.com/no-offset

A bit more explanation for you or any other helpful people reading, I'm using Spring's PagingAndSortingRepository.findAll(Pageable) function, and then passing in sort=id,desc&size=10 via the API request params (but no explicit offset AFAIK).

Found one potentially good stackoverflow to dig into so far https://stackoverflow.com/questions/44021665/why-is-a-pagina...

Re: A minimalistic site to vent and see others doing the same in realtime

#66

There is a rendering problem in my browser (firefox with custom larger fonts): the textarea where you are supposed to enter text is half-cropped by the boundary of the window at the center.

Could you post/send me a screenshot? If so I may be able to figure out a fix

Re: A minimalistic site to vent and see others doing the same in realtime

#68
post #52

Earlier quoted context omitted.

A machine learning algorithm then uses that stuff to recommend content which is similar. If one engages with opinionated stuff, then they'll only get recommended stuff that conforms to their original opinion, forming an echo chamber.

Imagine following some people who talk about houseplants. Maybe you like some tweets with the kind of information you consider of above-average usefulness for you. Maybe you praise someone for a beautiful pic of their monstera variegata. The algorithm decides to show you more high-quality tweets and prettier photos. If you consider that an echo chamber then all right, but I don't think it's a useful definition. Is go…

Maybe it’s because houseplants aren’t a controversial topic. Take any topic where people hold strong opinions (politics, religion, ...) and start following people you agree with. I guarantee you’ll have to very deliberately look for people on the other end of the spectrum at some point because your feed and your follow recommendations will indeed be an echo chamber.

Re: A minimalistic site to vent and see others doing the same in realtime

#69

I've been wanting to do a tech trash talk site for a while. Sometimes I've got nothing but hate and vitriol for something and it'd be great to have a designated anonymous space where people can brood and lament. You can do things like sort by most capital letters and profanity density or incoherency and spelling errors. Now that I actually typed this out, it sounds really easy to code.

Please hesitate to stop by my little hangout. :)

Re: A minimalistic site to vent and see others doing the same in realtime

#70

There is a rendering problem in my browser (firefox with custom larger fonts): the textarea where you are supposed to enter text is half-cropped by the boundary of the window at the center.

Could you post/send me a screenshot? If so I may be able to figure out a fix

https://pasteboard.co/JLyDLRT.png
Post reply on HN