Readit News logoReadit News
dudeinjapan commented on Do I not like Ruby anymore? (2024)   sgt.hootr.club/molten-mat... · Posted by u/Vedor
Manfred · 4 hours ago
To make sure code loaded from gems doesn’t shadow the namespace of the application.
dudeinjapan · 4 hours ago
Right. Today Ruby has essentially a global namespace, where every defined module/class/const is put in the same "global dumping ground" and can override/"monkey patch" each other.

Ruby 3.5 will introduce a new language keyword "namespace" that scopes behavior to that namespace.

  class Foo
    def foo; puts "foo"; end
  end

  namespace Bar
    class Foo
      def foo; puts "bar"; end
    end

    Foo.new.foo #=> "bar"
  end

  Foo.new.foo #=> "foo"
Fun times.

This is intended for isolated code loading similar to "modules" in Python or ES6, but I am worried it will be abused badly. I'm also unsure whether they will add a "use Namespace" construct...

See here: https://bugs.ruby-lang.org/issues/21311

dudeinjapan commented on Do I not like Ruby anymore? (2024)   sgt.hootr.club/molten-mat... · Posted by u/Vedor
dudeinjapan · 5 hours ago
I still like Ruby. 15+ years in, I find myself in the camp of not wanting it to change. 25 year old me would have been totally jazzed about the addition of namespaces in Ruby 3.5/4.0. 40 year old me wants namespaces to get off my Ruby lawn.
dudeinjapan commented on A new poverty line shifted the World Bank's poverty data   ourworldindata.org/new-in... · Posted by u/alphabetatango
isbwkisbakadqv · 12 days ago
How do you think developing counties come up with their poverty lines? This new international number is just the median of those…
dudeinjapan · 12 days ago
There should be a universal human standard to define what extreme poverty is--i.e. the amount needed to secure food, shelter, and clothing--and then that amount should be assessed country-by-country (or region-by-region) by an independent body. The number of $3 per day is well above the "basic needs" threshold in some of the poorest countries, and well below it in the US, for example.
dudeinjapan commented on Claude says “You're absolutely right!” about everything   github.com/anthropics/cla... · Posted by u/pr337h4m
dudeinjapan · 13 days ago
In fairness I've met people who in a work context say "Yes, absolutely!" every other sentence, so Claude is just one of those guys.
dudeinjapan commented on Ask HN: With all the AI hype, how are software engineers feeling?    · Posted by u/cpt100
dudeinjapan · 15 days ago
Cursor Bot on Github feels like a significant step forward, catches tons of stupid mistakes, typos, etc better than 95% of human reviewers can. The days of needing 2 reviewers on a PR are over IMHO, allows human reviewers to focus on broader architectural decisions.
dudeinjapan commented on Open Lovable   github.com/mendableai/ope... · Posted by u/iamflimflam1
cal85 · 16 days ago
Wait is this a Lovable clone that is actually called open-lovable? That seems bold
dudeinjapan · 16 days ago
Im waiting for open-open-ai
dudeinjapan commented on Stanford to continue legacy admissions and withdraw from Cal Grants   forbes.com/sites/michaelt... · Posted by u/hhs
dudeinjapan · 16 days ago
Moving to a pure merit-based system would be a great idea IF universities were primarily designed to educate people. They are not—anyone with half a brain can get a world-class education from ChatGPT, Wikipedia, Khan Academy, and library books. Paying a university "for the education" is like paying $100,000 for tap water because it’s served in a fancy glass with a Latin motto printed on it.

Universities are cartels of prestige and access.

dudeinjapan commented on GPT-5 leaked system prompt?   gist.github.com/maoxiaoke... · Posted by u/maoxiaoke
matt3210 · 18 days ago
They get paid off by tailwind or what?
dudeinjapan · 18 days ago
The Singularity is here: AI is now writing code that is incomprehensible to humans by default.
dudeinjapan commented on GPT-5 leaked system prompt?   gist.github.com/maoxiaoke... · Posted by u/maoxiaoke
dudeinjapan · 18 days ago
Line 184 is incorrect: - korean --> HeiseiMin-W3 or HeiseiKakuGo-W5

Should be "japanese", not "korean" (korean is listed redundantly below it). Could have checked it with GPT beforehand.

u/dudeinjapan

KarmaCake day1959January 28, 2020
About
Founder & CTO at TableCheck tablecheck.com
View Original