Skip to content

Instantly share code, notes, and snippets.

View theonlyrao's full-sized avatar

Ashwin Rao theonlyrao

View GitHub Profile
@theonlyrao
theonlyrao / 20160425_blog_empathy.md
Last active April 26, 2016 18:10
The importance of empathy for users

I want to be a back-end developer. I know it is cooler to be a "full-stack" developer, but if I never have to write CSS again it will be too soon.

I did not expect that I would feel so differently about front-end and back-end work. With an undergrad degree in Fine Arts and an interest in good design, I might even have expected to be more interested in front-end work. However, after having gotten my feet wet over the past three months at Turing, it's pretty clear that I get excited when I get to think about the structure of databases and their interactions. Maybe even configuring servers, although I haven't done much of that yet.

However, while working on a personal project I learned an important lesson about not ignorning the front-end. My personal project is something I've been exctied about ever since I read about it in HBR - building a performance review app that Deloitte developed in order to get actionable data about employees instead of useless information about managers.

I launched a first pass of t

@theonlyrao
theonlyrao / js_exercisms_ashwin.md
Last active June 22, 2016 18:40
JS exercism report

##Hello World My code: here

  • Responder #1 (here) - This response is an implementation that I was wondering how to do because it handles a nil value for input as a way of defaulting to "World" instead of a name.
  • Responder #2 (here) - This response is essentially the same as my implementation, but uses a ternary operator for the if/else that I broke out. I find it much harder to read as a ternary.
  • Responder #3 (here) - This response also uses a ternary, but within the return block so that if there is an input it gets used, but if there isn't then "World" is returned. I like this better than #2 but still don't like it very much because it seems weird to be evaluating the input within the return block instead of first determining what has been
  • What is ES6?

"ES6", or ECMAScript 6, is the latest version of JavaScript. It brings multiple updates to JS.

  • What is Transpilation and how does it relate to ES6?

Transpilation is a form of compliation. Compiling takes a language and turns it into another language; transpiling takes a language and turns it into a language with the same level of abstraction.

  • Looking at the ES6 Features link below, discuss one update from ES5 and if it seems useful/superfluous.

Testing Homework - Rails/JS

  • Your experience implementing

I tried both unit using Jasmine-Rails and feature testing using Capybara.

  • Were you successful?

I was not successful in implementing Jasmine-Rails, but I was successful impelemting feature testing using Capybara. The feature testing is nice in that it lets me confirm what a user is setting, but it would have been good to have spies set up through Jasmine-Rails so that I can confirm that the ajax calls are actually hitting the correct route with the correct data.

@theonlyrao
theonlyrao / ashwin-require.md
Last active July 6, 2016 00:05
Ashwin Rao - The Concept of Require

Questions:

  • In the context of Node, what is a module?

A module is a fundamental Node building block that maps to a file. To expose the objects or methods contained in the module, i.e. another file, requires using module.exports in the module for anything that should be exposed, and to require the exported things in the file that wants to use them.

  • The code examples from the second blog post look very different from the first. Why?

I really hope it's because the second blog post is using RequireJS and all that syntax is sugar created by RequireJS in order to associate things inside the module with variables in other files.

WebSockets Workshop (30 points)

Websockets Workshop

My Repo

I did not complete the code along. I was able to get a users previous vote to render on the page. I was also able to get the full tally of votes to be sent back to the user. However, I wasn't able to parse the returned aggregate vote information in a way that would let me render it on the page.

Since I could not get the aggregated vote information to display, I did not try to format it nicely.

@theonlyrao
theonlyrao / ashwin-mock-assessment-submission.markdown
Last active August 3, 2016 20:08 — forked from rrgayhart/1602-mock-assessment-submission.markdown
ashwin-mock-assessment-submission.markdown
@theonlyrao
theonlyrao / first.js
Last active July 29, 2016 04:11
First attempt at render React component in new div
import React from 'react';
import ReactDOM from 'react-dom';
const Letter = React.createClass({
render() {
return (
// lots of HTML stuff here...
)
}
});