Click here to Skip to main content
12,953,865 members (46,974 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i need to a program calculator almost advanced?
in php?
Posted 1-Jan-13 9:00am
Christian Graus 1-Jan-13 15:03pm
Well, get to it. This is not a programming question, it reads like a request from a lazy person. What have you tried ?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you use PHP for its major purpose, for Web programming, it will be impractical. Due to performance problems. The calculator already exists, you don't have to do anything. It's called "JavaScript". Just add some text area and call JavaScript eval function on its content?

Example? Please see how I use it:[^].

Christian Graus 1-Jan-13 15:19pm
I suspect he means a calculator, with buttons. By advanced, I assume he means scientific.
Well, that's likely, but I don't care. To me, a calculator with button is complete trash, makes no practical sense. It only makes sense in a small cheapest device. Training of developers? More of a waste of time...
Christian Graus 1-Jan-13 18:40pm
Creating a calculator app is a pretty valid way for someone to learn about things like maintaining state, variable scope, basic maths operations, etc. I always suggest it as a starting project ( although not in a web app, that part is odd )
I understand that, but I dislike the idea of such product, even for the study. You see, it develops inertia of thinking and reconciles a student with the idea that making useless projects is fine. Do you see my motivation?
Christian Graus 1-Jan-13 19:10pm
No, not at all. I am frustrated at the number of people here who think that their 'learning' projects should also be commercially useful and probably paid for by someone. If you're learning, learning is the goal, for example, everyone should write a list class ( especially if they are learning C++ ), but everyone should use std::list. The point of writing one, is to know how they work.
If am quite agree with you when you say about commercial project.

I'm talking about different thing: something which I consider useless. As to the good project for study, my idea is this: there is nothing better then a project that you do for yourself. Or your friends. Of course, it requires some level...


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100