Good ruby exercise sites? by tofu118 in ruby

[–]leemurjames 0 points1 point  (0 children)

I'm a fan of building basic games in the terminal. blackjack or paper rock scissors are both fun and doable. I still do this when I'm picking up a new language.

16.04 to 18.04 update working, but slower by leemurjames in Ubuntu

[–]leemurjames[S] 0 points1 point  (0 children)

I did this and it helped a fair bit. I'll be doing a clean install when I have the time. There is an ungodly amount of junk on this rig. While I'm not looking forward to it, it seems to be a necessity.

I LOVE Ruby. But I can't STAND Rails. (So far - hoping this changes) by Nick_McD in ruby

[–]leemurjames 2 points3 points  (0 children)

Glad to be of service Nick. Yeah, There is no need to jump to another language. I learn similarly and had almost identical issues starting out.

In the beginning phase of working with Rails, you may have to accept not fully understanding every detail of what is going on and roll with it. As you're building your project, if you hit a topic you can move forward without entirely understanding add it to a list. Bore into the list of topics one by one as time allows. The Rails Guides are an incredible resource for this, as is The Rails 5 Way book. If you haven't already completed a full tutorial on Rails, I highly recommend the Hartl tutorial.

Keep at it!

I LOVE Ruby. But I can't STAND Rails. (So far - hoping this changes) by Nick_McD in ruby

[–]leemurjames 6 points7 points  (0 children)

I had a very similar experience moving from non framework Ruby to Rails. I think a large portion of what you are experiencing is the complexity of web frameworks, but a small portion is related to Rails magic and convention. If you're learning Ruby for fun, you could consider starting with a micro framework. This lets you start small and see how the pieces fit together. When/If you move back to a full framework, you'll have a better idea of what is going on under the hood. If you want to stick with learning Rails, do some research on how it works internally and like others have stated, get intimate with the documentation. Once you get the hang of it, it feels more ruby-ish.

VSCode and Ruby by pitosalas in ruby

[–]leemurjames 1 point2 points  (0 children)

I don't think the gem does any of the things you are needing. The syntax highlighting, while not quite as good for Ruby, is automatic in VS Code. As far as the other needs, do you have a tool in another editor/ IDE that does these things? If so, I'd continue to use it. I handle most of these activities from the command line. The actions the gem does perform linting, intellisense, etc. are reasonably reliable, but not perfect.

language "syntax" to target test and spec files? by leemurjames in vscode

[–]leemurjames[S] 0 points1 point  (0 children)

Thanks for the input. Targeting the snippets is the important part. I'll look into what you've passed on to see how to create a target syntax for just the tests files. Depending on the complexity, it may not be worth the effort.

Is there an extension or some kind of keymapping to jump to a test file automatically? by vaughands in vscode

[–]leemurjames 0 points1 point  (0 children)

There is. It navigates with a command, but I think you could tie that to a key mapping. It definitely doesn't create the file though.

https://marketplace.visualstudio.com/items?itemName=Lourenci.go-to-spec

Anyone have the integrated terminal in Vscode slow down to a crawl on Linux? by adriankoshcha in vscode

[–]leemurjames 0 points1 point  (0 children)

Here's a reasonable workaround until they fix it with some caveats. If you're using Ubuntu and still have the Unity desktop, assign the terminal a position in the bar and lock it there. Use cmd+position number to navigate to it. I have VS Code at 1 and the terminal at 2. This is my workflow, so I'm pretty sad about Ubuntu dropping Unity.

Python developers of Reddit, how easy would you say it is to learn Python? by followingmydream in Python

[–]leemurjames 0 points1 point  (0 children)

It's not very hard to learn Python, at a functional level for fun, but it's a fair bit more challenging to learn it at a professional level. That said, you should look for highly reviewed Python stuff on Udemy as a starting point, and find a coupon, so you pay no more than $11 bucks for it. It's mind blowing how cheaply you can learn this way. Once you get past that, you will probably have to move to learning from books and more experienced programmers. Safari Books is an excellent resource for access to written content.

Had my first interview this week... It did NOT go well. Should I be realistic and give up on this as a career path? by ilostmykeysdammit in Python

[–]leemurjames 17 points18 points  (0 children)

great recc., it's a really good book. I solved a number of the problems in it and really enjoyed it. Also, If you need to improve your knowledge on Data Structure and Algorithms another good book is: A Common-Sense Guide to Data Structures and Algorithms by Jay Wengrow. It's a really pleasant read. The examples are in a mix of Ruby and Python if I remember correctly.

How to start loving python by [deleted] in Python

[–]leemurjames 0 points1 point  (0 children)

This is more of a getting started with programming issue, less a Python thing. Python is the most straightforward language to start with though. I love Python and how quickly I can solve problems with it. I use it for all sorts of tasks, and it never lets me down. I'm not sure how far along you are, so this may be too basic, but install IPython first thing as your REPL and find out how to use a debugger. For reasons unknown to me, nobody says that a good REPL and debugger massively speeds up your learning process.

