My presentation at the Programming Contact Day for the mixed audience of \PhD students from Mathematics and Chemical Technology departments. How can we develop software collaboratively?
2. Any fool can write code
that a computer can
understand.
Good programmers
write code that humans
can understand.
Martin Fowler
software developer, author,
speaker
12. function bs(x){
var l = x.l;
for (var m = l-1; m>=0; m--) {
for (var q = 1; q<=m; q++) {
if (x[q-1]>x[q]) {
var s = x[q-1];
x[q-1] = x[q];
x[q] = s;
}
}
}
return x;
}
13. function bs(x){
var l = x.l;
for (var m = l-1; m>=0; m--) {
for (var q = 1; q<=m; q++) {
if (x[q-1]>x[q]) {
var s = x[q-1];
x[q-1] = x[q];
x[q] = s;
}
}
}
return x;
}
function bubbleSort(arr) {
var len = arr.length;
for (var i = len-1; i>=0; i--) {
for (var j = 1; j<=i; j++) {
if (arr[j-1]>arr[j]){
var temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
}
}
}
return arr;
}
Variable
names matter
27. 1. Think about the APIs before the implementation
2. Variable names (and, broader, readability) matter
3. Be lazy: reuse! “Not built here” is not a sin.
4. Share using modern technologies: GitHub vs USB sticks
5. Automate change submission and build in quality checks
6. Control your technical debt
7. Talk to software engineering people: we don’t always have
solutions but we can think together with you!