Skip to content

Instantly share code, notes, and snippets.

View hpjaj's full-sized avatar

Harry Levine hpjaj

View GitHub Profile
[
"Ada Developers Academy",
"App Academy",
"Bloc",
"Cincy Code IT Bootcamps",
"Code Fellows",
"Code Immersives",
"Code Platoon",
"Coder Camps",
"Codeup",

Justin Searls, a big name in the web dev community, has this great quote:

Software development is just putting spreadsheets on the internet.

I totally agree! My experience working at a handful of companies over the last 4 years has been that the most common asks, the most common stories, are forms and tables.

A form to create or update something. And a table to display an index of those items.

In that vein, one of the most effective, relevant, impactful skills we could have our contributors working on in order to prepare them for real world software development is precisely this: creating forms and tables.

[1] pry(main)> CodeSchool.pluck(:name, :logo).sort
=> [
["Ada Developers Academy",
"https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/ada_developers.jpg"],
["App Academy",
"https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/app_academy.jpg"],
["Bloc",
"https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/bloc.jpg"],
["Cincy Code IT Bootcamps",
"https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/cincy_code_it_bootcamps.jpg"],
slideOptions
transition slideNumber
slide
true

Endpoint Punch List

Once the external service has been integrated:

Service Object

  • Service class
  • Config class & Faraday connection
  • Response class
  • settings.yml

Request Spec

# vets-api/spec/request/email_request_spec.rb

describe 'GET /v0/profile/email' do
  it 'should match the email schema' do
    VCR.use_cassette('evss/pciu/email') do
      get '/v0/profile/email', nil, auth_header
# vets-api-mockdata/evss/pciu/email/796376250.yml
---
:method: :get
:body:
cnp_email_address:
effective_date: '2012-04-03T04:00:00.000+0000'
value: test2@test1.net
control_information:
can_update: true
# vets-api/config/betamocks/services_config.yml
# EVSS
- :name: 'EVSS'
:base_uri: <%= "#{URI(Settings.evss.url).host}:#{URI(Settings.evss.url).port}" %>
:endpoints:
# PCIU email
- :method: :get
:path: "/wss-pciu-services-web/rest/pciuServices/v1/emailAddress"
:file_path: "evss/pciu/email"
# vets-api/app/swagger/requests/profile.rb
module Swagger
module Requests
class Profile
include Swagger::Blocks
swagger_path '/v0/profile/email' do
operation :get do
extend Swagger::Responses::AuthenticationError