<cxl>
Hi all, is there a way in Ruby to not error if a property doesn't exist? i.e. if I have `my_obj.something["prop"].value` but `my_obj.something["prop"]` is nil, I just get nil for the `.value` instead of an error?
<cxl>
basically something less clunky than `defined?(my_var) ? my_var : nil`
luna has left #ruby [#ruby]
roadie has quit [Quit: ERC 5.5 (IRC client for GNU Emacs 29.0.90)]
howdoi has quit [Quit: Connection closed for inactivity]
gemmaro has quit [Remote host closed the connection]
gabrielcsf has joined #ruby
Linux_Kerio has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
markong has quit [Ping timeout: 246 seconds]
Sankalp has quit [Ping timeout: 255 seconds]
safema91 has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-dev]
hightower2 has quit [Ping timeout: 240 seconds]
safema91 has quit [Ping timeout: 255 seconds]
nmollerup has quit [Ping timeout: 264 seconds]
<cxl>
gr33n7007h: thanks
<adam12>
ox1eef_: I haven't noticed it being quieter.
<adam12>
(the Ruby job market)
hightower2 has joined #ruby
<rapha>
my old job just ended and then i put up a profile on a job website thinking you won't find anything with ruby, so trying to stress that in the past i've also done some python and js ... HR lady writes, interview ensues, and they're like "we were interested in you because you did ruby in your last job". i was like ... "oh!"
<adam12>
Generally, my challenge is fighting corporate bloat. Another middle manager suggesting a rewrite or some rediculous tech.
<adam12>
Ruby+(Rails/Hanami/Sinatra/whatever)+Unpoly+Postgres is an insanely productive combination. I might even sub Postgres for Sqlite if I'm feeling saucy.
<adam12>
rapha: Nice. I won't link client work, but it involves PaaS, physical rack hardware, insurance investigations, and a bunch of other stuff. Mostly Roda+Sequel+Unpoly.
<Pastorinni>
My current company is hiring only ruby, at least here the market for ruby is hot.
<rapha>
(with this client i'm explicitly allowed to link ... they're actually happy about it, in the hopes that someone might get curious about the language, which is an endangered one, adam12)
<rapha>
what's PaaS?
<adam12>
rapha: Platform as a Service. Like Heroku.
<rapha>
oh ok
* rapha
googles Unpoly
<rapha>
my new job won't be this sexy. right now they're wanting me to learn node/yarn/react/redux, none of which i have any clue about whatsoever. i'm guessing they need me to be more "full stack" in hipster lingo.
<rapha>
oh. unpoly kind of compares to react. looks a hundred million times less wtf tho.
<adam12>
I'm bullish on web components. I generally just add a tiny webcomponent for any new functionality I need that Unpoly doesn't cover.
<rapha>
hernan: ANYthing but angular and react i guess. Vue looks more reasonable, too.
Guest19 has quit [Client Quit]
<rapha>
what does it mean to be "bullish", adam12? as in, not wanting to yield to anyone or anything?
<adam12>
rapha: I'm in favour of it more than any other frontend rendering tech.
<rapha>
browsers were meant to do html, originally. not to be IDEs with a preview pane.
<adam12>
rapha: Jared White of Bridgetown.rb fame said "don't bet against the browser", and I'm inclined to agree. Webcomponents are only going to become more powerful, and are browser built-in, which gives them a lot stronger staying power.
<adam12>
I used to write Knockout, Angular, and Riot....
* rapha
googles bridgetown.rb, knockout and riot
<adam12>
Svelte is interesting because of the compiler, but I was just talking to someone about it and they said the compiler times were killer.
<adam12>
KnockoutJS and RiotJS, FYI.
<rapha>
"killer" is "bad" or "good"?
<hernan>
whatever gives the same result with less coding and more simplicity... angular in my opinion is the worst (it complicates everything)
<rapha>
hernan: hence your opinion about svelte? it reduces complexity?
<adam12>
rapha: bad.
<hernan>
however the crowd follows the hype.. and google backed tech is a real hype
<adam12>
hernan: Yeah, exactly. Unpoly for me solves so many issues. Enough that I became a contributor/maintainer. Basically, write little to no JS. Embrace server side rendering.
<hernan>
rapha: yes, its a lot simpler than others.. you can probably learn it in 10 minutes
<hernan>
(svelte)
<rapha>
hernan: the new employer i mentioned, they just basically take on every project a client struggles with. if needed, they hire people who have expertise. and from what i've seen in the first two weeks, it's a wild, wild zoo. angular/react/vue. java/c#/ruby/js. django/rails/plone. the worst is js build tools ... i can't even count the number of js build tools i've encountered in just 10 days there.
<adam12>
The worst part of frontend for me, currently.
<adam12>
I try to get away with just esbuild if I can help it. But if I need to bring in anything else (like postcss), things become super frustrating..
<rapha>
makes one wonder if it wouldn't be better for javascript if there was only one single browser owned by one single entity and that came with its own build-in framework of some kind.
<rapha>
built*
<adam12>
I'd say that's webcomponents, since they are adopted by most popular browsers.
<adam12>
Some have mused about replacing HTML... like Hyperview.
<rapha>
oh
shokohsc1 has joined #ruby
shokohsc has quit [Ping timeout: 248 seconds]
shokohsc1 is now known as shokohsc
<hernan>
haha big shit... the best thing about browsers, real browsers (pc ones) is that they were initially insecure, and have grown to become secure.
<hernan>
all the new mobile shit is an insecure browser by default.. it can access/inspect local files... and monitor the user
<hernan>
smart devices are insecure by default
<hernan>
it blocks the smart bit from the user and inserts the smart bit into the mobile.. so the apps can pratically do whatever they want to do.. and the user cant do anything about it
nmollerup has joined #ruby
<hernan>
user can block some app permissions but then that blocks some features and renders the app "useless"
<weaksauce>
man if the speed of the examples page on svelte is any indication of things...
<weaksauce>
slow af
<hernan>
slow?
<hernan>
how so
<weaksauce>
just going from one example to the next takes like 5 seconds
<hernan>
not here
<hernan>
here takes like .5 seconds
<weaksauce>
might have just been server load
<weaksauce>
it's fast now
mollerup has joined #ruby
nmollerup has quit [Ping timeout: 255 seconds]
molle has joined #ruby
Guest25 has joined #ruby
mollerup has quit [Ping timeout: 255 seconds]
Guest25 has quit [Client Quit]
Evertonlc has joined #ruby
otisolsen70 has quit [Quit: Leaving]
Guest51 has joined #ruby
Guest51 has quit [Client Quit]
_ht has quit [Quit: _ht]
teclator has quit [Ping timeout: 240 seconds]
vinibispo has joined #ruby
raph has joined #ruby
Guest5243 has joined #ruby
cassolas has joined #ruby
Guest5243 has quit [Client Quit]
vinibispo has quit [Client Quit]
<cassolas>
Does anybody here?
<lena64t1>
Yes
lena64t1 is now known as lena64t
Linux_Kerio has joined #ruby
<adam12>
cassolas: hello
<Pastorinni>
cassolas: hi!
<hernan>
las cassolas !
RDSM has joined #ruby
vinibispo has joined #ruby
Guest14 has joined #ruby
<ox1eef_>
adam12: On weworkremotely.com there are only 6 Ruby postings. But far more postings in other languages.
Guest14 has quit [Client Quit]
RDSM is now known as foobartest
foobartest has quit [Client Quit]
roadie has quit [Remote host closed the connection]
RDSM has joined #ruby
roadie has joined #ruby
Pastorinni has quit [Remote host closed the connection]