Skip to content

Commit

Permalink
More programming languages examples. (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiletaA committed Apr 6, 2023
1 parent 7df5763 commit 49b0ee1
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tutor/mainC#.cs
@@ -0,0 +1,6 @@
// Welcome to Cursor
//
// 1. Try generating with command K on a new line. Ask for a C# implementation of a binary search tree.
// 2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
// 3. Try selecting some code and hitting edit. Ask the bot to add a method for finding the lowest common ancestor of two nodes.
// 4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder.
6 changes: 6 additions & 0 deletions tutor/mainC.c
@@ -0,0 +1,6 @@
/* Welcome to Cursor
1. Try generating with command K on a new line. Ask for a C program that implements a stack using an array.
2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
3. Try selecting some code and hitting edit. Ask the bot to add a function that checks if the stack is full.
4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder. */
6 changes: 6 additions & 0 deletions tutor/mainGo.go
@@ -0,0 +1,6 @@
// Welcome to Cursor
//
// 1. Try generating with command K on a new line. Ask for a Go implementation of a simple HTTP server.
// 2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
// 3. Try selecting some code and hitting edit. Ask the bot to add a middleware for logging requests.
// 4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder.
6 changes: 6 additions & 0 deletions tutor/mainJava.java
@@ -0,0 +1,6 @@
// Welcome to Cursor
//
// 1. Try generating with command K on a new line. Ask for a Java implementation of a singly linked list.
// 2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
// 3. Try selecting some code and hitting edit. Ask the bot to add a method for reversing the linked list.
// 4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder.
6 changes: 6 additions & 0 deletions tutor/mainPhp.php
@@ -0,0 +1,6 @@
/* Welcome to Cursor
1. Try generating with command K on a new line. Ask for a PHP script that connects to a MySQL database.
2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
3. Try selecting some code and hitting edit. Ask the bot to add a function to retrieve data from a specific table.
4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder. */
6 changes: 6 additions & 0 deletions tutor/mainRust.rs
@@ -0,0 +1,6 @@
// Welcome to Cursor
//
// 1. Try generating with command K on a new line. Ask for a Rust implementation of a concurrent hash map.
// 2. Then, select the outputted code and hit chat. Ask if there's a bug. Ask how to improve.
// 3. Try selecting some code and hitting edit. Ask the bot to add a method for safely removing a key-value pair from the hash map.
// 4. To try out Cursor on your own projects, go to the file menu (top left) and open a folder.

0 comments on commit 49b0ee1

Please sign in to comment.