havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
MsInput has quit [Quit: WeeChat 4.5.1]
<kjetilho> I grew up with BASIC, which stored programs as tokens rather than text. so PRINT was a specific code, which could be translated to "SKRIV" or whatever. it would be compatible across languages, you saved it to tape (or floppy) and could read it in a computer where you had selected a different main language
<kjetilho> Excel does a similar thing, they translate functions like AGGREGATE() to MENGDE() and AND() to OG() (this is Norwegian). unfortunately it was only half-way implemented, so English spreadsheets are translated to Norwegian (or other languages) - but spreadsheets stored in Norwegian are only readable in Norwegian Excel!!!
<kjetilho> so... it *would* be possible to implement this sensibly, but I have not seen a successful attempt - yet.
hd1 has quit [Quit: Client closed]
<mange> I'm not really convinced it would be possible to implement this sensibly, particularly because of what o0x1eef said: as soon as you move outside of "Ruby" into the Gem ecosystem (which is needed for most real-world software development) you run into problems. Translating things gets a lot harder once there are user-defined names involved.
<mange> Where by "user" I mean "people outside of core Ruby".
<o0x1eef> I think it could be fine if you were teaching French students, or in other specialized contexts but as a general solution I think it would cause more problems than it solves. It also helps to speak one language. Imagine if we start to have libraries in French, English, Arabic, etc. This quickly becomes a mess. I think it's actually good that there is a common language (English in this case)
hd1 has joined #ruby
TomyWork has quit [Ping timeout: 264 seconds]
s-liao-200 has joined #ruby
hd1 has quit [Quit: Client closed]
konsolebox has joined #ruby
s-liao-200 has quit [Ping timeout: 240 seconds]
s-liao-200 has joined #ruby
<constxd> based or cringe?
grenierm has joined #ruby
s-liao-200 has quit [Quit: Client closed]
konsolebox has quit [Ping timeout: 252 seconds]
grenierm has quit [Quit: Client closed]
mange has quit [Ping timeout: 276 seconds]
grenierm has joined #ruby
nmollerup has joined #ruby
user71 has joined #ruby
ua_ has quit [Excess Flood]
ua_ has joined #ruby
konsolebox has joined #ruby
balrog has quit [Ping timeout: 276 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
infernix has quit [Ping timeout: 252 seconds]
royo25 has joined #ruby
infernix has joined #ruby
royo25 has quit [Client Quit]
niv has quit [Quit: ZNC - https://znc.in]
niv has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
royo25 has joined #ruby
royo25 has quit [Quit: Goodbye cruel world]
JulioPapel has joined #ruby
TomyWork has joined #ruby
konsolebox has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
niv has quit [Ping timeout: 260 seconds]
niv has joined #ruby
niv has quit [Ping timeout: 252 seconds]
mjanssen has quit [Quit: WeeChat 4.4.3]
konsolebox has quit [Ping timeout: 245 seconds]
rindolf has joined #ruby
<rindolf> Hi all! Where is the "Rakefile"s' "Dir[]" builtin, documented?
<rindolf> hmm... there is a mysterious "binding" symbol too
niv has joined #ruby
<rindolf> o0x1eef: hi. thanks. so each and every ruby program contains these symbols in the main namespace?
<o0x1eef> Both are part of 'core' Ruby - yep
<o0x1eef> Shouldn't have to require anything for them to be available
<constxd> rindolf: yes. incredibly based, isn't it?
<constxd> embrace maximalism
<rindolf> constxd: what is "based" in that context?
<constxd> come on bro it's 2025
<llua> the age median is a bit higher on irc than say discord
<constxd> put simply, it's the opposite of cringe
<constxd> batteries included prelude: based
<constxd> import Dir from std.fs: cringe
<kjetilho> I think "based" is a very tricky word, since it seems used ironically more often than not.
nmollerup has quit [Quit: Leaving]
Thanzex02 has quit [Ping timeout: 244 seconds]
hwpplayer1 has joined #ruby
ZAJDAN has joined #ruby
<ZAJDAN> hi. in my code I pass password in system call command in plain text. Is any way how to make the password unredable?
<rindolf> constxd: i see. "too many memes. too little time"
<rindolf> ZAJDAN: have the command read from a file?
<ZAJDAN> rindolf: the command does login to database
<rindolf> not into a ps visible command line
<ZAJDAN> rindolf: what do You mean?
<rindolf> ZAJDAN: which database implementation?
<ZAJDAN> rindolf: HANA database
<constxd> if that's how the database works there's not much u can do
<constxd> like
<constxd> what is that actual command u are invoking
<rindolf> ZAJDAN: this HANA: https://en.wikipedia.org/wiki/SAP_HANA ?
<ZAJDAN> constxd: Do You want to say, that when database use for login(user/password) I can do nothing to hide the password in code?
<ZAJDAN> rindolf: yes SAP HANA
<rindolf> ZAJDAN: ah
<constxd> if the database requires you to provide the password as a command line argument, then yeah
<constxd> that would be unusual though. but then again, it's unusual to interact with a database using system() to begin with
<ZAJDAN> ruby has not such gem to communicate with HANA database
<constxd> what is the command
<constxd> W
<ZAJDAN> constxd: `./hdbsql -n localhost -u ADMIN -p MyPassword "SELECT * FROM OCRD ;"` ...for example
<ZAJDAN> https://github.com/SAP-archive/activerecord-hana-adapter ...is it just for Rails or it could be used in Ruby code also?
<ZAJDAN> but anyway I see that the gem uses yml file where is stored login in plain text
<constxd> i mean u can just copy out the parts u need
<constxd> like u wanna use ODBC to connect to the db
<constxd> then it's fine
<constxd> you can make the config file non-readable by unprivileged users
<constxd> the issue with passing it on the command line is that anybody can read procfs (using something like top(1) or ps(1) as mentioned by rindolf) and see the password there
<rindolf> constxd++ # explaining
rindolf has quit [Ping timeout: 244 seconds]
mweckbecker has quit [Quit: leaving]
mweckbecker has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
cappy has joined #ruby
JulioPapel has quit [Remote host closed the connection]
FetidToot0 has joined #ruby
FetidToot has quit [Ping timeout: 248 seconds]
FetidToot0 is now known as FetidToot
Thanzex02 has joined #ruby
JulioPapel has joined #ruby
ZAJDAN1 has joined #ruby
ZAJDAN has quit [Ping timeout: 244 seconds]
Inline has quit [Quit: Leaving]
johnjaye has quit [Ping timeout: 244 seconds]
dviola has quit [Quit: WeeChat 4.5.1]
dviola has joined #ruby
johnjaye has joined #ruby
Inline has joined #ruby
Sampersand has joined #ruby
user71 has quit [Quit: Leaving]
Sampersand has quit [Quit: Client closed]
cappy has quit [Quit: Leaving]
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
andreyuhai has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
andreyuhai has quit [Quit: leaving]