Want to join the conversation?
- Looking for the reason behind a strange behavior in the Khan Academy sandbox.
I like to work on projects on my the web server on my laptop since I can control the real estate easily and I do not have to argue with Error Buddy every time that I make a change. The weird thing that I notice is when I port my code up to the sandbox and save. When I return to the project, many times the code has been double-spaced.
Has anyone else noticed this happening? Does anyone know why this occurs sometimes, although not always?
- It's the line endings. Windows puts a CR+LF at the end of lines but the editor only wants LF.
I use Notepad++ (free open-source software) and change the "EOL conversion" to Unix-style. Turn on special characters and you can see the difference.
You could probably do something similar in many text editors if you know what you're looking for. LF and CR might also be displayed as ^J and ^M (ctrl-J and ctrl-M) respectively, or their ASCII values (10 and 13, or 0A and 0C in hexadecimal), or \r\n. Regardless, you probably want to strip out the CR's and leave the LF's.(69 votes)
- will these videos help me even when I have not learned java script?(18 votes)
- This is a follow-up course to "Intro to JS: Drawing and Animation". You can find this course when you go to Computing > Computer Programming in the courses menu, and search for the title.
So yes, you do need to know basic Java script to be able to understand and learn from these lessons. Hope this helps:)(22 votes)
- Do I need to do Intro to HTML and Intro to SQL before I learn this?
Because I learnt Drawing and Animation, but not the other Intro's(6 votes)
- Where is the game section on this website?(3 votes)
- On the Khan Academy Computer Programming page (https://www.khanacademy.org/computing/computer-programming), scroll down to the "Browse Projects" section. Click the "Browse Projects" link.
By default, you will see the "Hot" projects. There are links on the right to "Recent," "Contests," and "Votes."
Many of the projects listed are games.(7 votes)
- where are the games in khan academy i thoght there were no games.in khan academey i have only have done math i have not seen the games.(4 votes)
- You can find many games here: https://www.khanacademy.org/computing/computer-programming/browse
Try also sorting by 'Votes' and 'Contests'. Under 'Contests', look through the Spin-Offs and you can find many as well!(4 votes)
println(Infinity);gives a weird value on KA:
null(Why is it falling back to nothing?)
println(Infinity + Infinity);. Other checks are logical.(3 votes)
- You have discovered another glitch in the Khan Academy live-editor environment. Note that the single line program only glitches as you type it in. If I reload the program, it behaves properly.(4 votes)
- how do you make a game ??(3 votes)
- Making a game can be a complex process, but I can give you an overview of the basic steps involved:
1. Define your game concept: Decide on the type of game you want to create, the genre, gameplay mechanics, and any unique features or goals.
2. Plan and design: Create a detailed plan for your game, including its levels, characters, storyline, art style, sound effects, and music. Consider creating a visual prototype or sketch to help visualize your ideas.
3. Choose a game development platform: Select a game development engine or platform that aligns with your skills, preferences, and the type of game you want to create. Popular choices include Unity, Unreal Engine, Godot, or GameMaker Studio.
5. Start development: Begin building your game by creating the game world, implementing gameplay mechanics, designing levels, and adding art assets. Break down your development tasks into smaller manageable chunks and work on them one at a time.
6. Test and iterate: Regularly playtest your game to identify and fix bugs, balance gameplay, and improve user experience. Collect feedback from others and make necessary changes to enhance the overall quality of your game.
7. Polish and finalize: Refine the visuals, audio, and user interface of your game. Add additional features, optimize performance, and ensure smooth gameplay.
8. Release and distribute: Once you are satisfied with your game, consider publishing it on platforms such as Steam, mobile app stores, or independent game distribution platforms. Promote your game through marketing channels to reach your intended audience.
Remember, making a game is a creative process that requires dedication, patience, and continuous learning. Don't be afraid to start small and gradually build up your skills and knowledge as you work on more ambitious projects.
*The following answer is 100% AI generated.(2 votes)
- Can someone explain regular expressions, or point to a tutorial? I've seen some people using them but I don't know what they are/do.(2 votes)
- I doubt it. But maybe someone can win the contest to explain a computer science concept.
I was first exposed to regular expression in a senior level college course in the Theory of Computation and how regular expressions are equivalent to finite state automata.
Here is a concept: The asterisk, * is a regular expression that matches any string. So, s* is a regular expression that matches all strings beginning with with an s. Similarly, *s matches all strings ending with an s. There are quite a few more operators besides *.