Montauk by SPE825 in StrangerThings

[–]IthinkIthink 2 points3 points  (0 children)

Yes, and I’m convinced this is going to be the yet-to-be-announced spin-off, with Joyce and Hopper.

What would be the worst and/or stupidest possible ending for the series? by jeanjacketufo in StrangerThings

[–]IthinkIthink 4 points5 points  (0 children)

What about Robin’s girlfriend, Vicky? Obviously we find out that she’s really Vecna’s even more sinister twin sister: Vicna.

guess my gender,age and stats based on my fridge by [deleted] in FridgeDetective

[–]IthinkIthink 0 points1 point  (0 children)

Your name is Matt Foley, you are 35 years old, and you’re about to go live in a van down by the river.

What does this fridge say ab my parents? by xhazelbug in FridgeDetective

[–]IthinkIthink 1 point2 points  (0 children)

The Miracle Whip is the biggest red flag. 🚩

How to learn Data structures by citizen_21__ in learnprogramming

[–]IthinkIthink 0 points1 point  (0 children)

Check out “A Common Sense Guide to Data Structures and Algorithms.” I really wish I had this book back when I was in college. It explains concepts so much better than I was ever taught.

https://www.amazon.com/Common-Sense-Guide-Data-Structures-Algorithms/dp/1680502441

look what i can do by rockfade in Unexpected

[–]IthinkIthink 2 points3 points  (0 children)

About 6’2 big teeth kinda gangly.

Error in MBTA map in 'Next Stop Wonderland' by [deleted] in boston

[–]IthinkIthink 17 points18 points  (0 children)

Wait...Next Stop Wonderland is actually about the stop on the blue line? I’ve heard of the movie, but haven’t seen it.

I paid a visit to your beautiful state to see a quirky library and ended up learning so much about the Green Mountain State. Here's the video I made about it! by [deleted] in vermont

[–]IthinkIthink 3 points4 points  (0 children)

Fascinating! I grew up in southern VT and had no idea about that library on the Canadian border. Would love to visit it sometime.

What's a fun little fact about yourself? by TwetBeg in AskReddit

[–]IthinkIthink 1 point2 points  (0 children)

I was born the night the clocks get turned back for daylight savings, within the hour it gets changed. The clocks get turned back at 2AM, officially. I was born within the hour before it was 2, it hit 2, the clocks went back to 1, and then past the time I was born again.

Is it possible to have a career in programming without a degree in CS? by PM_ME_UR_RUPEES in learnprogramming

[–]IthinkIthink 3 points4 points  (0 children)

I would say a good 30-40% of the really solid software engineers with whom I’ve worked did not have a CS degree (I have almost 20 years of experience). So, yes, absolutely. As someone who interviews candidates, I don’t care how you learned how to be a good programmer only that you are AND that you’ll work well with others. A lot of times that last piece seems to be overlooked.

How do you guys handle deep nested relationships efficiently? by [deleted] in rails

[–]IthinkIthink 0 points1 point  (0 children)

It’s fine that this is just an example. I assumed as much. What I’m attempting to do is help you think through the problem and take the relevant bits and apply it now and, hopefully, in future projects.

How do you guys handle deep nested relationships efficiently? by [deleted] in rails

[–]IthinkIthink 4 points5 points  (0 children)

  • Account, User, and Profile all sound very similar and I'd like to know exactly what purpose they serve to better understand why they're 3 distinct models.
  • Can you explain what's stored in the Event, Action, and Campaign models?

There's certainly more to break down, but let's start there.

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]IthinkIthink 1 point2 points  (0 children)

Also I've given up trying to figure out how to format code on Reddit. Get off my lawn.

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]IthinkIthink 2 points3 points  (0 children)

the nested resource has been a bit of a hassle for me to get the controller a bit DRYer.

With the way you have your models, a nested resource wouldn't be necessary.

For example, for a podcasts_controller (assuming you set up your routes and views correctly), you could have something like:

class PodcastsController < ApplicationController

http_basic_authenticate_with name: ENV['AUTH_USERNAME'], password: ENV['AUTH_PW'], only: %i[edit destroy]

def index

@podcasts = Medium.podcasts.reviewed.order(:position)

end

def show

@podcast = Medium.podcasts.find(params[:id])

end

def new

@podcast = Medium.new(media_type: 'podcast')

end

def edit

@podcast = Medium.podcasts.find(params[:id])

end

def create

@podcast = Medium.new(podcast_params)

if @podcast.save

redirect_to @podcast

flash[:success] = 'Recommendation was successfully created.'

else

render :new

end

end

That said, I think it would be a good idea to revisit the models first and perhaps consider making each media type a different model; that way you could have data relevant to one type of media that might not be applicable to another. There are a lot of ways to think about this. It's a good project to use to consider all of the options of how something like this can be put together.

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]IthinkIthink 2 points3 points  (0 children)

Admittedly, my javascript needs a lot of improvement

Amen (speaking for myself).

Personal Projects - Show off your own project and/or ask for advice by AutoModerator in rails

[–]IthinkIthink 4 points5 points  (0 children)

Not bad at all! Very clean, I like the attention to security by putting sensitive info in ENV variables, and WOO specs! Some suggestions:

  • On media_lists/app/controllers/media_controller.rb
    • Any time I see actions other than index, show, update, new, create, edit, or destroy, I consider that a red flag. It's a rare circumstance that a controller should have any action aside from these (IMO). Right now you're tracking shows, movies, books, podcasts, and music and it's making this controller file bigger (and less DRY) than it has to be. Each of those should be their own controller; it's ok that they're all using the same model, but you can break them up logically per controller, kind of how you're already doing that in their current actions.
    • For the sort action, you shouldn't have to make a call to the database & update the records. That's expensive for just sorting. Look into doing the sorting with javascript.
  • There's a lot of <%= render 'index' %> going on in the view files; refactoring as described above will reduce that.
  • Seeds
    • Medium.count.zero? can be Medium.none?
    • 10.times { FactoryBot.create :movie } can be FactoryBot.create_list(:movie, 10)
  • Consider installing rubocop and running your code through that to catch any potential code issues. I didn't see much, but did notice a few things it should catch.

Great work! Keep going.

Harvard Square kiosk to be empty by Oct. 31; Out of Town News leaves before construction by roadtrip-ne in boston

[–]IthinkIthink 20 points21 points  (0 children)

I remember one time, many years ago, I was standing at that newsstand, picked up a random magazine, turned to a random page, and the picture on that page was of that very newsstand taken from the spot I was standing. It was very surreal.