PSI Blog Programming, Linux, Gaming, ...
Posts with the tag Programming:

How to create a chess app in flutter

How to create a chess app in flutter In this post, I’m going to explain how to create a basic chess app with Flutter. For this app I used the RiverPod state manager, you probably already know what it is, if not, just click on this link to learn more about it. Creating the project To create a Flutter project we simply write: flutter create chess_app How to create a chess board app in flutter First of all to create a chess we need the chessboard, for that, fortunately Deven Joshi created a package/widget that allows us to create and play in a chessboard, that is called flutter_chess_board package.

Functional Programming in Rust and Haskell

Have you ever wondered what is functional programming? This big buzz word everyone is talking about? What is Functional Programming? In Functional Programming everything is implemented using functions. Functions are pieces of code which may receive some input value(parameters) and may return some output value. In this case we have the say_hello function which has no parameters and no output value, this function prints to the screen “hello world”. Rust Example: fn say_hello(){ println!("hello world"); } Haskell Example: say_hello = putStrLn "hello world" And in this case we have the function add_one which has an input value num of the type i32 and returns that value plus 1.

X Could not find Module `Prelude` fix

Today I was experimenting with Haskell and this error struck me: X Could not find Module Prelude There are files missing in the base-x-x-x package, This has an easy fix: Install the ghc-static package sudo pacman -S ghc-static Then all should compile easily.

Emacs Multiple Dictionaries

Emacs is really a nice tool to work with if you are a developer or even a writer. It’s modes are incredibly versatile and never cease to amaze me. Some days ago I found myself in a conundrum, my Emacs config only supported one dictionary at a time. Dictionary Plugins This dictionary plugins are really a life saver because they “lint” your text and help you find other words that are similar to the one you wrote incorrectly. Things that other code editors don’t have for writing $\LaTeX$ or Markdown This is very frustrating if you write school papers/essays in your home language and write something in other language.

First Post

Hello there This is the first post of this blog and I would like to present myself: My name is Diogo Valério I’m a first year Computer Science student I live in Portugal I’m a hobbyist programmer Some programming languages that have caught my interest recently were rust and Haskell. I’m very into functional programming. I’ve also messed a little with lisp and Clojure. I’m a Linux power user and a FOSS advocate. I’m also a PC gamer and I’m interested in Game Development.

First Post

Hello there This is the first post of this blog and I would like to present myself: My name is Diogo Valério I’m a first year Computer Science student I live in Portugal I’m a hobbyist programmer Some programming languages that have caught my interest recently were rust and haskell. I’m very into functional programming. I’ve also messed a little with lisp and clojure. I’m a Linux power user and a FOSS advocate. I’m a PC gamer and I’m also interested in Game Development.