sojinkim / calculator Goto Github PK
View Code? Open in Web Editor NEWlearning iOS
learning iOS
Yet
and .gitignore is missing
and it is annoying a lot
will change the outlet event type to "touch down" .. someday..
.. getting super lazy
also, will investigate little bit more gradient layer on button ... sometime soon..
enter digit + sign + enter more digits
will revert sign
damn. why every simple change introduces bugs -_-
unsupported configuration
unknown pattern color for the highlighted title color attribute
xcode.. not cute anymore
๋ฐ์ฑ
core properties..
user input string becomes either left operand, right operand, or memory
-> should convert and store before leaving the operand state
result becomes left operand
-> wait, do not push the value to left operand, until exiting the operand state.
memory becomes left operand, or right operand
-> again, wait until user finally decide to accept that value by exiting the operand state.
display string : ui dependent. coming from user input, memory or result.
-> let controller compose the presentation using 1-6
๐ฟ
Press
12.3
M+
Mr
0.345
-> Displays 12.30.345
Because isDecimalPressed == No
Simplest fix might be scan for dot in mr value, and turn the decimal flag on.
But as in ios, i will prohibit altering mr value on the display. Any attemp to entering digit will discard the mr value.. sign change will be allowed.
-_-
on iphone cal.
these buttons have toggle state
decimal - not implemented
sign - signed number, followed by digit input
need to redesign the way getting user input
state transition and exceptional case handling became so dirty, requires extensive manual tests on every code change, so now it makes perfect sense to generate unit tests .. dammit
I was curious if there was "C++ friend" equivalent in Objective C. Stack overflow says Category is one way to mimic it.
So, let's try it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.