raul
fb05399eca
Add json + interfaces exercise
2024-04-16 08:54:21 +02:00
raul
f240e98da4
Add interfaces exercise
2024-04-16 08:14:52 +02:00
raul
baa3b77552
Improved methods exercise with custom types
2024-04-15 11:49:18 +02:00
raul
84149fc850
Configure selecting buttons with enter and tab
2024-04-15 10:01:49 +02:00
raul
313d22fd64
Add select-buttons exercise
2024-04-15 09:00:48 +02:00
raul
7c73e03d60
Practicing methods
2024-04-15 08:30:10 +02:00
raul
3921e103a5
Add "Connected users" view
2024-04-12 08:37:48 +02:00
raul
ae2477dc77
Clean up tcell exercise
...
Tcell is a tad bit too low level of an API for me, I'll just stick with
Gocui until I need lower-level control
2024-04-12 08:21:45 +02:00
raul
ac3ded6e9a
Add error handling to WASD inputs
...
Can't believe I forgot about that
2024-04-11 15:19:04 +02:00
raul
3eacb27315
Added wasd-game exercise
...
I am most definitely getting the hang of the Gocui library, this is fun
2024-04-11 08:41:58 +02:00
raul
7d33ba18fc
Clean up interface and simulate CLI chat client
2024-04-11 07:59:56 +02:00
raul
23a65fcb01
Modifying a view from another one
2024-04-10 16:02:38 +02:00
raul
d93be2b37b
Editor properly empties text after hitting enter
...
Realized I could use v.SetCursor and v.Clear to easily control the view
2024-04-10 09:01:55 +02:00
raul
06b23f99c8
Starting cleaner TUI exercise
2024-04-10 08:38:44 +02:00
raul
226ff03093
Create tiny counter within quit view
2024-04-09 20:16:30 +02:00
raul
01e9e7e2db
Finally figured out how to read view contents
...
I think I'm finally getting the hang of Gocui, it's pretty interesting
how it separates each view into a different section for the layout
function, also went ahead and separated the keybindings into their own
function, and yes I'm stealing from the _examples folder of the official
project, it's really helpful okay?
2024-04-08 08:23:18 +02:00
raul
8acdc82081
Figured out how to input data within views
2024-04-07 09:58:34 +02:00
raul
faa95c2248
Added quit button widget to exercise
2024-04-06 10:14:33 +02:00
raul
99c053115e
Practice using coordinates for adding textboxes
2024-04-05 12:11:12 +02:00
raul
5edb80e54a
Add gocui library practice exercise
2024-04-04 09:39:37 +02:00
raul
d287ad47a9
Learn event handling and proper rendering
...
I'm tired of building crappy and ugly interactive interfaces by hand, I
learned Cobra to build CLI tools so I might as well learn tcell to
create TUI tools.
2024-04-03 09:02:33 +02:00
raul
9c39b1c462
Added custom port flag to server command
2024-03-28 15:03:58 +01:00
raul
4e30581a5e
Implementing client for connecting to the server
...
Also went ahead and fixed the server improperly writing to
connections.log, newlines be damned
2024-03-27 13:48:12 +01:00
raul
59efb49e3f
Figuring out flags in Cobra
2024-03-26 18:55:52 +01:00
raul
285de706f7
Added get-time exercise
2024-03-25 17:24:03 +01:00
raul
89fce7631b
Added logging capabilities to server
2024-03-24 10:56:34 +01:00
raul
61bf3a0276
Re-adding CPU checker and cleaning CLI interface
2024-03-23 13:05:00 +01:00
raul
46ec23f513
Finally beginning to understand Cobra
...
So all I had to do to add extra subcommands was use cobra-cli add,
great, learning how to use this will definitely be useful in the long
run if I want to build actual CLI applications
2024-03-23 12:33:49 +01:00
raul
f0df294bbe
Practicing with Cobra
2024-03-23 12:06:31 +01:00
raul
4ba20dfc76
Add tiny server to query-cpu exercise
2024-03-22 15:38:28 +01:00
raul
18bd5f98a3
Added query-cpu exercise
2024-03-21 22:03:27 +01:00
raul
2a0ce3f89d
Minor tweaks
2024-03-20 20:59:48 +01:00
raul
6711bc5de5
Added methods exercise
2024-03-19 08:21:08 +01:00
raul
f8eacdbc1c
Added tcell-practice exercise
2024-03-18 09:13:29 +01:00
raul
6428837551
Add tour-of-go folder and README.md
2024-03-18 08:19:47 +01:00
raul
290d1be8f4
Added tcp-movie exercise
...
Need to practice sockets more, I have many ideas on what to do with them
2024-03-11 08:29:41 +01:00
raul
7693f81e0b
Added http-get exercise
2024-03-10 09:29:55 +01:00
raul
08040ef9c9
Added ability to use custom ports
2024-03-10 09:21:02 +01:00
raul
a41033f150
Handling multiple connections using goroutines
2024-03-10 09:07:08 +01:00
raul
a4a5594096
Added sockets exercise
2024-03-09 19:35:26 +01:00
Raul
43e9f4c6c4
Trying to implement fizzbuzz with goroutines
2024-03-08 12:03:16 +00:00
Raul
569b255bfa
Added delayed-channel exercise
2024-03-08 10:26:58 +00:00
Raul
1279df8aab
Added ping-pong exercise to practice goroutines
...
Currently trying to figure out concurrency without suffering a headache,
stay tuned for more black magic using channels
2024-03-08 08:22:28 +00:00
raul
8b87cce11c
Completed goroutine channels exercise
...
Finally starting to get the hang of how channels in goroutines work,
just pass the values around using arrows after creating the channel
using c := make(chan $TYPE)
2024-03-07 17:59:18 +01:00
raul
91d4985651
Can now add to vector, still practicing channels
2024-03-06 18:04:34 +01:00
raul
a3b8027714
Completing 2nd goroutine example
2024-03-05 19:57:16 +01:00
raul
8be6890727
Added inverse-counting exercise
2024-03-04 07:54:48 +00:00
raul
9e978f0bcf
Improved UX by reusing scanLine function
2024-03-03 10:29:50 +01:00
raul
a89ca3987b
Separate goroutines exercise into different files
...
Also went ahead and added a way to interactively select which function
to execute so I can easily execute each file individually, I still have
to learn channels and passing data through these channels but I don't
want old code possibly bothering me
2024-03-02 10:00:45 +01:00
raul
a4667e2039
Added an actual win condition
...
Also realized that I was supposed to decrement the X/Y values instead of
incrementing them
2024-03-01 20:45:21 +01:00