CasiOo's Profile User Rating: *****

Reputation: 1518 Grandmaster
Group:
Mentors
Active Posts:
3,401 (1.92 per day)
Joined:
05-April 11
Profile Views:
19,420
Last Active:
User is offline Today, 04:09 PM
Currently:
Offline

Previous Fields

Country:
DK
OS Preference:
Who Cares
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
225
Expert In:
Java

Latest Visitors

Icon   CasiOo has not set their status

Posts I've Made

  1. In Topic: Anyone here uses emacs for editing javascript?

    Posted 8 Feb 2016

    People usually use spaces instead of tabs in web development (look up projects on github). I prefer 4 ;)
    I've been writing a lot of js for the past few years, and nesting can become a problem, if you aren't experienced enough in js to get around it.
    There are lots of good ways to prevent deeply nested functions.

    I personally wouldn't be using emacs, so instead I'll list some popular editors among web devs. at the moment hah:
    Visual Studio Code (new, amazing with typescript)
    Atom (new)
    Brackets (new)
    Sublime
    WebStorm
  2. In Topic: Help using observer pattern to maintain state for game

    Posted 8 Feb 2016

    You could make use of a message queue, if you want to make sure all handles have a chance to handle the state, before the state is changed once again.

    Why is the class named StateMachine? The name tells me, that you aren't sure what states it actually needs to handle. I think you should reconsider what actually needs to be part of the state machine. Your state machine needs to have a clear responsibility, it shouldn't contain every state in your game.
    I don't think a state for each level is ever going to be needed.

    Personally I would probably look into implementing some classes like: LevelSelection, LevelLoader, LevelResources, UnloadedLevel, Level
  3. In Topic: Partially search string

    Posted 8 Feb 2016

    You have several problems

    1. You keep clearing the previous appended text
    09
                    View.textArea.setText("");  
    


    2. contains is case-sensitive, so you'll have to either lower- or uppercase it all
    //TODO Clear text area
    search = search.toLowerCase();
    
    for (Store store : Model.storeList) { 
        if (store.getName().toLowerCase().contains(search)) {
            View.textArea.append(
                    "Name: " + store.getName() + "\n"
                    + "Address: " + store.getAddress());
        }
    }
    
    


    You might also need some null checks on the store name
  4. In Topic: Beginner using Titanium Appcelerator

    Posted 8 Feb 2016

    I would not advice using Appcelerator. Be prepared for bugs everywhere in their internal code. Undocumented "features". Lots of native functionality you cannot do, even some core features. And don't get me started on the bad performance, since your app code needs to go through proxies.

    It takes forever for them to resolve even critical bugs in titanium and their editor.

    I also have a funny story about a guy who followed their advice (because of a bug Titanium had), and ended up with his whole project being minified (his source code) with no way of going back.
  5. In Topic: Is it better to reuse commonly used objects as mutable member classes

    Posted 19 Jan 2016

    So the real answer is: That depends.

    Can you give us an actual example?
    What is Foo, and what is it used for? Does it have to be thread safe? Is Foo communicating with other parts of the application?

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
3
Programming Languages:
Java, C#, VB.NET, JavaScript, PL/SQL, PHP (Basic)

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    riperator Icon

    31 Jul 2013 - 10:33
    <3 you
  2. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    thank*
  3. Photo

    b.netana Icon

    23 Mar 2013 - 17:32
    wanted to that you for your help with my gui practice
  4. Photo

    raghav.naganathan Icon

    25 Nov 2012 - 21:15
    Hi dude...I would like to tell you that your rep(729) is a perfect cube :) Cheers :)
  5. Photo

    ubunta Icon

    30 Sep 2012 - 23:33
    hi hello
    hope will be fine and feeling well!!!!!!!!!!!!!!
  6. Photo

    Proshnobodhok Icon

    12 Oct 2011 - 12:31
    Hi CasiOo,
    I really didnt know the term. nyways seems like you can help me in at least telling me the way to get the related resources. but is it against the IT laws?
  7. Photo

    CasiOo Icon

    28 Jun 2011 - 04:11
    Thank you :)
  8. Photo

    smohd Icon

    26 Jun 2011 - 19:39
    Welcome to contributors group
Page 1 of 1