@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:
@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: