Consider a question, "Can machines be conscious?" The subject "consciousness" is vague and challenging. Although there has been a rich collection of literature on consciousness, computational modeling of consciousness that is both holistic in scope and detailed in simulatable computation is lacking. Based on recent advances on a new capability-Autonomous Programming For General Purposes (APFGP)-this work presents APFGP as a clearer, deeper and more practical characterization of consciousness, for natural (biological) and artificial (machine) systems. All animals have APFGP but traditional AI systems do not. This work reports a new kind of AI systems-conscious machines. Instead of arguing what static tasks a conscious machine should be able to do, this work suggests that APFGP is a computationally clearer and necessary criterion for us to dynamically judge whether a system can become maturely conscious through lifelong development, even if it (e.g., a fruit fly) does not have a full array of primate like capabilities such as vision, audition, and natural language understanding. The results here involve a series of new concepts and experimental studies for vision, audition, and natural languages with new developmental capabilities that are not present in many published systems, e.g., IBM Deep Blue, IBM Watson, AlphaGo, AlphaFold and other traditional AI systems and intelligent robots.