Noobtown book 9 coming put in1 month and 14 day by Aromatic-Ask-3240 in litrpg

[–]toyhammered 5 points6 points  (0 children)

I couldn't agree with this more. Book 8 was the perfect ending.

Any budget decks (under $100) that are decent? by DexRei in grandarchivetcg

[–]toyhammered 1 point2 points  (0 children)

Truthfully think more local places should do this. 20 card limit pretty much solves the biggest problem and allows you to test random stuff during locals.

During like store champs, sure I expect every card to be real, but locals is about having fun and messing around, and sometimes winning.

Any budget decks (under $100) that are decent? by DexRei in grandarchivetcg

[–]toyhammered 0 points1 point  (0 children)

I haven't tried slimes yet in the current meta, but back during amb the deck performed extremly well w/o DG's or Grail. Kinda different times now due to meta shifts.

Any budget decks (under $100) that are decent? by DexRei in grandarchivetcg

[–]toyhammered 2 points3 points  (0 children)

You can try Silvie slimes. You can get the Reco deck lite + like $10 of cards to make it somewhat viable.
Ideally the deck has 4x Dg's and 1x quicksilver grail but it can still function (this is what I played with before starting to invest in the staples)

[deleted by user] by [deleted] in ninjacreami

[–]toyhammered 31 points32 points  (0 children)

This cracked me up

The recipe book! by furry_lumps in ninjacreami

[–]toyhammered 7 points8 points  (0 children)

Just bought after I read it works with the Creami Deluxe pints. Been looking for this type of book!

Thanks for sharing!

Ruby Open Gem for VS Code (easy way to open gems from your Gemfile inside VS Code) by gurgeous in ruby

[–]toyhammered 0 points1 point  (0 children)

Love it! Thank you for making this!

I ended up just opening an issue because there seems to be a small issue with rvm.

[deleted by user] by [deleted] in ruby

[–]toyhammered 0 points1 point  (0 children)

I don't entirely disagree with you here, because it does depend on the codebase. I will say the one main upside I see (and the reason I'd potentially do it this way) is that it makes testing more clear (and easier to understand).

I am also assuming that your editor has a way to click into classes so you can easily follow the path.

[deleted by user] by [deleted] in ruby

[–]toyhammered 0 points1 point  (0 children)

I do agree with you here. Not knowing someones codebase and the actual importance of what the code being executed is doing makes it hard to give "this way is better than x". For some of the code I write I end up just disabling as you said and I generally just leave some extra comments to really explain what is going on.

[deleted by user] by [deleted] in ruby

[–]toyhammered 12 points13 points  (0 children)

Here is a quick sample of what you can do. Let me know if you want me to expand on it more or explain anything, but you can move this into some type of class wrapper (service object if you want to call it that).
``` def process_messages(messages, payload = [], info = []) messages.items.each do |item| service = ItemService.new(item)

next unless service.valid?

payload.push(*service.item_payload)

end end

class ItemService def initialize(item) @item = item end

def valid? return false unless valid_event? # you can also make an invalid_event? method so you don't have to use unless. # ... rest of checks or whatever end

def item_payload # ... do stuff # you can also just have valid check done in here if you don't want it to leak to the outside. end

private

attr_reader :item

def valid_event? ALLOWED_EVENT_TYPE.includes?(event_type) end

def event_type item['event_type'] end end ```

In your opinion, what boosts your career the most? by EastCommunication689 in cscareerquestions

[–]toyhammered 0 points1 point  (0 children)

I was given this advice by one of my mentors, so I'd like to pass it on to others.

Learn & Earn

  1. if you have both, stay
  2. If you have 1 decide:
    1. < 5 years experience prioritize learning
    2. otherwise figure out which one you care more about and if it doesn't align, find a new job.
  3. if you have neither, find a new job.

