Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Thomas Tylek
@zippkidd
Is the example codepen given not enough inspiration? Lol
hansUno2
@hansUno2
@jecmstudios break the project down into steps. Develope an algorithm/recipe for how you will get from blank page to final result before evening writing any code. Its like building a house, you get your ideal design and you change things as you go. This helps you to avoid freestyle coding which can lead to frustration.
zootechdrum
@zootechdrum
@jecmstudios plan plan plan.
@ehutchllew no i got it it was just returning a promise
Lallo Vigil
@lalov1
@jecmstudios I can help! Let me know with what
I mocked up the react recipe project. Please let me know some hints on how I will save the items in state and pass them using props: https://codepen.io/lalov1/pen/97756811476267a589a730dc15f881a1?editors=0010
Claudio Restifo
@Marmiz

@lalov1 you just make your child component "dumb", in the sense that both the data and the method to change that date comes from the parent, the child only purpose is to render the latter:

An example would be:

const child = ({value, onChange}) => (<div onClick={() => onChange()}>{value}</div>)

class Parent [...] {
 state={value: 1}
 onChange = () => this.setState({value: this.state.value +1})

 render() {
  return (<Child value={this.state.value} onChange={this.onChange} />)
}
}

hope it helps :+1:

Jesse Ross-Huffman
@jecmstudios
Thank you guys all of you helped. I just have always frozen up when I feel left on my own.
habibaatify
@habibatify_twitter
hello
any one who know latex?
coderNewby
@coderNewby
@DarrenfJ thanks for the pm
CamperBot
@camperbot
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2472 | @darrenfj |http://www.freecodecamp.org/darrenfj
anthonygallina1
@anthonygallina1
:)
shameem fairooz
@sfshameem5
Guys, I've completed the Electronic Calculator Project! Any suggestions ?
Markus Kiili
@Masd925
@sfshameem5 Do you have a link for the working calculator?
shameem fairooz
@sfshameem5
The github pages link
Markus Kiili
@Masd925
:+1:
Roman Struna
@RomchyFCC
@sfshameem5 it's awesome that you played around with cursor color and shape, but the cursor is almost impossible to see on the equals button, just a thought
shameem fairooz
@sfshameem5
@RomchyFCC Would have to change that.
Markus Kiili
@Masd925
@sfshameem5 I think that the calculator needs to have decimal numbers too.
shameem fairooz
@sfshameem5
@Masd925 Is it a must ?
I've fulfilled the user stories for the project.
Markus Kiili
@Masd925
@sfshameem5 It needs to be functionally similar to the referenced calculator.
shameem fairooz
@sfshameem5
@Masd925 Will implement that and let you know, thanks
CamperBot
@camperbot
sfshameem5 sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4792 | @masd925 |http://www.freecodecamp.org/masd925
shameem fairooz
@sfshameem5
@RomchyFCC Thanks
Markus Kiili
@Masd925
@sfshameem5 You will also learn a lot if you make it work with decimal numbers too.
And don't use eval :imp:
:)
Roman Struna
@RomchyFCC
Oh that's why the numbers suddenly got blocked and wouldn't calculate, interesting
Jefferson
@jeffersonnnn
hi guys, i am looking to share my quotes from the random generator app to twitter. Is there a library or something i can use in the React ecosystem i can use?
hansUno2
@hansUno2
@jeffersonnnn search for qoutesOnDemand API
shameem fairooz
@sfshameem5
@Masd925 If not eval, what else ?
Markus Kiili
@Masd925
@sfshameem5 You could make an expression parser that evaluates the typed expression.
shameem fairooz
@sfshameem5
@Masd925 A function which does that ?
Markus Kiili
@Masd925
@sfshameem5 Yes.
shameem fairooz
@sfshameem5
@Masd925 Is it bad to use eval() for calculations ?
hansUno2
@hansUno2
Yes.. Even the docs say to never use it
Markus Kiili
@Masd925
@sfshameem5 Using eval is bad for security and performance reasons, so you should avoid it.
shameem fairooz
@sfshameem5
@Masd925 Will modify and let you know.
Markus Kiili
@Masd925
@sfshameem5 There are known algorithms for parsing expressions, but you can also do your own by making the expression simpler and simpler starting from the highest priority operations etc.
shameem fairooz
@sfshameem5
@Masd925 Which one would you recommend ?
Markus Kiili
@Masd925
@sfshameem5 Whatever suits you.
Jefferson
@jeffersonnnn
@hansUno2 thanks man, but i am not looking for an API for quotes. I am looking to share the quotes, and i haven't been able to get the method
CamperBot
@camperbot
jeffersonnnn sends brownie points to @hansuno2 :sparkles: :thumbsup: :sparkles:
:cookie: 16 | @hansuno2 |http://www.freecodecamp.org/hansuno2
shameem fairooz
@sfshameem5
@Masd925 Will try the second option.