Skip to content

Instantly share code, notes, and snippets.

View samlandfried's full-sized avatar
🕹️

Sam Landfried samlandfried

🕹️
View GitHub Profile
@samlandfried
samlandfried / refactor_your_views.md
Created April 19, 2017 03:41
A technical blog post for my Mod 2 portfolio

You call that a view?

Your views are a disgrace. Hasn't anyone ever told you that models are the place to handle database queries? Are you actually passing in multiple instance variables? Have you even heard of a presenter? My God. Alright. Don't panic. Here's what you do.

This is an example of your garbage view we're going to clean up.

app/views/orders/index.html.erb

<h1>Orders</h1>
<div class="filters">
    <%= link_to "All: #{@all_orders.count}", admin_orders_path %>
@samlandfried
samlandfried / johari_window.md
Created April 18, 2017 17:24
Reflection on the Johari Window gearup

Johari Window Reflection

  • What are you doing well as a pair programmer and collaborator? Everyone said I was communicative (Except me). I guess I'm communicating well. Most people said I was collaborative. I feel like my contribution to projects is being capable and accountable. I guess communication is going well, too (Although I would say the majority of my group projects had poor communication).

  • How do you use your strengths as a team member? I work hard and I stay focused on the task. I do my best to ensure everyone knows what they are doing, and I try to have difficult conversations.

  • How would you like to continue to develop your strengths? I would like to more selectively apply my strengths. I think I'm focused to the point of seeming dismissive or cold. It would be helpful to be able to drop that at some points. I do wish I had received some feedback indicating people enjoyed spending time with me, so maybe dropping some of my 'hard' skills in favor of the soft ones could pa

@samlandfried
samlandfried / feedback_3.md
Last active April 17, 2017 02:03
Thoughts on how I perform on teams

Feedback III Reflection

  • What are you doing well as a pair programmer and collaborator?

I am patient, thoughtful and engaged. Since I am a student, I look at projects as learning opportunities, not 'pass/fail' propositions. Because of that perspective, it is easy to keep a positive attitude. I also recognize that one of the most important skills we'll learn is collaboration, so I tend to emphasize that aspect of a group project, even if it might be quicker or easier to do everything myself.

  • How do you use your strengths as a team member?

I used to be a teacher, and I use that skillset to help teammates figure out challenges to a problem instead of hammering out my own solution and expecting them to make sense of it. I also am a hard worker, and do my best to make sure that I am pulling my weight at a bare minimum.

@samlandfried
samlandfried / feedback_2.md
Created April 17, 2017 01:38
Reflection on group feedback conversation after Bike Share

Feedback II Reflection

  • Date of feedback conversation:

March 28

  • How did you prepare for the conversation?

We all participated in a gear up that addressed mindful communication before the group feedback session.

  • How did the conversation go for you? What was easy about the conversation? What was more difficult?
@samlandfried
samlandfried / agile_reflection.md
Created April 17, 2017 01:26
Thoughts on agile development in Mod 2

All groups I've been on have embraced agile practices. Specifically, they have all had a daily stand up and retro. I think this practice adds value to a group, if for no other reason than the power of ritual. It is a daily reminder that we are one team with a common objective.

We have communicated on Slack, scheduled events on team calendars and keep non-project files in a Google Drive. In my latest group, we took the time to really figure out Waffle, which I imagine will become even more valuable as our projects grow in scope and complexity. And, of course, we organize our project with Git.

I feel that good project management is preventative medicine. It fends off problems that poorly managed projects invite.

@samlandfried
samlandfried / cold_outreach.md
Last active April 17, 2017 02:04
My cold out reach to a Turing mentor

The alum I contacted is Adam Ki Jensen.

I contacted him on April 3.

He and I spoke on Skype for more than an hour. We talked Turing, rails and Korea. I plan to follow up with him for resume review before I submit it to any potential employers.

It was a relief to open that channel of communication with someone. I enjoyed speaking with him, and he seemed knowledgable, so I hope we can continue working together.

@samlandfried
samlandfried / a_p_s_h.md
Last active April 12, 2017 15:52
asset_pipeline_scav_hunt.md
  1. What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
  • File concatenation is combining files. This saves us time when loading assets because the browser needs to make fewer external calls.
  1. What does it mean to precompile files? What does this have to do with coffeescript and sass files?
  • Precompiling converts higher level languages into their base language. SASS -> CSS. Coffeescript -> Javascript.
  1. What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
  • Minifying a file reduces it to the smallest size possible while retaining its functionality. For example, variable names are compressed to single letter values, and white space is stripped out.
  1. Start up the server for Catch ‘em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same?

Setting Group Expectations

Group Member Names: Danny Radden, Jonathan Kidd, Maria Stenquist, Sam Landfried

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?

Check Google Calendar project

Group: After class - 7 pm Maria: Birthday on Saturday. Wants to meet mornings.

@samlandfried
samlandfried / sessions.md
Last active April 3, 2017 17:15 — forked from case-eee/sessions.md
Sessions, Cookies, and Flashes

Sessions, Cookies, and Flashes

  1. If we didn't have cookies and sessions, what would happen?
  • We wouldn't be able to persist anything that didn't exist in our database. We'd be at the mercy of the stateless model
  1. What is a cookie?
  • An insecure hash like object that persists data across sessions.
  1. What's the difference between a cookie and a session?
  • A session's data is serialized making it more difficult to manipulate its contents
  1. What's serialization and how does it come into play with sessions?
  • Serialization protects the contents of a session object. It requires a special key to deserialize it. The key is held by the Rails app.
@samlandfried
samlandfried / dtr_expectations.markdown
Last active March 20, 2017 18:00 — forked from case-eee/dtr_expectations.markdown
Group Work Expectations for bike share

Group Expectations

Group Member Names:

Project Manager:

Defining the Relationship (DTR) Questions:

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed? B: Team collab daily ends at 6:30.