Categories
Resources Software Development

Scala Play Framework Slick resources and links

Below is a list of resources, links, videos etc. a

Play Framework and Slick example updated – very helpful article

Categories
Resources Software Development

How Scala Imports and Packages work

One of the most important first things to learn about Scala is how Packages and Imports work. Below is a great video that covers the subject well. Why spend hours writing an article when an excellent resource exists?

Also if you would like to know more about Scala package objects, which allow you to reuse functions/ objects etc. then see my article what are Scala package objects

Packages and Imports (in Scala)

Categories
Resources Software Development

What are Scala package objects?

Scala package objects are basically code, functions, variables, classes, objects that you want available to all of your other code/files/objects in a given package. Basically it is like a system to provide utility, helper or common code all in one place.

Instead or writing an article I’ll post links to helpful resources. No reason to waste all my time writing articles if good article exist.

A minimal coverage of Package Objects by the  Scala docs.

The following link is from alvin alexander – from Scala Cook Book if you don’t own it you should buy it, this is an excellent resource. This link goes into much deeper detail than the documentation.
How to put common code in Scala package objects

Scala Tutorial – Learn How To Use Package Objects – excellent tutorial on how to use Package Objects.

Categories
Resources Software Development

HikariCP connection pooling software resources and links

HikariCP is a connection pool software that maintains connection pool resources so your code use them to access databases.

This can be used in place of Akka and Scala execution context for database connections. This helps keep your main application code from being blocked while it does a database query to either store or retrieve information.

HikariCP is the fastest and most resource efficient connection pool technology for the JVM.

 

Links

Introduction to HikariCP – a great introduction to what HikariCP is to start out with.

HikariCP documentation – a link to the actual documentation, you have to click the version of CP you want to use.

A quick guide to connection pooling in Java

Categories
Random Resources Software Development

Interesting blog about databases

I found this link somehow. This guy has all kinds of interesting information about databases, programming and technology in general . https://aphyr.com/tags/jepsen

Categories
Resources Software Development

Links about using MySQL as a NoSQL database

I got interested in using the JSON field of MySQL so I did some googling turns out I am not the only one. Some things have changed over the years since MySQL introduced the JSON field.

MySQL is a Great NoSQL Datastore

Scaling to 100M: MySQL is a Better NoSQL

Using MySQL as a document store – from the documentation

Categories
Resources Software Development

Scala self types links and resources.

The Scala documentation coverage of self types is not very good. Here are some links to further information and explanations of self types in Scala.

Articles

Self types in Scala – This is a decent article that explains self types pretty well.

Scala Self types annotation – more information about Scala self types with examples.

Inheritance vs self types – this article covers the differences between inheritance and self types. Some of the content is repetitive of the above links but said in a different way with different examples. This does a good job of explaining why you would self type instead of inherit, the main thing  I was looking for.

Categories
Resources Software Development

Actual AKKA API documentation link

I may be doing something wrong.
While reading the Akka documentation about Dispatchers  I wanted a better look at the actual API. To my surprise and inconvenience, there was no  link on the page.

So I had to google and well the first link was just to the same damn page in the docs I was looking at. So  I clicked a few more until  I found what I was looking for. I have no idea why there are not links in the docs.

Low and behold the hard to find ACTUAL DOCUMENTATION LINK 

Categories
Resources Software Development

Scala concurrent programming links and resources

A journey into concurrent programming in Scala – a good article about concurrent programming in Scala

Java Executors documentation – Scala uses Javas future system with Executors etc.

Play uses Akka so you can also use Akka dispatchers for the ExecutionContext required in the Controllers.

Link to Hikaricp library that creates connection pools for database access on JVM

Ebooks

Concepts and Technologies for Distributed Systems and Big Data Processing
Philipp Haller
Scala Futures, Async, and Actors

Categories
Resources Software Development

Interesting hosting options, information and links

amazon fargate – container hosting made easy.

google cloudfront – another container hosting option