DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Valts Liepiņő profile picture

Valts Liepiņő

404 bio not found

Location Latvia Joined Joined onΒ  github website

Work

Software engineer

All 99 comments

What is your favorite database?

I'm wondering why do you suggest MariaDB(MySQL) for small sca...

The Peregrine programming language - A Python-like language that's as fast as C.

The second reply in this thread already expressed the same id...

The Peregrine programming language - A Python-like language that's as fast as C.

Obviously the project doesn't affect me in any way. I simply...

The Peregrine programming language - A Python-like language that's as fast as C.

Nim also compiles to C, so it's same as Swallow in that manne...

The Peregrine programming language - A Python-like language that's as fast as C.

The difference between Nim and Python syntax-wise is approxim...

The Peregrine programming language - A Python-like language that's as fast as C.

Nim language project seems to be very similar to your goals. ...

Where do you host your PostgreSQL?

I use scaleway as my VPS provider and have seen that they pro...

Creating Haskell notebooks with org-mode

Since GHCi has a builtin way to hide prompt, couldn't you use...

C++ is awesome, here's why...

I wanted to slip in a real world example of a very performant...

Arduino Calculator

Which part of this is related to machine learning?

SQL vs NoSQL - Which is better for you?

That's interesting, I had used common table expressions befor...

SQL vs NoSQL - Which is better for you?

Hierarchical schemas aren't that problematic in SQL. Say for ...

Solution: Find Duplicate File in System

Considering that files could be large, perhaps one could use ...

3 types of people in software development without skin in the game

It would be the project owner's or coordinator's responsibili...

3 types of people in software development without skin in the game

Great read, thanks! I was thinking about the system architec...

😴 Laziness isn't real

Thank you for the great article! I've actually have had a ve...

Which Technology Should I Learn?

I would suggest to make use of what you've already gotten fam...

3 use cases for ES6 generators

Recently I naturally settled on generators to implement a str...

Git: Are you an over-committer? Squash those commits!

Merge request oriented workflow even allows you to push the u...

Coding is Boring! why do you love coding?

I agree with the already listed reasons and I'd personally ad...

Answer: How to get the first element of an array?

What about keeping it simple as suggested in the accepted ans...

Lua strings are not strings

It would also be misleading to think about Lua strings as con...

Windows or Mac (or Linux😁) for devs?

For me it's definitely linux, because I honor extremely high ...

Strictly Typed Functional Programming for Roblox

Hah, did not expect to see roblox on dev! That's where I bega...

Advent of Haskell: Trying to solve puzzles without knowing Haskell

Heh, I happened to do exactly the same last year. I still use...

How to change the directory without typing the cd command in Linux?

Yeah, it seems similar. Unique feature in fasd is that it all...

How to change the directory without typing the cd command in Linux?

Hey, that's pretty neat tool! For a more chaotic approach, f...

Vectors in Python

Doing things from scratch is great for learning, but I think ...

Daily Challenge #305 - Remove Anchors from URLs

Haskell: remove_url_anchor :: String -> String remove_u...

What editor, browser and terminal do you use?

Overview Code editor: Kakoune Browser: Qutebrowser...

Daily Challenge #304 - Consecutive Letters

Solution in Haskell with O(n) time complexity: import Data...

Daily Challenge #302 - setAlarm

Haskell setAlarm :: Bool -> Bool -> Bool setAlarm em...

Daily Challenge #301 - Array Combos

