Skip to content

Instantly share code, notes, and snippets.

View asierba's full-sized avatar

Asier Barrenetxea asierba

View GitHub Profile

List of possible constraints for a kata

  • No constraints
  • Small methods: 4 lines each
  • No if statements
  • No primitives
  • No loops
  • Baby steps
  • Change approach, if you're doing bottom-up (Cell class first),try top-down (Board class first)
@asierba
asierba / flatten.js
Created May 21, 2018 11:12
function that flattens an array in javascript
function flatten(items) {
return items.reduce((result, current) => {
if (current.constructor === Array)
return result.concat(flatten(current))
return result.concat(current);
}, []);
}
@asierba
asierba / fizzbuzz.cob
Created June 8, 2018 22:04
Fizzbuz in cobol
PROGRAM-ID. FIZZBUZZ.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 BY-3 PIC 9(1).
01 BY-5 PIC 9(1).
01 C PIC 9(2).
01 I PIC 9(3) VALUE 1.
PROCEDURE DIVISION.
PERFORM FIZZBUZZ-OF VARYING I FROM 1 BY 1 UNTIL I=100
STOP RUN.

Programming skills

Read them in this order

Agile & others