+ 14

Been doing some Python->Ruby porting...

Porting is really cool, you already have all the concept thought through and just have to fit the new syntax to it :) Check out my latest codes ported from Python to Ruby, I hope they will come in handy soon when Ruby is in the challenges! ;) https://code.sololearn.com/c0JtSdjYN2Oc/?ref=app https://code.sololearn.com/ct4ZSDbiKcj2/?ref=app https://code.sololearn.com/c4TIHMk6zhHL/?ref=app https://code.sololearn.com/cJcosYmOLSBh/?ref=app https://code.sololearn.com/cvwW60zuyRA5/?ref=app

28th May 2017, 11:50 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
6 Réponses
+ 7
Nice, Kuba! Thank you for this! 👌 I get that we tend to love 1 programming language more than other ones and we stick to it. But I've learned that it's really important not to rely on one programming language forever, because we never know if tomorrow there will be licensing or efficiency problems and big companies decide to change their whole structure. For instance, Google just moved from Java to Kotlin (for Android), and Wordpress is also transitioning from PHP to JavaScript. It's nice to see you coding in Ruby, I'm trying to learn it more, I like it, it's similar to Python (in syntax)😊💜
31st May 2017, 9:15 PM
Pao
Pao - avatar
+ 6
"A real engineer builds bridges..." [seen online, happen to think of it as the necessary skill for porting] :)
28th May 2017, 10:22 PM
Kirk Schafer
Kirk Schafer - avatar
+ 5
Yes, this is why I love one-liners in Python - you can apply methods to objects, which are objects themselves, relating to other methods of objects' methods' objects :)
31st May 2017, 4:19 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
¡Gracias, Paola! To be honest that was only a simple excercise to check if I am able to switch, if needed. I will stick to Python anyway, as I need it for my data science stuff and it is much cooler than R or Matlab. Anyway, it was fun to play with it a little bit ;)
1st Jun 2017, 8:42 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
Yeah, that was fun :) I am still gonna stick to Python, though 🐍
31st May 2017, 3:46 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
I've been having fun with Python, like the fact that booleans, even numbers are objects... print(dir(1))
31st May 2017, 4:07 PM
Kirk Schafer
Kirk Schafer - avatar