Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jasmine, JS, Calculations #63

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Jasmine, JS, Calculations #63

wants to merge 29 commits into from

Conversation

laurennicoleroth
Copy link

I started writing a calculator with html ui that passed a string to a function representing which button was clicked. I started realizing that keeping track of three events using this to do a calculation was a bit labor intensive for pure JS (we'll get to jQuery soon, I'm sure.)

So. I simplified (go ahead and cheer) and just have four super basic prototype methods. Writing tests in Jasmine was much easier than I expected, so I am glad I stayed for the afternoon lecture.

My guts don't work today, but I think the code in my lightsaber does. ;-)

@linkblaine @queerviolet

laurennicoleroth and others added 29 commits March 16, 2015 18:18
	new file:   config.ru
	new file:   environment.rb
	modified:   app/controllers/index.rb
	new file:   app/views/sealions/edit.erb
	new file:   app/views/sealions/index.erb
	new file:   app/views/sealions/new.erb
	new file:   app/views/sealions/show.erb
	modified:   app/controllers/sealions.rb
	modified:   app/views/sealions/show.erb
	modified:   database.rb
	modified:   environment.rb
	modified:   Gemfile
	new file:   app/views/layout.erb
	new file:   public/javascripts/main.js
	new file:   spec/javascripts/javascript_spec.js
	new file:   spec/javascripts/support/jasmine.yml
	modified:   Rakefile
	modified:   app/views/layout.erb
	modified:   Gemfile.lock
	modified:   Rakefile
	modified:   app/controllers/index.rb
	modified:   app/views/layout.erb
	new file:   public/javascripts/calculator.js
	modified:   Gemfile.lock
	modified:   Rakefile
	modified:   app/controllers/index.rb
	modified:   app/views/layout.erb
	modified:   public/javascripts/calculator.js
	modified:   app/controllers/index.rb
	deleted:    app/views/calculator.erb
	modified:   public/javascripts/calculator.js
	modified:   spec/javascripts/javascript_spec.js
	modified:   spec/javascripts/javascript_spec.js
@cdimartino
Copy link

Opened a PR at: https://github.com/laurennicoleroth/lightsaber/pull/1 to consolidate changes.

@cdimartino cdimartino removed their assignment Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants