Code Monkey home page Code Monkey logo

name-game's Introduction

name-game's People

Contributors

jmariondev avatar

Watchers

 avatar

name-game's Issues

Capitalization of input

The capitalization of the input is currently an issue, as demonstrated in the following cases:

"MARSHA": "MARSHA, MARSHA bo bARSHA"
"MaRsHa": "MaRsHa, MaRsHa bo baRsHa"
"Erin": "Erin, Erin bo bErin"

I believe the easiest way to fix this is to override the capitalization of the input, and normalize it to Ccccc (where 'c' is a character). The only issue I see with this is names that legitimately have capitals within them, though this is a small enough use-case that I don't think it's worth making an exception for.

Names that begin with vowels

Names beginning with vowels become nonsensical when truncated (ie "Erin" becomes "brin").

Deviating from the initial specification is probably a good choice in this case because the song itself does this in its own lyrics.

A potential fix is to just not truncate the first letter of the name if it's a vowel.

Names of 1 character

Because of my argv[i]+1 sub-string method, arguments of 1-character have empty-string as the trimmed name, causing nothing to print in the place of the trimmed name in the output.

This can just be fixed by ensuring that the argv[i]+1 is not a null-byte for each name, probably printing a warning and skipping that argument.

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.