Categories
Random Resources

Scala database access driver client links and resources.

Resources and links about accessing a database in Scala.

An async postgre mysql db access client 

Categories
Random Software Development

Why are Scala val variables called values?

One of the oddest things I encountered when starting to learn Scala was seeing variables called values instead of variables.

When I first started reading the docs I saw a list of values of the classes, traits etc. I kept wondering WTF is a value why not call it a variable like every other language.

So for a while I just thought the Scala community just referred to all class variables as values.

Then I was reading the docs some more, I found this page. It has this one easy to miss line that answers the question why are vals called values instead of variables.

The second sentence below the difference between Val and Var

“Because val fields can’t vary, some people refer to them as values rather than variables.”

 

And that is the answer. In the Scala API documentation most classes/objects you see has a list of values defined with val.

I suppose the class variables are defined this way so that you don’t accidentally mutate them or change them.

I am still  not sure why methods are called members yet, when I figure that out maybe I’ll write about it.

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
Electrical Engineering Random

Cool electronic recycling ideas

Cool ideas for reusing electronics

Things you can make from old, dead laptops


What is worth salvaging from an old smartphone?

Categories
Random

random cool links

I am all over in the tech. I have quite a few inventions I am working on. I stay busy learning about tech all day everyday and all it does is give me more and more ideas. One day I’ll catch a break and get some money and start inventing away.

software to calculate woofer box sizes http://www.linearteam.org/ 

information about the software above, how to use it etc. https://www.subwoofer-builder.com/WinISD.htm

more software to design speaker boxes https://torres-box-tuning-calculator.software.informer.com/

Information about passive radiators http://www.centerpointaudio.com/passiveradiators.aspx

Free electronics learning online book.

Circuit lab free schematics and circuit simulation software. Totally cool.

Electronics notes website. Awesome electronics free learning resources website.

Information for inventors

The Ultimate Guide To Motivating Users To Invite Their Friends To A New Platform


Therapeutic Ultrasound with Piezo Components
This is a seriously interesting article about the medical uses for piezo generated waves. Things such as tumor destruction, targeted medicine release and Intravascular Lithotripsy ( plaque removal in the arteries ) I was just thinking about how we need a way to remove plaque to help reduce blood pressure and extend life the other day. I think about an insane amount of things all the time, the more complex the better.


Generating Ultrasound with Piezo Components

This has some interesting information on the subject. I got into the piezo devices because I designed a mining device that has 0 ZERO mechanical parts. I want to build a mining device because I want to get off earth and live inside an asteroid, a ship inside an asteroid to be highly stealthy and hide from other life. There is other life, Earth is roughly 1/4 the age of the universe, it has had billions of years to find us and hide from us. That is a series of articles though. I even know why aliens probe buttholes and E.T’s finger glows. LOL


Using an Arduino to control an FM tuner


Hacking Nasa Satellites to view earth

Link to website.


How to create an Arduino FM radio

Link to website article


DIY 3D printer

I can’t wait to build one of these!!!

Part 2 of building DIY 3D printer

Part 3 of Building a DIY 3d Printer


DIY – Lab Bench Power Supply


Lecture 8 Part C: Frequency response of a piezoelectric element

Categories
Random

Scala Java Joke

Interviewer: How much do you know about Java?

Me : Enough to decide to learn Scala

Interviewer: Do you not like Java?

Me: I’d rather not write a paragraph to simply create and use an object