Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 08 08:06
    andyharmon starred codebar/tutorials
  • Jul 12 19:54
    dependabot[bot] labeled #475
  • Jul 12 19:54
    dependabot[bot] opened #475
  • Jul 12 19:54

    dependabot[bot] on bundler

    Bump addressable from 2.5.2 to … (compare)

  • Jun 27 12:57
    Heizal starred codebar/tutorials
  • Jun 23 20:33
    minnieshay starred codebar/tutorials
  • Jun 10 09:52
    gracemarsey starred codebar/tutorials
  • Jun 01 16:18
    NoorinSakhi starred codebar/tutorials
  • May 12 09:55

    KimberleyCook on update-copy-js-tutorial-2

    (compare)

  • May 12 09:55

    KimberleyCook on gh-pages

    copy for Js tutorial 2 kriszta feedback Merge pull request #473 from co… (compare)

  • May 12 09:55
    KimberleyCook closed #473
  • May 11 13:06
    KimberleyCook synchronize #473
  • May 11 13:06

    KimberleyCook on update-copy-js-tutorial-2

    kriszta feedback (compare)

  • May 11 13:00

    KimberleyCook on replace-js-api-tutorials-for-vonage

    (compare)

  • May 11 12:59

    KimberleyCook on gh-pages

    replace bbc tutorial with Vonage gave tutorial a refresh add image and 3 more (compare)

  • May 11 12:59
    KimberleyCook closed #474
  • May 11 12:59
    KimberleyCook synchronize #474
  • May 11 12:59

    KimberleyCook on replace-js-api-tutorials-for-vonage

    revert to old folder structure … (compare)

  • May 10 22:56
    dianavile starred codebar/tutorials
  • May 07 13:46
    yvettelexter starred codebar/tutorials
Denise Yu
@deniseyu
@katebee i put you in for the 22, @kaichanvong do you want to do the week after?
Kai Chan Vong
@kaichanvong
@deniseyu yes please
Denise Yu
@deniseyu
:thumbsup:
Samuel Parkinson
@sjparkinson
Hi all, for the graze map issue, google doesn't have the address for heron square yet, this works however: Palm Court
4 Herrand Square
Richmond, Greater London TW9 1EW
UK
Denise Yu
@deniseyu
thanks @sjparkinson I will add it to the event page :)
Olu Niyi-Awosusi
@oluoluoxenfree
To become a coach, do you just change the button you click?
Also, can you specify what you're comfortable coaching or do you just turn up and see? :)
Denise Yu
@deniseyu
@oluoluoxenfree yep - when you're logged in, go to http://codebar.io/subscriptions . if you would like, you can make a note on your profile but mostly people just turn up and see what happens
Olu Niyi-Awosusi
@oluoluoxenfree
Awesome, thanks :)
Jon Kelly
@jkbits1
@oluoluoxenfree that's terrific that you want to do some coaching :thumbsup: :tada: Perhaps you could mention to the organiser who calls out the pairing to keep an eye out for your hand going up for a particular set of students. As most of the students have expressed a preference in advance, and most people arrive by 6:45pm, we know the possible pairs before we call out the names.
Olu Niyi-Awosusi
@oluoluoxenfree
Good idea :)
Oliver Turner
@oliverturner
@barisbalic - @fanaugen is correct: it's "Sass", despite being an acronym (and you can see more evidence on their home page: http://sass-lang.com/)
Re SCSS being verbose, I personally like the visual affordances that brackets etc give me when parsing code and I like that it eases the transition from plain CSS for new developers
Carolina Sawney
@assembly21
so here: http://sass-lang.com/guide i'll be learning what you suggest Oliver, whatever the name? @oliverturner. Thanks in advance!
Denise Yu
@deniseyu
hey coaches - we're having some problems with coach invites in the app for some reason. next week's workshop at ClauseMatch is open for RSVP: http://codebar.io/workshops/166
Oliver Turner
@oliverturner
@assembly21 It's cool to see that they offer examples in each dialect... but again, my strong recommendation would be SCSS
Kai Chan Vong
@kaichanvong
@oliverturner @assembly21scss can be verbose like anything. It's just a tool and is often recommended because of it's compiled nature vs. css. You can still use it as if it were css. There are plenty other reasons to use it and solutions to work around it being 'verbose'. Happy to chat at pub or in a codebar session. Please bring examples and I'll bring myself and try help :- )
Carolina Sawney
@assembly21
yes but where do I learn scss? I searched for a book or a website and nothing comes up with that name, only a very short tutorial. @kaichanvong I'll email you if that's ok.
Dave Pereira-Gurnell
@davegurnell
@assembly21 I'm more of a LessCSS person, but if I understand correctly, SCSS is a mild syntactic variation on SASS. Only the basic syntax is different -- the semantics are the same. This means you can probably learn SASS and translate the syntax to SCSS in your head. See http://www.sitepoint.com/whats-difference-sass-scss for more info.
Kriszta Matyi
@matyikriszta
@assembly21 this is a good overview of the different features of SCSS using the CSS like syntax
or this code school tutorial is really good, I remember doing it back in the day
the fist part is free, after that you have to pay for it but it's worth looking at the fist video at least
Baris Balic
@barisbalic
@assembly21 it's terribly named, but 'scss' and 'sass' are both Sass. Searching for Sass on it's own should bring up results but you will need to filter. The Sass-lang website shows all examples in scss by default: http://sass-lang.com/guide
Carolina Sawney
@assembly21
thanks! @matyikriszta, @davegurnell , @barisbalic
Nicky Chorley
@ndchorley
hopefully everyone's aware that there's a Tube strike starting tomorrow: https://tfl.gov.uk/modes/tube/tube-strike, sigh
Kriszta Matyi
@matyikriszta
@ndchorley yes, we have sent out a tweet about it yesterday, will repeat it tomorrow
thanks for the heads up :)
Nicky Chorley
@ndchorley
we're really in Whitechapel tonight?
Kriszta Matyi
@matyikriszta
@ndchorley yes, we are
sorry if that' a bit inconvenient for you
it's a bit further out than our usual locations
Nicky Chorley
@ndchorley
no, it's good. It's relatively easy to get home from there :D. I was a bit confused as I looked at ClauseMatch's website and that's not where their office is!
thanks :D
Carolina Sawney
@assembly21

