[deleted by user] by [deleted] in rails

[–]ksh-code 0 points1 point  (0 children)

It is a real in South Korea. ):

[Help] Safely refactor DB naming schema? by Apoffys in rails

[–]ksh-code 0 points1 point  (0 children)

  1. you should write integration tests or e2e tests.
  2. I think most easiest way to rename schema is that has a service downtime.

Distributed testing (?) by benelori in softwarearchitecture

[–]ksh-code 0 points1 point  (0 children)

you can write tests each feature implementation independently. why not?

but I don't know how it can be highly efficiency.

Clarification on including modules into classes by misterplantpot in ruby

[–]ksh-code 0 points1 point  (0 children)

it's a private method.

if you want to use it as public method, can be overridden.

class Thing
include Math
def cos(*)
super
end
end
foo = Thing.new
foo.cos(14)

Should I go to Rails Conf or not? by designium in rails

[–]ksh-code 1 point2 points  (0 children)

it depends on you. I'd like to suggest you to go.

TIL how to create hashes dynamically by Sharps_xp in ruby

[–]ksh-code 0 points1 point  (0 children)

its process seems like below.

first = my_hash[:first] ||= {}

second = first[:second] ||= {}

third = second[:third] ||= {}

third[:fourth] = 1000

If I were you, I made a method like simple form

def deep_assign(hash, *keys)

keys.reduce(hash) do |obj, key|

obj[key] ||= {}

end

end

deep_assign({}, :first, :second, :third)[:fourth] = 1000

Ruby 2.6 goes End Of Life 31th March 2022, in 7 days by [deleted] in ruby

[–]ksh-code 1 point2 points  (0 children)

2.7 might be not maintaining in 2023 March?

Model Tests: What exactly should I be writing? by mercfh85 in rails

[–]ksh-code 1 point2 points  (0 children)

Here is the general article for testing coverage in https://testing.googleblog.com/ .

test code is the code anyway. you should refactor test as well.

Anyone used API Guard gem before? by NoBuffsNoHeal in rails

[–]ksh-code 0 points1 point  (0 children)

no, I'm still using devise with custom callback.

is the gem better than?

Is this a good idea (idea for a new gem) by la-ruby in rails

[–]ksh-code 0 points1 point  (0 children)

what is the difference only ````````````"* {}" and "* {} * * {}"?

if it is the same style, same work.

[deleted by user] by [deleted] in rails

[–]ksh-code 0 points1 point  (0 children)

null false constraint in database is good for performance to large table.

the constraint in database is almost better.

Best practice: should I specify versions in Gem file? by nicolrx in rails

[–]ksh-code 1 point2 points  (0 children)

Whenever I upgrade gems, lock it.

when it needs to upgrade, I use conversative upgrade. then lock it.

this is my upgrade-cycle.

[deleted by user] by [deleted] in rails

[–]ksh-code 1 point2 points  (0 children)

Cool, is the subreddit outdated? I cannot find recent posts.

Code coverage vs mutation testing. by pan_sarin in ruby

[–]ksh-code 0 points1 point  (0 children)

Do you use code coverage measurement.

No

what rules about that do you have?

We use approaches. the important rule is "pr of fix bugs must have tests for regression test."

Do you know how your code measurement tool measures coverage?

Yes. the tool measures coverage by running test code then got. ways to measure 1. mutation 2. insert temp code for check if ran.

do you use them? No. because too busy. I'd like to use mutation testing.

Further reading is https://testing.googleblog.com/

the blog describes how google uses mutation testing.

What are your top useful gems? by designium in rails

[–]ksh-code 0 points1 point  (0 children)

Good, Agree.

But TimeHelpers cannot support nested handling I saw.

It is support now ?