Coder Social home page Coder Social logo

dotnetcalculator's Introduction

Hi ๐Ÿ‘‹, I'm Alper

I am a Rust developer in my own right and Linux Enthusiast.

Languages:

C#

I learned C#, my first programming language, 2 years ago and developed projects. But I've taken a break from C# for now.

C++

After C#, I learned C++, but I did not develop many projects.

Go

4 months ago, the idea of developing command line tools came to my mind. I heard that the Go language has very good packages for developing command line tools and I started learning it right away. I wrote small command line tools in Go. I still use this language.

Bash

I learned Bash with Linux. I wrote beautiful scripts with this language.

Rust

I'm new to the Rust programming language. I started learning 3 weeks ago (August 20). It caught my attention that it has been chosen as my favorite programming language many times on StackOverflow. The Rust community also said that this language is very good. I started learning Rust right away. Indeed, as the community says, Rust is a powerful and beautiful language.

Git

I use Git as my main version control tool. The best in its field.

Tools

Docker VSCodium Intellij RustRover

My System

GitHub Stats

lnxwizard's GitHub stats

lnxwizard's GitHub stats

lnxwizard's Most Used Languages

Patrick Bateman

Profile Views

dotnetcalculator's People

Contributors

lnxwizard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dotnetcalculator's Issues

Selecting only a number and operator will cause a FormatException when calculating the result

I saw your reddit post, neat project. I wanted to check it out, so I cloned it and did some testing. I found an immediate issue.

If you select a first number (let's say 9), an operator (let's say add) and immediate go to calculate the result, a FormatException will occur at this line:

https://github.com/AlperAkca79/dotNETCalculator/blob/05ccae288a6bf4ffd85888e0754e30ac3705d44a/dotNETCalculator/MainWindow.xaml.cs#L212

While I could implement a safer way to patch it up, a very quick and dirty work around would be to change it to

if (string.IsNullOrWhiteSpace(output))
    output = temp.ToString();

PreviewOutput.Text = (temp.ToString() + " " + operation + " " + double.Parse(output) + " " + "=");
...

A default behavior could be that the input value should be subject to both sides of the calculation when doing (basic) operations. That way, 9+= would be 9+9=18.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.