Hi: I'm practising exercises from Head First Javascript Programming (p.101).

I write the code in the book in the console and it gives me an error: points is not defined. It's not necessary to define a variable points for the parameters, right? Thanks in advance.

var avatar = "generic";
var skill = 1.0;
var pointsPerLevel = 1000;
var userPoints = 2008;

function getAvatar(points){
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
while(i<points){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}
userPoints = updatePoints(2,100);
avatar = getAvatar(2112);

Ali
@Najaf
It looks the problem is in your usage later in updatePoints
Where you're doing while (i < points)
points doesn't appear to be defined in the scope of updatePoints I mean.
Carolina Sawney
@assembly21
the book has 6 tech reviewers...
Ali
@Najaf
:P Who wants to spend their whole day reading code? Sounds way too much like work.
Carolina Sawney
@assembly21

Hi everyone,
I'm practising Javascript with exercises from two books. They explain not to use global variables but then in the examples, they use them very often. So I'd like to rewrite this example from Javascript Head First, so that it's all done with locals. But my version is not completely right...So I'd appreciate your comments. Thanks in advance.

The code from the book:

var avatar = "generic";
var skill = 1.0;
var pointsPerLevel = 1000;
var userPoints = 2008;

function getAvatar(points){
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
while(i<bonus){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}
userPoints = updatePoints(2,100);
avatar = getAvatar(2112);

My version with locals - but gives me undefined...

function getAvatar(points){
var pointsPerLevel = 1000;
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
var skill = 1.0;
var userPoints = 2008;
while(i<bonus){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}

function init(){
userPoints = updatePoints(2,100);
var avatar = getAvatar(2112);}

Denise Yu
@deniseyu
@assembly21 could you please wrap code snippets in code tags? click the list icon at the bottom right of the textbox. it will make your code much easier to read :)
an aside, does anyone want to help QA test some new codebar app features? send me a private message
@assembly21 i think the book code is wrong. there are two conditions where level == 1. you should always use === not ==
Juyoung
@juyoungbang
@assembly21 I am just wondering why there is the same condition as 'level == 1' twice....
Juyoung
@juyoungbang

in the book,
there is the default value of 'avatar' so it seems to work well even though it is weird there is the same condition twice,
but in your version,
the return value of getAvatar() hasn’t the default one.
So if level is not equal to 1,2 or greater than 2, getAvatar() will return undefined…

you could code like following...
getAvatar(){
if(){..}
else if() {..}
return ‘generic’;
}

That is just my guess, so it might be wrong...

Kai Chan Vong
@kaichanvong
@deniseyu or another organisers for codebar. Do I need to make sure I'm on the list (of coaches). It's for my speaking slot. Wondering if I can just turn up?
Denise Yu
@deniseyu
@kaichanvong your lightning talk is next week (Thoughtworks)! tomorrow is Kate's turn. on the night that you are scheduled, if you don't manage to RSVP in time for a coach slot just email us. lightning talk speakers get priority, whether you're a coach or student...another incentive to sign up for one! :)
Kai Chan Vong
@kaichanvong
Didn't get in for this evening's event. Booo.