Should I ignore SCSS? [closed] - ruby

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I consider myself and excellent CSS writer. Lately, I have had some requests to code in SCSS. However, I don't run Ruby in my environment and am weighing whether I should deal with that overhead. And yes, I know there are some work arounds to compile the SCSS.
So, should I go out of my way to learn and support SCSS, or should I consider it strictly a Ruby gem that has nothing to do with what I do?
Further, since most of my work runs goes on LAMP environments, what is the utility unless I have a client running Rails?

The syntax is not that different, and there are online converters that can do the work for you. I would say that you should go for it.

I think scss is a lot better then css. You can write your css file very easy.
Take a look at the website of Sass, there are a lot of examples which are making you writing css much more easier. When you take a look at these, you will see that too.
Here is the link: Sass to the website.
My opinion: go for it!

I also consider myself a fairly proficient CSS (writer? coder?). I've thrown SCSS out the window because I don't see the benefit. Honestly I just don't really understand what problem it solves.
I group it with the similar "coffee". My response to both of those (not necessarily directed towards you) is:
Listen, we don't need more abstraction. Learn Javascript, Learn CSS. You can take those skills with you. Pretty soon we'll just have a one-click button to build our yet-another-blog-system, pat ourselves on the back and call ourselves programmers.
Anyway, I like your thinking. I say flex your CSS muscles and stay in shape :)

Related

What are the common / noteworthy uses of meta programming in Ruby? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've been working with Ruby and many of it's web frameworks for about a year now.
I am aware that rails is built largely using 'meta-programming'. And while I have tried to inspect the source, often not all of it makes sense.
I tried to publish a small gem, and used a few methods like _send, instance_eval, class_eval which was cool but as a general principle we are told to stay far away from eval in it's various forms.
Other programming constructs I know where I can use. Like data serialization in applications or where I can / should implement the Builder Pattern when making web apps.
My question is in two parts:
What are the common or apt use cases / programming problems for which meta-programming is used?
When using the meta-programming bits of ruby, what are the best practices that I should follow?
Have you ever used attr_accessor? Then you have used metaprogramming: it is a method that generates methods.
I have found that meta-programming is largely the domain of library APIs. Often you won't use much of it directly when creating an end-user application. But you can be sure, the many gems your application depends upon do use it extensively. Rails is a perfect example. It uses a great deal of Ruby's meta-programming chops to make all that Rails magic possible.

Slightly Different Take on Being a Ruby Newbie [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I've been banging around with Peter Cooper's excellent book, as well as a few other resources in order to get a foothold in Ruby; now I'd like to go a step further. I'm wondering if I could reinforce what I've learnt by looking at code snippets/basic programs that are simple to follow but also educational for the pre-intermediate.
So, if anyone can recommend some examples that will help someone with a general grasp of syntax, but shows how to create or implement an idea, I would be very grateful. What I'm looking for is something that I can take apart and put back together again in order to get to grips with a concept.
I apologize if this all sounds a bit wooly, but I learn through repetition so the more examples the better. I've been using free online courses, to supplement my learning, but I'm looking for something I can play about with on Ruby when I don't have internet access.
Thanks for taking the time to read this, and I look forward to hearing from you.
I suggest to take a look at RubyMonk site. It's interactive ruby tutorials to learn Ruby intended for the beginners. It's free, so if you want to learn to code in Ruby it's a great place to start. Although it's a online course reminiscent of famous 'try ruby' I believe that would be helpful for you, because it contains a bunch of interesting and sometimes twisted examples and exercises for beginners. And yet another helpful resource - this git repository that contains various tasks and their solutions.
For improving knowledge what you got from courses or books, I've would recommend you these sites with set of interesting challenges: rubyquiz, puzzlenode
You need to go through rubykoans

What non-trivial Ruby applications exist? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
What publicly available open source Ruby applications (not frameworks) exist apart from web applications?
This question is similar to Ruby off the rails , except that's about anecdotes of what Ruby applications they've created, which aren't necessarily publicly available.
These applications should be non-trivial: ideally multiple committers, with well-designed code to handle the complexity of their task.
One example would be the Metasploit Project.
Background: Asking in response to Framework for non-web Ruby project, where I realised that I haven't seen any examples of Ruby applications that aren't one-person projects.
Take a look at Chef. This Ruby project is becoming the de-facto tool for managing cloud architectures.
Have you seen hackety hack? Non-trivial, but you will find plenty of interesting ideas in the source code if you're adventurous. Being written by _why, it's pretty fanciful.
There are a number of Mac OS X applications written in Ruby-Cocoa (LimeChat is an example; I think Colloquy used to be, though its website implies that that may have changed).
As far as not seeing Ruby projects by more than one person...huh? True, most open-source Ruby development these days seems to be in the Rails world, but within that community there are lots of huge projects with many developers.
You might ask this question on the Ruby mailing list; you'll almost certainly get more good answers.

Any good Ruby console application gems out there? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm digging around trying to find a good set of tools for creating console applications, as most of the settings I expect to be using Ruby in the coming months won't be webapps, but server-side scripts.
I know of highline, and I do plan on using that for user and possible password prompts, but I know that the Console application world should be chock-full of other gems to assist and/or enrich your plain 'ol command-line apps.
Does anyone have some good suggestions? I'm not exactly sure what I'm really looking for, but I wouldn't be surprised if there were gems in Ruby to help with colorizing, ascii-like art, user-interaction (similar to bash-completion), man-page similar tools (or generators) or just helpers for making the work of creating a richer console app not come across as being so difficult to understand, or plain and cryptic.
Here's some console related gems I've written you may like:
bond - Custom readline autocompletion of methods, arguments and more.
hirb - Framework for formatting ruby objects. Comes with tables, trees, selection menus and a smart pager.
alias - Creates, manages and saves aliases for class methods, instance methods, constants, delegated methods.
My table_print gem lets you see IRB output in easy-to-scan table format. Super simple, lightweight, customizable. http://tableprintgem.com

Any decent weblogic tutorial? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We are migrating an application from Tomcat to WebLogic. There are many things we just don't know about. Is there any decent tutorial out there?
We know about this but I'd like to read about experiencies, and/or processed information.
Thanks in advance.
Ok, I'm late, but I'm going to share the two tutorials I'm following, since I would have found helpful to have those right away.
http://www.scribd.com/doc/6339325/Weblogic-Tutorial
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
WebLogic is a complex, enterprise-level product. I believe Oracle is making a pretty good attempt at explaining it in the intro doc: http://download.oracle.com/docs/cd/E12839%5F01/web.1111/e13752/toc.htm. You can follow the links to get to the detailed documentation of the features that interest you.
If that's not to your liking, Amazon has books like e.g.
http://www.amazon.com/Professional-Oracle-WebLogic-Server-Programmer/dp/0470484306
It depends a lot on your app, but if you can deploy it in tomcat, I'd be surprised if you couldn't deploy it in WebLogic.
Having said that, I certainly hope you have a good reason for using WebLogic (and I hope that reason isn't "The sales guy said it's awesome"). In my admittedly limited experience with WebLogic, I've found it to be a huge pain to use and impossible to troubleshoot if something goes wrong (and it will go wrong).
On the other hand, I have lots of experience with Tomcat, which is dirt-simple to use and easy to troubleshoot (not that you need to troubleshoot, since it pretty much just works).

Resources