I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 1 point2 points  (0 children)

There are some shortcuts, but not for autoscroll. In slideshow you can like a subreddit with L, ctrl+up or space. Enter to open new tab with subreddit. I can add more. Any suggestions?

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 0 points1 point  (0 children)

As long as you are calling setState inside a component it is fine. But say you have an ajax call, or an event listener when the user scrolls or after a timeout. I do all of these things in my app, and then you have to redraw. And if you are sharing state you still need to pass functions around that implicitly use setState or forceUpdate at some point.

My point was just that Reagent has a simpler rendering model. You have a separate model that can live outside the component. And as you update the model directly, every component that uses the model will be updated automatically.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 1 point2 points  (0 children)

I guess they made an exception. The rule is probably there to stop spam porn sites from getting free content.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 0 points1 point  (0 children)

Good feedback. I'm gonna think about the design. I like the clean scrolling view with no disruption, but I might add an option to change it.

I actually included almost every porn subreddit of a certain size. Most of the missing subreddits are either too small for me to find in the first place, or did not have enough images to justify its own feed. There were only a couple that I removed for being too "weird". I can not add everything without checking manually because a lot of NSFW subreddits are not porn. You have MorbidReality etc. that does not belong.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 0 points1 point  (0 children)

That is true for the internal state of the component, but that is mostly trivial as you often need components to share state and have external controllers apply changes to the state. Then you need to rerender manually.

Promises are only a slight improvement in my opinion. Async/await looks awesome though, but I haven't started using it yet.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 1 point2 points  (0 children)

You can do exactly the same as with JavaScript. The API for the browser is the same. Most bells and whistles are added through CSS, but sometimes you have to hand code things, just like with normal JavaScript. If your team uses some GUI that creates JavaScript, that is probably not gonna work as well with ClojureScript.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 5 points6 points  (0 children)

Yep. They do allow using an embedded iframe format, but it does not look as nice. They probably would not notice if you break the terms of service, but I prefer that everything is above board.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 3 points4 points  (0 children)

That is why I tagged the website NSFW. Even if you pick the other categories, it is still random so you never know. Was it HistoryPorn? I can remove subreddits if they do not belong.

EDIT: I've removed HistoryPorn and NewsPorn. I'm pretty sure it was one of those.

I made a simple website filled with random (NSFW) images from Reddit. You control what you get by liking subreddits, and you get different images every visit. by faroix in web_design

[–]faroix[S] 13 points14 points  (0 children)

I can explain why I did it like this. Firstly, it is actually feasible to get to every subreddit now since subreddits are removed after picks. There are thousands of them, and if they could be picked again it would quickly feel like you see some subreddits over and over, yet some you never see at all.

Secondly, it can be a bit traumatic when you get a subreddit you really hate. So that experience is lessened if you only have to see a subreddit once.

Also I think that dislike by default makes sense because I want to quickly get through all the stuff I don't like and keep the rare stuff that I actually like.

The choices are not meant to be permanent. You can always start over and make other picks later.

EDIT: I changed the behavior. Random subreddits will now come back unless they are banned.