My solutions in Haskell. The first solution - inefficient(O(...

Is the pain worth the gain? Writing webapps in C (Benchmarks vs Flask and Nodejs)

This is an intersting benchmark, although why did you limit t...

Stable distro for development?

I'm curious about what stability issues you're talking about?...

Daily Challenge #296 - Years to Centuries

Solution in Haskell: import Numeric.Natural (Natural) toCe...

Parallel features with Git

As you've already noticed, it's pain to maintain command line...

Redshift might be good, but why can't I customize more than that?

Have you tried importing ICM by itself? The page I linked po...

Redshift might be good, but why can't I customize more than that?

This seems like an Ubuntu specific feature and most likely it...

Python is Slowly Losing Its Charm

Right, I think this is the main appeal of Python and the reas...

In Defense of Defensive Programming

I referenced the exact same blog post in my response! You mi...

In Defense of Defensive Programming

I'm coming with this idea from Haskell, so I wanted to try ex...

DigitalOcean's Hacktoberfest is Hurting Open Source

The event is not beginners exclusive, although one of it's go...

GitLab has Blocked Iran!

It doesn't seem to be country-wide ban, since one can open gi...

DigitalOcean's Hacktoberfest is Hurting Open Source

I agree, they should reduce trivial contribution encouragemen...

DigitalOcean's Hacktoberfest is Hurting Open Source

It would be interesting to find out some useful/spam ratio. ...

In Defense of Defensive Programming

As for the safety of external input in TypeScript case, I wan...

From Temporary Knowledge to Permanent Knowledge

This is a great posts, thanks for sharing! I think big reaso...

Who's participating in Hacktoberfest 2020?

Hey! This will be my third Hacktoberfest. In fact, I actuall...

Is git commit --amend truly *important*?

A neat workflow I've seen is developing on PR and using inter...

Daily Challenge #287 - 16+18=214

EDIT: I quite liked purely arithmetic solutions by @willsmart...

Daily Challenge #286 - Reverse It Quickly!

Haskell solution in exactly 28 characters: r=flip(:)`foldl`...

Timekeeping Isn’t Toxic. Your Management Is.

RIght, despite loving the challenge of maintaining and upgrad...

PostgreSQL vs MongoDB

I recently found out about this "PostgREST" project, which pr...

Daily Challenge #278 - Find all non-consecutive numbers

Haskell solution: import Data.Foldable (foldl') data Index...

I started a digital garden and so should you

Curious approach! I've recently seen rise of other similar n...

Daily Challenge #273 - Remove Duplicates

Perhaps you're mistaking IntMap for Map? Here, in Map docume...

Daily Challenge #273 - Remove Duplicates

Wouldn't this have O(n^2) time complexity? This could be done...

Daily Challenge #271 - Simulate Population Growth

Lazy Haskell goodness: import Data.Maybe (fromMaybe) import...

Daily Challenge #270 - Fix String Case

Haskell solution: import Data.List (foldl') import Data.Cha...

Daily Challenge #267 - Braking Speed

First part of the challenge is almost written out as is, but ...

Daily Challenge #266 - Who Likes It?

Very declarative Haskell solution: likes :: [String] -> ...

Hit me with a good rant

To me that sounds like a burn out, not a wasted time. As you ...

Daily Challenge #233 - Get Planet Name by ID

Haskell getPlanetName :: Int -> Maybe String getPlanetNa...

Daily Challenge #230 - Beeramid

Haskell solution using lazy, infinite list of cans: impor...

Daily Challenge #218 - Possible Sides of a Non-Right Triangle

Haskell import Data.Ratio (numerator, denominator) side_...

Daily Challenge #216 - Rainfall

Solution in Haskell: import Data.List (find) calcMean ::...

Daily Challenge #215 - Difference of 2

Took some iterations to get to this solution, but here it i...

Daily Challenge #214 - Persistent Bugger

Haskell solution: import Numeric (floatToDigits) persist...

Daily Challenge #213 - Are they the "same"?

Wasn't aware that Haskell's equality operator did deep comp...

Daily Challenge #213 - Are they the "same"?

Solution in Haskell: import Data.List (sort) comp :: [In...

Daily Challenge #210 - Separate Capitalization

Solution in Haskell using folding: import Data.Char (toUp...

Investigation into Postgres malware (hack?)

For anyone else interested, here is the malicious script afte...

Daily Challenge #209 - Roman Numerals

My solution in Haskell: solution :: String -> Int solu...

Daily Challenge #208 - Delete Occurrences of an Element

Haskell: import Data.List (foldl') import qualified Data....

Daily Challenge #206 - Pound Means Backspace

Haskell: cleanString :: String -> String cleanString =...

Staring at ($), (< $ >), (< * >) and (>>=)

Thanks for the article, this is something to meditate on! ...

Daily Challenge #185 - House Numbers Sum

My original solution in Ruby def houseNumSum arr arr....

Daily Challenge #184 - Form the Minimum

Yeah, swapping seems to be better, would keep the large dig...

Daily Challenge #184 - Form the Minimum

Ruby: def minValue arr set = arr.uniq.sort set[0....

Daily Challenge #183 - Automorphic Numbers

Ruby def autoMorphic num dig = num.digits (num**2...

Daily Challenge #182 - Arrh, grabscrab!

Also was in mood for some Haskell. This time Haskell soluti...

Daily Challenge #182 - Arrh, grabscrab!

Ruby def grabscrab word, dict orig = word.chars.sort!...

Daily Challenge #180 - SMS Shortener

This one ended up being less readable, will give a compact ...

Daily Challenge #179 - Hide Phone Numbers

Haskell, similar idea to my solution in Ruby import Data....

Daily Challenge #179 - Hide Phone Numbers

Ruby def encryptNum num num.reverse!.gsub(/\d/).with_...

Daily Challenge #178 - Create Phone Numbers

Ruby def createPhoneNumber d "(#{d[0..2].join}) #{d[3...

Daily Challenge #177 - Supersize Me

Yet another Ruby one liner: def superSize int int.to_...

Daily Challenge #175 - Complementary DNA

Seems like Lua also has a neat solution: function DNA_str...

Daily Challenge #175 - Complementary DNA

Ruby keeps on pleasantly surprising me: def DNA_strand st...

Daily Challenge #174 - Soccer League Table

Ruby, concise as usual: class LeagueTable def initial...

Daily Challenge #173 - Pandemia

Ruby with heavy use of regexp and functional paradigm: de...

Daily Challenge #172 - Find All in an Array

Ruby def findAll xs, x xs.filter_map.with_index {|y, ...

strings in python2 and python3

Luckily you can type byte string literals in Python3: base6...

Turning Bugs Into Features

Probably patching up an unexpected bug as a feature won't w...

Coding with ADHD: How do You do it?

Although I'm not medically diagnosed, I do deal with the is...

loading...