learn-co-curriculum / looping-while-until Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
When I run learn on this project the tests pass - correct answers already inside.
I solved the lab and the passed the test but the lab didn't fork
Remember our long and repetitiously-counting code that used if statements to count from 0 to 20? Well, we can refactor that into simple, readable, short code with the while construct:
(nope, I don't remember.)
it was mentioned in passing in earlier curriculum, but we were kind of told to ignore it
I'm getting an error occurs while loading after hitting "learn"
An error occurred while loading ./spec/until_spec.rb.
Failure/Error: require_relative "../lib/until.rb"
0 examples, 0 failures, 2 errors occurred outside of examples
When I clicked the "Open IDE" button and the lab opened, there was a prompt stating I was opening a lesson past the point where I was in the curriculum. I clicked Yes and looked at the ReadMe compared to the website and they were the same lesson.
Looks to me like we're asking people to use while and until loops, but in the previous class when we introduced loops we didn't provide either of those syntaxes. Is this a deliberate "time for you to guess/google it", were those syntaxes mentioned earlier in the curriculum and/or is this not a problem because people are getting through it?
Not saying we should change this, but wanted a placeholder so we could have a conversation about it . . .
The tests should try to enforce this syntax.
"While" is misspelled in the title and navigation
LOOPING - WILE AND UNTIL CONSTRUCTORS
until.rb uses eight spaces for its indentation, whereas while.rb uses one tab.
Issue #16 first reported this issue as having four spaces, but commit 32799c8 that supposedly fixes it replaced it with eight spaces instead of one tab like in while.rb.
Ruby convention seems to favor two spaces for indentation. For beginners, the inconsistency can be confusing.
4 spaces, gasp!
no more repl, now a lab. ready to deploy after ๐
In the "USING WHILE AND UNTIL" it says "Guess what? We're still struggling to master that levitation charm! But we are so close...."
Seems like this lab is referring to a previous example (or I guess "Wingardium Levios" is a levitation charm?). Worth clarifying a bit.
Couldn't edit the Title here, but the lesson misspelled While as Wile in title.
User: Garett Arrowood
Batch: 000
Current Lesson: OO Cash Register
Bug Description: In the Until example - Change the original value of counter to 0.
while_spec is testing for an output 4X, but instructs students to output it 10X
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.