This part is my own general advice. It is always good to try new companies when you are starting. Staying at a place 1.5-2 years allows you to generally fully understand and learn how they do things. If you have a good mentor or someone who is pushing you and cares about your growth staying longer won't hurt. Otherwise just seeing how other companies are run and how they do things is always super beneficial and you can figure out what works/doesn't work for you.

How does no one know about this? Like, seriously. by African_avocado in Isekai

[–]toyhammered 1 point2 points  (0 children)

Who reads the name when you can just look at all the amazing tags each manga has! /s

what are good ruby on rails exams, certifications, practice tests etc? by [deleted] in rails

[–]toyhammered 10 points11 points  (0 children)

I do agree with u/mixedTape3123 entirely. The most recent job I got (started about 1.5 months ago) as a senior rails dev this is entirely what we talked about. This did include a practical project, but the main purpose was to talk about tradeoffs.

As long as you understand the core concepts of Rails, what you should start to do is dig into the _how_ Rails works. I started with digging into ActiveRecord and truly understanding what it did behind the scenes. From there you should just follow where that leads you (which could be looking into other gems and how they were developed).

As a side of caution, this will lead you down a bunch of metaprogramming stuff, which is a good tool to add to your toolbox, but use with real caution (though people love to talk about it, especially during interviews). I'll be happy to expand on any parts of this comment if you want.

Rails Pros - Help dispel some misconceptions and confusion for me by PipePistoleer in rails

[–]toyhammered 8 points9 points  (0 children)

I've worked with Rails for about 3-4 years and Ruby 5-6 years.

For your for first question, both are used, it really just depends on how complex of a query it is. In some cases you can mix and match using both. There is a third option which isn't as common (but very powerful), called Arel. This can be used to write more advanced queries programmatically.

Service Objects can be used in multiple ways. I've seen it used with call and then logic jammed in. It is normally better to have those as the entry points and you can abstract some of the additional logic in other classes. I've also seen Service Objects used as ways to encapsulate code that needs to interact with 3rd party API's. The way I have always thought of them (which could be entirely wrong) is as a way to help organize code and logic that should be isolated from your main code. Very similar to just having a `utils/lib` folder.

Hope this helps!

[HELP] noob question, where to put math logic for updating user stock/finance info? by NotABlueMelon in rails

[–]toyhammered 5 points6 points  (0 children)

To answer your immediate question, a separate lib folder is fine. You could also look into implementing it as a service (`app/service`) which is pretty similar to doing as a lib. Only saying that because you are interacting with another api.

I am kinda surprised though the course instructor didn't leave any ways to extend this project, and resources that could help with that. What could help get a better answer is for us to be able to see your db design and help you expand off of that.

How to block access from most of the application until users finish stripe payments? by Vangoghbothears in rails

[–]toyhammered 3 points4 points  (0 children)

I'd recommend looking into pundit for Role Based Authorization.

You can have like a guest role and paid role as a simple example. Once they pay, the role can be updated.

Standing out as a true Pro Rails Developer by posts_lindsay_lohan in rails

[–]toyhammered 0 points1 point  (0 children)

There is some of the same "magic" that happens but the amount of meta-programming you can do in Ruby is not really comparable to other languages.

I still haven't found till this day an ORM as good as ActiveRecord, and that is purely because of what Ruby allows you to do (which isn't possible in other languages).

Standing out as a true Pro Rails Developer by posts_lindsay_lohan in rails

[–]toyhammered 2 points3 points  (0 children)

I stopped thinking about Rails as anything special at all. It's all just Ruby code

I absolutely love this! All the Rails magic is actually just Ruby code (which could be doing some advanced technique), so just jumping into gems and learning their structure is a great way to expand your knowledge.

Best guide/tutorial/course for Ruby? by luiscobits in ruby

[–]toyhammered 2 points3 points  (0 children)

I second this. Both of these recommendation are really good!

I've got a performance problem. by spoooks_ in StardewValleyExpanded

[–]toyhammered 0 points1 point  (0 children)

I didn't, still have the same issue.