Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
cowCrazy
@cowCrazy
@Luke-Rogerson you are almost there. Just instead of trying to assign the returning value from reduce to the maxNumber var return it.
@Astewart400 wouldn't say "good" but hit me :)
Luke-Rogerson
@Luke-Rogerson
@cowCrazy Thank you so much!
CamperBot
@camperbot
luke-rogerson sends brownie points to @cowcrazy :sparkles: :thumbsup: :sparkles:
:cookie: 347 | @cowcrazy |http://www.freecodecamp.com/cowcrazy
Jonathan Cunanan
@jcunanan05
hello little question. i have a function, will the code return ! _.isEmpty first and don't wait for the asynchronous call?
function isLoggedIn() {
  if (loggedInDetailsAlreadyFetched) {
    this.getLogin()
      .then();
      .catch();
  } 

  return ! _.isEmpty(userDetails);

}
Ken Haduch
@khaduch
@jcunanan05 - is this the callback for your asynchronous call? If it is, it will not be triggered until you get a return from the call, so it should work. But if the async call is this.getLogin() then I think you will do the return of !_.isEmpty(userDetails); first, it will not wait. You should put that check within the .then() method.
Jonathan Cunanan
@jcunanan05
@khaduch the async call is this.getLogin. :( so it won't wait. Thanks :) but if I put an else clause to the !_. isEmpty(user details) ;, will it wait?
CamperBot
@camperbot
jcunanan05 sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3295 | @khaduch |http://www.freecodecamp.com/khaduch
korzo
@korzo
@jcunanan05 If condition is false, then async call is not triggered.
But your function will be inconsistent
Maciej Dębowski
@debofsky
Hello!
I have a question, don't know if it's so related to programming, or more to learning per-se and discovering, but on the edge to cheating.
Currently I'm working on "Title Case a Sentence" and I have some ideas how to tackle this problem.
However after finishing previous challenges I googled a little and found out about "cleaner" ways to solve problems. They were mostly about functional programming and using filter, map and reduce.
So far, when I think about "Title Case a Sentence" i see: applying lowercase, a loop (possibly more than one, and possibly nested), and applying uppercase. I hope I'm not spoiling anything. It's just brute-force, plain and simple, the way I like, but the code is quite long (compared to what I saw with neat solutions via previous challenges) and... let's say not elegant.
What do you think? Is it okay to google first, analaze some "perfect" solutions, and apply them on my own?
Markus Kiili
@Masd925
@debofsky It is better to try it on your own at first and then look for better solutions. If you always look first, making code from scratch might become a problem.
Adit
@adittyagi
Hey guys. How to use a single button to change bg-color and update the new message in random quote machine ?
Elizabeth Paul
@Kowalatam
$("the_button").on("click", function(){
    //change background color
   //update message
})
@adittyagi
something like that if jquery
just put all u want to happen if the button is clicked
imperial-isms
@imperial-isms
I finished everything up through intermediate projects; I’m having trouble getting through intermediate algorithms…stuck on roman numerals; tried even shifting over to https://edabit.com and doing some of the easier ones…my brain seems like it’s having trouble getting into the groove.
Do you think I should just work on something else and come back to algorithms?
Maybe I’ll be in a more ideal state tomorrow.
Christopher McCormack
@cmccormack
@imperial-isms Roman numerals do not follow a programmatic scheme, so it's OK to create special entries for odd values like 4, 9, 40, 90, etc..
imperial-isms
@imperial-isms
Oh okay
I stepped away from that for a bit, but I was having trouble with that aspect
CamperBot
@camperbot
imperial-isms sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
imperial-isms
@imperial-isms
That’s definitely helpful, thank you, @cmccormack !
CamperBot
@camperbot
:star2: 1215 | @cmccormack |http://www.freecodecamp.com/cmccormack
Christopher McCormack
@cmccormack
@imperial-isms np - once you get past that it becomes much easier to digest
Dušan Todorović
@krckyboy

Hey, fellow coders. :)

I need some help. I am trying to do a website that looks pretty much like https://wp.nkdev.info/snow/home-1/?navigation_type=default&footer_type=1 and I am just doing this for the sake of practicing, it's not going to get live, obviously.

I did the header, but I just need to tips on the image to the left of "Digital. Modern. Creative". I don't know how to zoom out, how to put the focus to the left or right, or to the bottom. How to achieve that? Basically, it's the situation as if a camera man is focusing on shoes rather on face, or something like that. How can I fix it?

My code: https://codepen.io/krcky/pen/QqyKQB

Adinarayana Raghu
@adinarayaanraghu95
Guys if someone is interested to address some concerns of the issues which we have found, please feel free to contribute.
Help on the frontend needed. Since we have a deadline of 2 days.
https://github.com/Startversity/mozillaevent-registrationscreen
Richard
@rylew0925
Would someone please explain to me what "match()" does?
Jan Shah
@JanShah
'hello'.match('he')
//returns ["he", index: 0, input: "hello"]
@rylew0925
Pagnito
@Pagnito
hey i put some meta tags on my portfolio website and my load speed becaaame sooooo slow...it takes up to 10 seconds to load sometimes when loadinh on a new device
Richard
@rylew0925
@JanShah Thanks!
CamperBot
@camperbot
rylew0925 sends brownie points to @janshah :sparkles: :thumbsup: :sparkles:
:cookie: 533 | @janshah |http://www.freecodecamp.com/janshah
piteto
@piteto
@Pagnito Did you add resources from external servers that may be slowing things down?
Jan Shah
@JanShah
@Pagnito can you share the url?
Pagnito
@Pagnito
pavelyeganov.com
@piteto hmmm, maybe its the fonts...i can remember if i downloaded them and put them i the files or jus used a cdn
i gotta goo look again real quick
piteto
@piteto
Not sure if this is the issue, but you're missing a closing script tag: <script type='text/javascript' src='JS/index.js' />
Also, these should be first:
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
And you're loading font awesome twice
Pagnito
@Pagnito
shit lol
tho using this /> doesnt seem to matter as the javascript is working
piteto
@piteto
In your browser ;)
I don't think script tags can be self closing, but I might be wrong
Pagnito
@Pagnito
oh no thats actually two different font libraries
for some reason they both have fontAwesome