Frectonz
3.47K subscribers
1.91K photos
83 videos
32 files
1.64K links
A place for me to talk about my projects, stuff i find on the internet and what I am currently thinking about.

By @frectonz
Download Telegram
Taken from https://go.dev/tour/flowcontrol/11

"""
Switch with no condition
Switch without a condition is the same as switch true.
This construct can be a clean way to write long if-then-else chains.
"""

This feature is also very interesting i know i will be using it.

#GoLang #TIL
Things are getting interesting in my Golang journey. Go has this thing called defer. It allows you to schedule a function to be run once the function execution environment it is in exits.

This is going to be useful for handling resources, open files, network connections ...

#GoLang #terminal #TIL
I just completed "Calorie Counting" - Day 1 - Advent of Code 2022 https://adventofcode.com/2022/day/1

The code will be on github after a couple of minutes, Btw i solved it using OCaml 🐫, Let see if i can make to the end 🤞

#AdventOfCode #AoC #ocaml
👍2
Frectonz
https://youtu.be/btWKkjbX-uc #CoolFind #neuralink #elon
This shit looks like the first act in a Black Mirror episode.

"What a time to be alive" - Two minute papers
😁3
Redid Advent Of Code Day 2 in Elm 🌳

Github

#AdventOfCode #AoC #elm
This might be the longest time i have gone without shutting down my PC, i will try to keep it up until it reaches a weak.

I am on Fedora, btw.

#terminal #brag #setup
I've completed "Rucksack Reorganization" - Day 3 - Advent of Code 2022

https://adventofcode.com/2022/day/3

#AdventOfCode #AoC
69 repos nice 😁

#funny #joke #brag
😁5💩1
I've completed "Supply Stacks" - Day 5 - Advent of Code 2022

Today's Advent of Code challenge was very hard. It took me hours trying to parse a string representation of stacks (see the image). Finally i thought the only thing that matters is i get the solution and my code doesn't need to be reproducible on others people's input. So i changed the original input to make it easier for me to parse 😱.

#AdventOfCode #AoC
* The change i made that made it easier for me to parse the input file was using _ as a separator because i was facing many edge cases when i was using spaces as a separtor