Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with Lift

Tags:

scala

lift

I want to learn Lift. Unfortunately, all documentation which I tried either obsolete, unreadable, incorrect or combination of the above. I tried the following:

  • Simlply Lift. Some things from the book I tried lead to errors.
  • Exploring Lift. The structure of book is very bad. It's hard to read and try out code in the wild at the same time.
  • Lift in Action. The same as the previous but you need to pay for it.

P.S. I've seen similar questions. Most of them were asked a long time ago. Did the situation improve from the time of that writings?

P.P.S. Are there any other type safe scala web frameworks (Don't offer Play 2.0. It's not typesafe. I don't see any reason to create it in Scala).

like image 500
Konstantin Solomatov Avatar asked Jul 04 '12 21:07

Konstantin Solomatov


People also ask

How much should a beginner start lifting?

Booker suggests women generally start with a set of two 5- to 10-pound weights, and men start with a set of two 10- to 20-pound weights.

What lifts should you start with?

Start with 5-10 lb dumbbells to get a feel for things. Whether you're starting with dumbbells or ready to move onto a barbell, it's important to do it properly! We check the form of EVERY online coaching client on their workouts so they have the confidence that they're doing these moves correctly!

How long should you lift for as a beginner?

Try starting with short workouts that are 30 minutes or less. As you feel your strength building, add a couple more minutes every week.

How many lifts should a beginner do?

To start, choose one to two exercises per muscle group, aiming for 3 sets and 10 to 12 reps as a beginner.


2 Answers

It is unfortunately true that the state of Lift documentation is uneven at best and there are huge gaping holes.

However, the Lift community is just full of awesomely helpful people.

My recommendation is not to play around, but rather to try and implement something. If you get stuck, ask specific, direct questions about what you're trying to do, how you're doing it and why it isn't working.

So far, though I would wish for better documentation, I've been able to get every answer that I needed either through Google or on the Lift mailing list - though I expect I might ask more questions here in the future.

like image 86
Donald.McLean Avatar answered Sep 25 '22 02:09

Donald.McLean


The Lift documentation is not its strong point. The philosophy is more "try and ask if you have any problem". Here are a few tips:

Assembla

One ressource that is really useful is http://www.assembla.com/wiki/show/liftweb, there are a lots of examples so you can progressively learn how it works.

Mailing List

Otherwise you can always use the mailing list if you have specific questions even if in my opinion it is really hard to explore it fast in order to solve a problem which was already encountered. http://groups.google.com/group/liftweb

Stack Overflow

Finally, a small community is present on Stackoverflow so feel free to ask in here. This is a good way of looking for answers and creating documentation in the same time.

Source code

Don't hesitate to explore the source code and the scaladoc if you have specific questions/doubts about the behavior of a function, they are often short and even sometimes commented! http://scala-tools.org/mvnsites/liftweb-2.4-M4/#package

like image 22
Christopher Chiche Avatar answered Sep 21 '22 02:09

Christopher Chiche