Skip to content

Instantly share code, notes, and snippets.

@tensiondriven
Created April 8, 2013 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tensiondriven/5339144 to your computer and use it in GitHub Desktop.
Save tensiondriven/5339144 to your computer and use it in GitHub Desktop.
What is the best methodologies to follow to debug (e.g. using binding pry, splitting complex functions into multiple steps to see where the code is breaking, etc)?
How do we apply TDD more effectively? The TDD example seemed more of a Ruby logic exercise than a TDD exercise.
What is a good strategy for setting up your html when you get a webpage design, i.e. how do we set up our divs, layouts, etc."
"What's the best workflow to use in Git? For smaller teams, and for larger teams? How does the team workflow tie into Github? This is especially important if we're going to start creating group projects.
How can we best utilize Git to keep version control under, well, control?
Ruby: Can we define these terms again? Modules, Mixins, Polymorphism, and other Object oriented terms"
"
Sinatra is a mind bender, I still don't really know what erb is, I understand what JSON is in principle, but don't know yet how to operationalize it, I'm really lost on API's, and I don't know even in principle what REST is.
I don't think more lectures will not help me much in gaining understanding, I think more small projects with a lot of guidance to complete said projects would help a lot. "
Can we learn more about TDD and using Agile to work on projects actual projects together?
"When do you use Exceptions and how do you use it?
I don't have questions about JSON or API's but I just want to see more examples of using both.
I can also use more Database practice as well."
"1 - Syntax is hard. I sometimes have to experiment with a variety of functions (if, case, loop, etc) before I find one that works for what I am doing. How can we better understand when to use which type of function?
2 - I'd like a review of booleans in Ruby, specifically order of function and how to construct complex boolean statements.
3 - I'm struggling to follow variables in our work with Sinatra. It is sometimes not clear where a certain variable is being drawn from or where it is going. It would be great to see this mapped out over a few different examples so we can see the path of the variable from beginning to end.
4 - I'm eager/curious about using libraries/gems for common operations in Ruby(and presumably rails). Such as functions like currency conversion from our homework or input standardization (like only accepting certain numbers/letters/formats). And for larger functions like user login (which I imagine we will be covering). "
"
It seems that regular expressions would be particularly useful for the Ruby methods hw this weekend. Doing stuff like 1,234,233 for input such as 1234233 seemed to need Regex. Can this be taught?
can you review over irb/pry troubleshooting methods for inspecting our programs? e.g. binding.pry , someobject.inspect , and better_errors gem (which I wasn't able to get to work properly)
Can you review over exceptions / escape sequences? Ways to exit a loop.
Module & Mixins, Blocks and Procs review would be good.
What were enumerations again? As in ""Blocks & Enumeration"""
"SQL
JSON and API's
Module & mixins
Exceptions
Ruby loops and conditionals
I think it would help to have more exercises during class that reinforce the lectures, and could break up the day more. I enjoyed when we had a lecture then worked together on an exercise then went over it as a class. "
"1. What object is being accessed when you call the 'get/post' function and pass it a block that assigns a value to an instance variable?
2. Why do 'get/post' blocks have no explicit arguments? Are params implicitly passed to the block?
3. Can we go over other useful UNIX commands 'grep' and 'xargs'?
Thank you!!"
"How can I dynamically create a form, store the responses in an array or hash, then use that to create multiple db entries?
If I rescue an exception in Ruby, is there a way to send the incident to a log file so I can see if/how often the exception is occurring, without disrupting the end user experience?
Are there any standard modules or mixins (ex. Comparable) that are considered standard to implement? In Java, it's common to implement Comprable, and also to override the .toString method. I was curious if Ruby had any similar conventions."
"file = Net::HTTP.get(URI.parse(""""))
results = JSON.parse(file)
file = open("""")
results = JSON.load(file.read)
whats the difference between these the first 2 and the 2nd 2 lines? i know the 2nd 2 lines require 'open-uri' but do they do the same thing? and output the same result?
I am still a little unclear on some of the db.execute commands and the db.get_first_row?
"
"The Concept of REST in general
Extension into RESTful APIs / its use in real life
"
"1. What are the useful keyboard shortcuts for Mac OSX (I am coming from a PC)? Namely:
- navigating the cursor in sublime and other word processors
- ways of avoiding use of the mouse
- copying files and folders in terminal
2. Can we review how instance variables and other objects are passed between paths and .erb files in Sinatra?
3. In Sinatra, why do we have to create a blank form for our delete method to work? (follow up from question #2)
"
"Would be helpful if we could go over more complex SQL (getting data from 2 or more tables).
I liked that we had homework with somewhat simple ruby problems, that helps to get more familiar with ruby."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment