Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

Symbols vs Strings Discussion

General • Asked by Chris Oliver
Related episode

Nice! Some of my upper division CS students struggle with the notion of symbols, and I'll point them this way.


Some videos about the basics of tests would be awesome...


Organising large rails apps is something that I struggle with. I've look at namespacing models but can never get my head around the folder structure and then the different way you have to reference a model in a namespace or scope.
Because of this I avoid it and end up with 50 models in one folder.
I'd be very happy for you to explain how to do this better?

Hey Rob - I could give you some pointers on that kind of thing. Are you in the slack channel where I could DM you? - David


Great episode, Chris! Love the basics/beginner genre!


Great video Chris. Would love to see one on relationships such as has_many :through and Polymorphic.


Glad to see you're adding more beginner episodes!


This is a very great episode because help me understand what's happeing under the hood. What I didn't know and I haven't hear before was what you mention at 7:18:

the last set of arguments to any function can be a hash and you don't have to specify the curly braces, they're optional

I have used that in my methods but I've never new that this could be the last argument for any function. Do you have any source to read more about this topic?


I'm still finding this a bit confusing because it seems like you're comparing apples to orange. The way I see it, which is why Im' confused is that a symbol represents something.
Like the :set_project symbol. It represents/contains the method that was defines. Where
Project was successfully created is a string and what is being represented by the notice: symbol. Am I understanding this wrong. Please clarify when you get the chance.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.