با برنامه Player FM !
Common Pitfalls for Junior Ruby on Rails Developers
بایگانی مجموعه ها ("فیدهای غیر فعال" status)
When? This feed was archived on October 11, 2025 21:10 (). Last successful fetch was on June 06, 2024 13:47 ()
Why? فیدهای غیر فعال status. سرورهای ما، برای یک دوره پایدار، قادر به بازیابی یک فید پادکست معتبر نبوده اند.
What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.
Manage episode 353569952 series 3375882
[00:01:29] Julie and Andrew tell us what the hardest part of learning Rails was for them.
[00:02:03] Andrew explains what to test and not to test, provides examples, and mentions the Shoulda gem.
[00:04:48] Julie wonders if there’s a way create data in your tests without adding to the database and Andrew explains using Factory Bot’s build_stubbed.
[00:07:54] Fabricate gem is brought up since Julie uses that and she wonders how to name the variables for the stubs and mocks.
[00:11:11] Have you ever modified data in production, and do you know about Sandbox command? Julie has used it and Andrew tells us why you should use it.
[00:13:32] Julie wonders if there’s anything she needs to be concerned or careful with using that Sandbox flag.
[00:14:40] Andrew “the cowboy coder” shares what he did with modified data in production.
[00:16:21] Impersonation is explained as Andrew shares his tip to have a different colored nav bar, Julie explains how she added colors on each Chrome bar for her kid’s accounts, and there’s a new color thing in Safari where it modifies the appearance.
[00:18:17] The topic of using a ton of instance variables and not using enough objects is discussed, and if you’re using current users instance variables, check out CurrentAttributes.
[00:21:39] What is a Decorator and how do you wrap a post in it? Andrew talks about a Decorator gem called Draper, explains what a service object does, and where he puts it in his directory.
[00:27:19] We hear some other examples of a Service Object, and one is using it to create a Zoom session.
[00:28:21] Julie wonders what happens if you’re working with someone who is strongly passionate against what you are strongly passionate about, and code keeps getting moved around or shifted because of that.
Panelists:
Andrew Mason
Julie J.
Sponsors:
Links:
Use Factory Bot’s build_stubbed for a Faster Test Suite-thoughtbot
How to use Fabricate-gem to generate objects? -Stack Overflow
Safari Menu Bar Theme Color Match
69 قسمت
بایگانی مجموعه ها ("فیدهای غیر فعال" status)
When? This feed was archived on October 11, 2025 21:10 (). Last successful fetch was on June 06, 2024 13:47 ()
Why? فیدهای غیر فعال status. سرورهای ما، برای یک دوره پایدار، قادر به بازیابی یک فید پادکست معتبر نبوده اند.
What now? You might be able to find a more up-to-date version using the search function. This series will no longer be checked for updates. If you believe this to be in error, please check if the publisher's feed link below is valid and contact support to request the feed be restored or if you have any other concerns about this.
Manage episode 353569952 series 3375882
[00:01:29] Julie and Andrew tell us what the hardest part of learning Rails was for them.
[00:02:03] Andrew explains what to test and not to test, provides examples, and mentions the Shoulda gem.
[00:04:48] Julie wonders if there’s a way create data in your tests without adding to the database and Andrew explains using Factory Bot’s build_stubbed.
[00:07:54] Fabricate gem is brought up since Julie uses that and she wonders how to name the variables for the stubs and mocks.
[00:11:11] Have you ever modified data in production, and do you know about Sandbox command? Julie has used it and Andrew tells us why you should use it.
[00:13:32] Julie wonders if there’s anything she needs to be concerned or careful with using that Sandbox flag.
[00:14:40] Andrew “the cowboy coder” shares what he did with modified data in production.
[00:16:21] Impersonation is explained as Andrew shares his tip to have a different colored nav bar, Julie explains how she added colors on each Chrome bar for her kid’s accounts, and there’s a new color thing in Safari where it modifies the appearance.
[00:18:17] The topic of using a ton of instance variables and not using enough objects is discussed, and if you’re using current users instance variables, check out CurrentAttributes.
[00:21:39] What is a Decorator and how do you wrap a post in it? Andrew talks about a Decorator gem called Draper, explains what a service object does, and where he puts it in his directory.
[00:27:19] We hear some other examples of a Service Object, and one is using it to create a Zoom session.
[00:28:21] Julie wonders what happens if you’re working with someone who is strongly passionate against what you are strongly passionate about, and code keeps getting moved around or shifted because of that.
Panelists:
Andrew Mason
Julie J.
Sponsors:
Links:
Use Factory Bot’s build_stubbed for a Faster Test Suite-thoughtbot
How to use Fabricate-gem to generate objects? -Stack Overflow
Safari Menu Bar Theme Color Match
69 قسمت
همه قسمت ها
×به Player FM خوش آمدید!
Player FM در سراسر وب را برای یافتن پادکست های با کیفیت اسکن می کند تا همین الان لذت ببرید. این بهترین برنامه ی پادکست است که در اندروید، آیفون و وب کار می کند. ثبت نام کنید تا اشتراک های شما در بین دستگاه های مختلف همگام سازی شود.