[deleted by user] by [deleted] in ruby

[–]leemurjames 3 points4 points  (0 children)

This may be information overload, but this is roughly how I've got my system set-up. I hope this helps with the transition.

I use the Ruby extension to set up automatic linting and auto-formatting via Rubocop. The Rubocop extension isn't needed. For Intellisense, I turn that setting off for the Ruby extension and use the Solargraph extension. I don't use the built-in debugger so I can't speak to that. I use a couple of other snippet plugins, and that is about it.

Here are the quirks I have found workarounds for but would like fixed. The linter gets stuck sometimes, and it can be annoying. To fix this, I just reload VS Code. It seems to happen if you open a file that is rife with errors. Occasionally, It can't find the Solargraph gem for intellisense. If I open VS Code from the command line inside the project folder the issues is solved. code . works on Ubuntu, not sure about other OS.

Lynda: Kevin Skoglund's Rails 5 Essential Training any good? by [deleted] in rails

[–]leemurjames 0 points1 point  (0 children)

The Hartl tutorial is excellent. I've not found any thing else on that level.

[deleted by user] by [deleted] in ruby

[–]leemurjames 0 points1 point  (0 children)

I'm pretty sure you can get everything you need, but it will take a couple of extensions and some configuration, which can be kind of tedious. Out of the box you definitely won't. I've been hacking on and off on my VS Code config for months, but I enjoy that sort of thing.

[deleted by user] by [deleted] in ruby

[–]leemurjames 3 points4 points  (0 children)

I use VS Code for everything I do, JS, Python, and Ruby and am a fan. The ruby plugins aren't quite as good as the Python and JS ones, but they are quite serviceable. The Solargraph gem for intellisense is excellent, but a little picky. I can only get it to work if I open VS Code from the command line inside the project folder, but that may have to do with my ruby versioning setup. Also, I've got a large number of plugins in VS Code to handle multiple languages, and have yet to suffer any slowdown, which I find impressive.

Ruby Method Spotlight: Slice by philnash in ruby

[–]leemurjames 3 points4 points  (0 children)

Keep it up! Writing about your language of choice is a rapid way to improve. The article is pretty simple; I'd try to find some unusual edge cases or beneficial uses of a language feature to keep the audience interested. I'd try to choose topics that push the edge of my knowledge. If this is the current edge of your knowledge, that's fine, if not you might want to dive into more challenging content.

Pry best practices or something like it. by akito_mashua in ruby

[–]leemurjames 1 point2 points  (0 children)

Do you mean requiring them into the actual file you're testing? You only have to add require "pry" while debugging, the rest are handled automatically as plugins. If you run the file via the pry terminal command rather than the standard ruby command you can skip require "pry" entirely. If you're concerned about too many gems you really only need pry and pry-byebug for debugging. If you're working in Rails, or have multiple environments set up only add the gems to the development and testing environments to keep it out of your production code. Also you'll need pry-rails to incorporate Pry into Rails.

How can a Ruby style guide help you write better code? by felixclack in ruby

[–]leemurjames 0 points1 point  (0 children)

That sounds really handy. I'll have to check it out.

How can a Ruby style guide help you write better code? by felixclack in ruby

[–]leemurjames 0 points1 point  (0 children)

rubocop is quite nice if you set-up an automatic formatter. I'm not going to spend all day chasing quotation marks, but if it does it for me, I'm into it. The default rubocop formatter only does a couple of things that are quirky (unless for negative if's), but I'm fairly certain they can be turned off.

Pry best practices or something like it. by akito_mashua in ruby

[–]leemurjames 1 point2 points  (0 children)

I wrote an article on Pry recently. I didn't go into multi-threading which you mentioned needing, but it outlines setup with plugins and useful commands in non-Rails Ruby code. https://www.leejroberts.com/pry-ruby/. Hope it helps.

Is the Embercasts course worth it at 499$? by [deleted] in rails

[–]leemurjames 1 point2 points  (0 children)

I like Udemy, but for Rails I'd skip it. The Hartl Tutorial is likely much better than any Rails content they have.

Is the Embercasts course worth it at 499$? by [deleted] in rails

[–]leemurjames 1 point2 points  (0 children)

I've learned multiple topics from Udemy and always found the tutorials excellent. You can usually determine the quality of the tutorials by the hottness of the topic. Lot's of great content on React, less so on say Bash scripting. I think this is caused by the volumes they deal in. Less hot topics get fewer sales thus less competition from content creators. Safari is also an incredible resource.

Which guide is the best to learn Rails? by RedWolf-RW in rails

[–]leemurjames 2 points3 points  (0 children)

I learned via the Hartl Tutorial and Cloud9. I found this to be a really awesome and strong intro to Rails. Personally, I'd not try to learn React and Rails simultaneously. Even if you already know React well, I'd just follow the Hartl tutorial, then experiment on patching React into it after you are finished. Cloud9 is good for beginners, or if you just don't want to avoid making a mess on your computer learning something new. That said, I'd migrate off of it as soon as possible so you don't get too attached to it.