![]() ![]() Haskelly, and VScode together also offers IDE-like features such as Intelligent Code Completion, and allows for an easier transition when you begin to learn languages such as Java, where most choose to rely on an IDE. Haskelly offers is text-hovering, which can show additional information such as function type definitions. This allows for easy simplification of duplicated code. For instance, highlighting a section of your code would also highlight all the other instances where this exact line of code has come up, and pressing “Ctrl-F2” would allow for refactoring all the instances. VScode has many features that your average text-editor would not have. There are many other uses of this command palette, and you can type “?” in it to find more, or type in relevant key words to find what you’re looking for. Typing in “git clone” will allow you to paste in a git repository URL, and download it to your desired location. To begin simply press (Ctrl-Shift-P) to bring up the command palette, where you can search for the many features that VScode offers. To test VScode, I decided to redo one of my past papers with it. , a Haskell extension has all the listed features, and many more as highlighted below. ![]() Basic text editors lack functions such as text suggestion, Git support, and many other features. Many of us were taught to code in a text editor like Atom for Haskell, and use command line to compile and run our program. Of course, Java has its benefits, but as a beginner, it is much easier to pick up Haskell than Java. Haskell (Left) is clearly easier to learn for a beginner, and even the more complex list comprehension version (Line 4) is easier than the 23-line long Java (Right) method. Haskell, a functional programming language, is a great introduction to programming due to its similarity to maths in basic functions, as well as its simplicity to run and compile.įor example, the following code will read a list of integers from command line, then double each element of the list, and print it out. Aside from Computing, my passions include Basketball, Badminton, as well as Television shows I am currently studying in Computing at Imperial as a first year. I am Nick, and I grew up and studied in Hong Kong. This is a guest post by Nicholas Li, Undergraduate MEng student at Imperial College London and Microsoft Student Partner. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |