Share your repls and programming experiences

← Back to all posts
A React Calculator!
h
MatthewDoan1 (328)

Hey everyone,

I just wanted to share a cool React calculator I made.

(Psst, Edwin, if you're reading this: I'm starting to learn React, thanks bro).

(Hint: open it up in fullscreen for best experience)

Thanks for reading!

Commentshotnewtop
Andi_Chin (219)

react is not a good language to learn unless you are doing professional software development. But I might be biased ;)

MatthewDoan1 (328)

@Andi_Chin React isn't a language, it's a framework to build the front-end of web applications.

Also, why might you be biased?

Andi_Chin (219)

@MatthewDoan1 humans are naturally biased

Andi_Chin (219)

@MatthewDoan1 for real though, learning javascript is good enough. And learning every single popular javascript framework is a waste of time in my opinion. Especially since a new framework comes out approximately every second

MatthewDoan1 (328)

@Andi_Chin ?? Who said anything about learning every single popular js framework? There are a lot of jobs out there that need ReactJS or just JS experience, and I'm just preparing myself for the future :)

Andi_Chin (219)

@MatthewDoan1 assuming that you are not in college yet, react is probably not going be in use in 4-5 years from now. In fact, all javascript frameworks come and go

MatthewDoan1 (328)

See this article. TL;DR: I agree, all frameworks come and go, but what's the harm in spending my free time to learn React? :) when a new technology comes up, my experience in both the back-end (Spring Boot, Spring MVC, etc.) and the front-end (ReactJS) can't hurt.

@Andi_Chin

Andi_Chin (219)

@MatthewDoan1 by learning a javascript framework, you are only re-learning programming, just with a different syntax. It does not enhance your understanding of computer science whatsoever other than knowing what the creators of react (or any framework) thought was the "best" way of handling frontend.

MatthewDoan1 (328)

@Andi_Chin Ok, now that's just blatantly false. Before I started to learn React, I had no idea what a virtual DOM was, I didn't know anything about the front-end at all. (OK, I knew some HTML, CSS, and some JQuery, which I don't use anymore; that's about it). React has taught me a lot about JavaScript. Basically, suffice it to say that before React, I knew very little about front-end; now, I know more.

(I didn't even know how to make a button with JS without looking it up on W3Schools)

You know what they say: the more you know.

MatthewDoan1 (328)

@Andi_Chin Also, your "re-learning programming" point is false as well; there is a world of difference between handling client requests and responses using Java on the server-side (the back-end) and making some slick animations and styling some JSX on the client-side.

Andi_Chin (219)

@MatthewDoan1 virtual DOM is not exclusive to react. What you are doing is similar to Latin teachers saying: "you can learn Latin to become better at English". Which is true but depends on how you view it, but you can just learn English :)

Andi_Chin (219)

@MatthewDoan1 not trying to extend this debate but client-side is the last position that you want to go into when doing software development. In fact, many programmers deem it as: "drawing with code".

MrEconomical (2236)

@Andi_Chin why are you attacking my boy @MatthewDoan1 he just wants to learn a new javascript framework chill

Andi_Chin (219)

@MrEconomical sorry I just didn't want to see another soul getting sucked into the endless cycle of learning new javascript frameworks

MatthewDoan1 (328)

@Andi_Chin Cycle? No cycle... I'm only learning a couple, and that's React and Redux for state management, and that's about it.

Andi_Chin (219)

@MatthewDoan1 soon to be a cycle if you are not careful. Anyway, as I've mentioned I'm biased so take my opinions any way you want.

LizFoster (598)

Chill guys (ノωヽ)

MatthewDoan1 (328)

@Highwayman it's ok bro I called an ambulance

ballslicker232 (1)

@MatthewDoan1 How much React have you learned?

MatthewDoan1 (328)

@ballslicker232 Not much, I'm trying to learn Redux and work that with React right now (Redux is state management basically).

JackLogan2 (12)

Makes my calculator look like crap. Nice!