Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check all senders of #flag: in the application #20

Open
jecisc opened this issue Sep 19, 2016 · 0 comments
Open

Check all senders of #flag: in the application #20

jecisc opened this issue Sep 19, 2016 · 0 comments
Labels

Comments

@jecisc
Copy link
Member

jecisc commented Sep 19, 2016

This issue need to be check AT THE END of the project.

The method Object>>flag: does nothing but is used to mark methods to check. I will put some in my code where I do some shit or when I did not finished some things. We will need to check them at the end of the project.

Example of use:

styleForResult
self flag: #clean. "The ifs here are really bad :) I need to clean that later :)"
^ String
    streamContents: [ :s | 
        s
            << 'background-color:';
            <<
                (self result = 0
                    ifTrue: [ 'red' ]
                    ifFalse: [ self result = 1
                            ifTrue: [ 'green' ]
                            ifFalse: [ 'orange' ] ]);
            << $; ]
@jecisc jecisc added the Quality label Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant