Artwork

Andrew Mason and Julie J에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Andrew Mason and Julie J 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.
Player FM -팟 캐스트 앱
Player FM 앱으로 오프라인으로 전환하세요!

Common Pitfalls for Junior Ruby on Rails Developers

30:22
 
공유
 

Manage episode 353569952 series 3375882
Andrew Mason and Julie J에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Andrew Mason and Julie J 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.

[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:

Honeybadger

Avo

Links:

Andrew Mason Twitter

Andrew Mason Website

Julie J. Twitter

Julie J. Website
ChatGPT

Shoulda

Use Factory Bot’s build_stubbed for a Faster Test Suite-thoughtbot

How to use Fabricate-gem to generate objects? -Stack Overflow

User Impersonate

Safari Menu Bar Theme Color Match

ActiveSupport::CurrentAttributes

Draper: View Models for Rails

  continue reading

69 에피소드

Artwork
icon공유
 
Manage episode 353569952 series 3375882
Andrew Mason and Julie J에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Andrew Mason and Julie J 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.

[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:

Honeybadger

Avo

Links:

Andrew Mason Twitter

Andrew Mason Website

Julie J. Twitter

Julie J. Website
ChatGPT

Shoulda

Use Factory Bot’s build_stubbed for a Faster Test Suite-thoughtbot

How to use Fabricate-gem to generate objects? -Stack Overflow

User Impersonate

Safari Menu Bar Theme Color Match

ActiveSupport::CurrentAttributes

Draper: View Models for Rails

  continue reading

69 에피소드

모든 에피소드

×
 
Loading …

플레이어 FM에 오신것을 환영합니다!

플레이어 FM은 웹에서 고품질 팟캐스트를 검색하여 지금 바로 즐길 수 있도록 합니다. 최고의 팟캐스트 앱이며 Android, iPhone 및 웹에서도 작동합니다. 장치 간 구독 동기화를 위해 가입하세요.

 

빠른 참조 가이드

탐색하는 동안 이 프로그램을 들어보세요.
재생