Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "ruby"
-
So I just wrote a Ruby script to encrypt some files in AES.
I started it, it's designed to show the key when it's finished. It encrypted 7 files, then Kaspersky pops up and deletes my entire Ruby installation.
okeh29 -
My friend just started RUBY.
He read somewhere " Ruby is used commonly in rails ".
He now thinks RUBY is for programming trains and station related stuff.15 -
Skills: JavaScript, PHP, Ruby, Python, Java, C++, Go, Perl
Meaning: I wrote"Hello world" in each of these.14 -
Someone advised him that WP runs faster on Ruby.
Now, he wants me to port WordPress to RubyOnRails !!!17 -
Best: the tool that works for the job.
Worst: the tool that doesn’t.
Example: Ruby is great for scripts and web dev, but simply doesn’t work for graphics engines.
Example: SQL is great for fetching data (etc.), but it is absolutely terrible for business logic.
Example: XSLT is great for lowering your faith and your will to live, but it is absolutely awful for literally every other purpose.21 -
"Why can't I just get the terminology right in my head"
java: map.
javascript: object?
python: dictionary!
ruby: HASH!
php: aSsoCiaTiVe aRrAy14 -
This Valentine's day
I am gonna make a commitment
To learning Ruby
I don't have a girlfriend though...😕11 -
Most hated language features?
PL/SQL:
• it exists
XSLT:
• it also exists
PHP:
• it still exists.
VB:
• Significant parentheses: `subName` calls the subroutine, and `subName()` calls the subroutine and gets a return value. If you use the wrong invocation, it yells at you. Why!?
• For reasons unknown, you can only have `sleep` appear once per codebase. (So put it in a function!)
Ruby:
• It’s bloody easy to write code with absolute shit performance, and it kind of feels encouraged because of just how easy Ruby makes everything. Less critical thinking means worse performance, and Ruby’s blissful elegance encourages mental laziness.
• Minor: You cannot pass a hash as the first method parameter without enclosing it in parentheses, ex:`method({key: value})`. This is due to the ambiguous case between passing a hash argument and a (curly) block/proc (`method {|args| code}`). This could be remedied pretty easily with a little bit of look ahead.
• Minor: There is no `elsif` for `unless` (a negated if). Why? No reason given.
Python:
• no block endings, so nested code can be extremely difficult to follow.
Bash:
• The freaking syntax oh god why.
All languages:
• rand vs rand() vs Rand vs Rand() vs rnd vs RND vs random() vs random vs randInt() vs Math.random() vs Math.randInt() vs ...18 -
Ruby. Ruby this. Ruby that. Ruby in a box. Ruby with a hat. Ruby with a fox.
My job swears that there is no need for React, even though Rails now comes baked with webpack.
React with a jet pack. React with webpack. React in my web stack.11 -
Once I had a client that asked me to develop a website using Ruby on Rails but he wanted the routes to end with .php
Until now I don't understand why.7 -
Divorced Ruby (only thing she has is her beauty)
Married Java(powerful but hard to cope up with)
In love with Python (Powerful and beautiful)
Have a crush on Kotlin (She is something else, sadly she is Java's friend)
In an Affair with C# (Like java but easier to deal with)
😂😂
#Love gone wrong 😝
(Just a joke try to see the humor in it. Don't get offended 😂. Thank you. )10 -
Yusuke Endoh: This is a Ruby program that generates Rust program that generates Scala program that generates ...(through 128 languages in total)... REXX program that generates the original Ruby code again.
Me: OH MAH GAWWD! WHY!!
https://github.com/mame/quine-relay5 -
So, this dumb roommate of mine (graduated in CS) comes one day and says..
"Ruby on Rails was developed for the railways!"
And he was serious not joking. Fking serious!
I almost burst my brain nerve laughing that day!! 😂
P.s. I'm changing roommates this session.14 -
My favorite languages are
1. Python (3)
2. PHP
3. JavaScript
4. Ruby
5. Java
Honorable mention: C++
Can anyone agree?38 -
Ruby’s fanciness bit me in the butt today. It’s pretty rare, but often confusing AF when it happens.
array = [1, 2, 3, 4, 5, 6, 7]
array.count +1 +2
# => 1
What the fuck?
array.count +1 +2 +3
# => 1
What the fuck?
+1 +2 +3
# => 6
Okay.
(array.count +1 +2 +3)
# => 1
What the fuck?
(7 +1 +2 +3)
# => 13
Okay...
array.count + 1 + 2 + 3
# => 13
Alright, so spaces matter here...?
((array.count) +1 +2 +3)
# => 13
But not here!? ... Oh. I think I know what’s going on.
Array#count
Returns the number of elements. If an argument is given, counts the number of elements which equal it using ==
Well fuck me.
Ruby is seeing `array.count(+1+2+3)` instead of `array.count()+1+2+3` since `+1` is a value, not an operator followed by a value as is the case with `+ 1`.
Now, why was I using +1 +2 instead of adding some spaces like I normally would? So they would match what was in the comment next to them for easier reference. Heh.
Future dev, I did this for you! So this is all your fault. :|36 -
Wrote an article today on a language called Crystal and it got published to Hacker Noon! https://hackernoon.com/crystal-ruby...4
-
Today I was continuing my Ruby script for file encryption.
I added some features like Picture Encryption and Bookmarks.
Then I tried to start it to make sure it doesn't fuck up.
ruby PGCrypt.rb
No changes reflected.
w0t.jpg
Start debugging
Browses SO and DDG like a maniac
Reinstalls Ruby
Guess what happened.
My shell was in the wrong folder and I ran the old testing script.
GRAAAAAHHHH3 -
I need to build this, but fuck php.
Research.
Chose ruby on rails.
Bougth course on Udemy.
Took another course on Lynda.
Build it.
Now I love ruby.2 -
As a primarily back end dev, I'm not very good at design. So i wrote a Ruby script to download free html + css templates... all 3600+ of them 😐3
-
Dumbest experience.
Talked to recruiter, they praised I know ruby, said I needed to do a code test in ruby.
I was given 1 hour to complete 5, exercises in a codefight like thing.
1 exercise had C as the only lang option.
2 more had C and Python.
The last two has ruby too, they were permutation exercises that never completed within the time restriction (that was probably on me, but they did complete on my local ¯\_(ツ)_/¯ )
I told them about all this, I failed, no second chances, no explanation, no nothing.2 -
"took you long enough" gave me a computer at five - was programming at 6, learned Python and Ruby by 10.3
-
Why is C++ the first language taught in schools when Ruby is a much simpler and fun language?
History says because the courses didn't get updated.
Conspiracy theory says it's to keep out people who can't deal with complexity.20 -
One of my friends is a Ruby Developer.
His grandma is still mad at him for not gifting her the precious stone. -
Me: so, what are you doing as a developer?
Him: I am full-stack developer, basically ROR...
Me:...! Sorry, do you mean R&D, research and development? Or you mean Aroura DB?
Hi: no man, I am expert in ROR! You can not call your self developer in our days without knowing the on demand technologies!
Me:... Sorry dude, can you please tell me what is ROR, I don't want to lose my title as a developer!!!?
Him: OK, we call Ruby On Rails as ROR.
Me: ~¢°¤”©°$®”«2 -
Literally no work to do. Learning Ruby to fill the time. Forgot how fun it is to learn new things!4
-
Building my own accounting software because everything else is overly complicated and is trying to compete with enterprise accounting tools. All I want is some budgeting, some bill tracking, and categorization.
Writing in Ruby because I'm a masochist. Using built-in minitest because again 😈.
I have currently around 62 assertions. As soon as I add ANY new test that's literally asserting true, everything comes unglued and 20+ failures pop up. Take it out, 62 passes.
I feel like I'm going crazy at this point. The errors also don't make ANY sense. Shit like, "that record doesn't exist" when it's clearly a part of fixtures and is only used in ONE test(the one that's breaking).
Installed minitest bisect, and it's like 🤷♀️"lol get fucked bro!"
So I came here to rant about this before my battery dies and I go drink myself to sleep.
Thank you for coming to my dev-talk.8 -
Many people know Kaiser Chiefs song Ruby
So yesterday my uncle sang that song this way:
Ruby Ruby Ruby Ruby,
Java Java Java Java
Python Python Python Python
...
That is freaking stupid, it made my day, though)
Besides, that 3 are my fav langs)2 -
So i was working on ruby gem that wraps the libarchive C library which can be used to read and write archives of many different formats.
I was stuck for few days with a segfault and for the life of me, i couldn't find the problem.
So, i took a break and went to visit my grandparent, grandpa saw me so zoned out. So he was like, whats happening? I was like, "Frakinn program, keeps crashing".
He looked at me and said, "Garbage in Garbage out, Computers don't make mistakes" and went back to finish his game.
Then it him me the FRAKINN Ruby Garbage collector is freeing in-use objects and suddenly everything make sense.
Thank you grandpa :D3 -
Internal mail form CIO's office:
"Thank you for being part of the internal trial for NPMe, we have decided to remove this tool in favour of Artifactory because of its support for multiple platforms and tools. We are sorry for the inconvenience, here is a link to migration scripts ..."
Migration "script" readme, please clone this repo, create file A, and B, and install these 2 dependencies.
Dependency 1:
- "install via homebrew ..."
- .... homebrew needs to update, checking for updates
- 10 mins later = Update failed, please upgrade to Ruby version 2.3
- Installs ruby version manager
- GPG signature verification failed
- Install GPG v2 + accept keys
- Install ruby version manager
- "please execute this command before running rvm"
- execute command
- "rvm install ruby-2.3"
- Install failed, please see log file
- Opens log file
- "Xcode on its own is not sufficient, please install xcode cli tools"
- Install xcode tools
- 5 minutes later -> "rvm install ruby-2.3"
- 10 minutes later "brew install jq"
Ok back to read me, "login to Artifactory, go here and copy paste XXX."
- Login to Artifactory
- Eventually find repo
- Login again to actually see credentials for some reason
- Screen doesn't match instructions in readme
- Click around
- Back to readme
- Back to artifactory
- Login again
- Execute command auth / setup command
- Copy contents to npmrc file .... now all my scoped packages are going to point to 1 specific repo
Fuck the migration, Fuck these shitty instructions, i'll set them all up again manually. See tags below for further opinions on this matter.undefined fuck ruby fuck homebrew fuck this fuck shitty cli fuck artifactory fuck cli fuck jq fuck rvm2 -
Yeah - I've never written a lick of Java or Ruby, but just keep on showing me those jobs, StackOverflow.
-
Someone asked me about Ruby vs Python.
The flashbacks regarding the python vs ruby wars started to kick in man.
I always liked Ruby faaaaar more than Python. And find Rails to be a far superior alternative to Django as the web framework champion from each side and Sinatra far more enjoyable than flask as the micro framewor champion on each side goes.
But this guy is very math oriented and likes the idea of data science for which Ruby has a disadvantage in terms of available ecosystems.
You can't take my blocks and dsls from me tho. I will fight for them.2 -
If only.
Tbh. When I read about ruby and how it was meant to be as close to English as possible a little part of me was hoping for this1 -
I'm starting to have suicidal thoughts though the Javascript and the whole frontend.
Is anyone looking for a Ruby Developer with 2 years of experience with Ruby, 2 years with pure SQL databases and half year with React?
I don't want to see only Javascript for 8 hours per day for the rest of my life.9 -
The worst question was asked by me once. At least I guess it must have been the worst question for an applicant. She applied for a job as Ruby dev and gave her knowledge of the language a solid 5 Star rating. Something I wouldn't give myself unless my name is Mats. So I prepared some really nice questions about metaprogramming and the object model and stuff. As a warm-up I decided to go easy on her and asked her something simple: "how do you define getters and setters in Ruby?" Which is like one of the first things you learn but not too simple. She got a really red face and told me she didn't know. In the end I had to learn that she never even really programmed Ruby but only wrote some method calls in a file she named .rb and she didn't even know what an object was m(5
-
Listening to chilling country music and learning whole new language at work after successful meeting. Life is worth living for such moments 😊4
-
8years ago - me. "oh let's learn ruby it might be fun?"
"oh nvm let's get into php."
talk about bad decisions?3 -
require "universe"
require "bioDan"
class ProductManager
def initialize(person_type)
@ideas = Universe.import_random_ideas({ mostly_shitty: true, association: person_type })
life_purpose
end
def life_purpose
@ideas.find_each do |idea|
bioDan.interrupt! unless bioDan.bad_mood?
bioDan.queue << idea
end
end
end
ProductManager.create "enthusiastic prick"
%x[crontab -e "0 09 * * * ruby this_script.rb > /dev/null"]
# 😥7 -
I almost always program in Ruby but every single time I switch over to JavaScript, I cannot stop adding semicolons to my Ruby code for hours. Brain, y u no readjust!?3
-
Do you ever learn a particular technology, have something playing in the background and then associate the tech with that for-fucking-ever?
To me, when I was learning about Ruby on Rails I was watching Full Metal Alchemist Brotherhood for like the 5th time (I am a big FMA fan) and have thought of Rails to be associated with it forever. heck, even with just doing scripts in Ruby without rails I have always felt like I was doing alchemy or some shit.
Yeh I know, spot the weeb.
I don't give a shit I just love Ruby.7 -
!rant
when I first heard about "Ruby on Rails" I thought it to be a flash game from a miniclip like developer 😂(similar to this https://play.google.com/store/apps/...)2 -
If anyone here is a ruby dev, I've built out a wrapper for the devRant api which allows you to integrate devRant into your ruby projects easily.
Check it out here: https://github.com/alexdovzhanyn/... if you're interested. (And please report any issues if you come across them)3 -
F--- you Ruby, Gems and all this frustrating to install crap. Come on, it is 2018 and this is still one of the biggest issues on all projects depending on Ruby for some damn reason.10
-
If you are feeling a little chilly in your office, try building a docker container with a Ruby install inside...
All four cores of this i7 are pegged and the air is keeping my coffee warm. -
!rant, opinion/discussion
What are your thoughts or experiences with Ruby on Rails? Does it have a bright future?
I'm currently only using PHP for server-side web stuff, but looking for ideas for more beautiful languages.
I know C#, but because 95% of web servers I work on are Linux based, it's (as far as I currently know) not an option. Or is ASP.NET Core somewhat supported on non-root (basic hosting) linux servers?7 -
After many days of fighting with gem and bundle surrounding logstash plugins, I can officially say I hate Ruby.2
-
If is funny when you see a code challenge that requieres to reverse and array and you use ruby.
array.reverse! #fucking done5 -
Anyone else ever had to install Jekyll on Windows?
Man, what a displeasure the last four hours were. SSL errors everywhere because Ruby versions have differing SSL certificates for downloading gems or something, having to install the devkit three times, messing with Linux Subsystem and finding out the Ubuntu repos do not have a new enough Ruby version to support what you're doing.
All this to have some fun with GH pages. It's physically exhausting.2 -
It's so frustrating to see how PHP images for Docker are nicely set up, well documented, come with Apache or Nginx, almost ask you to let them pay your bills, while you get almost nothing from Ruby, and when you think you finally made something that works, it behaves like a fucking drunk irish3
-
So I got a telephone interview for a job that a recruiter found for me. Call went well, comes to the development test. Small application in ruby on rails, haven't used it in about 2-3 years so a tad rusty. Completed the test under two days (was given until Friday) not too bad if I say so myself. It's for a junior position anyway so I'll assume they wouldn't mind giving me a refresher to help jog my memory.
-
Holy fuck... Ruby has the best fucking syntax ever!
Ruby is so awesome!!!! (But Lua is a bit better)9 -
Ugh! So boring writing the same thing over and over! So instead I wrote a ruby script to generate some C# code for me!
Honestly...I just make excuses to do stuff with Ruby 😂3 -
Am I the only one who forgets to declare data types in Java after months of coding in only Ruby and Python? 😵1
-
Anyone knows of some legitimate require names that sound funny?
I was inspecting the google stock api with Ruby. Just fucking around with the console and used the pretty printer for which the require reads as:
require 'pp'
And i could not stop laughing even though I have known of this lib for a while now.
I know...i am immature as fuck but this made me laugh a lot.10 -
I am interested in learning Ruby sometime in the future.
Already know Python, Java and Javascript(including Node).
Is Ruby dead? Is it worth learning?16 -
"Where Python might boast that there's "one and preferably only one way to do something", Ruby relished expressiveness and subtlety. Where Java championed forcefully protecting programmers from themselves, Ruby included a hanging rope in the welcome kit. Where smalltalk drilled a purity of message passing, Ruby accumulated keywords and constructs with an almost gluttonous appetite."1
-
Just met a lonely guy , he was terrified . I asked him what's the issue ? He said .. " My girlfriend told me that she loves gemstones , I bought her one . She broke up with me ! " And I was so confused .. I asked him why ? He said I didn't know she was a developer . I wouldn't dare to gift her a ruby... I know how it feels bruh.2
-
A friend suggested that I'd start learning a scriptable language like Ruby, Python or JavaScript instead of beginning with HTML and CSS, until I feel comfortable with programming.
I want to be a web developer and Ive learned some HTML.
So, any opinions?9 -
When non-Rails developers say RoR. just freaking say Rails or Ruby on Rails. I don't like the way RoR sounds, that's all.2
-
Whenever I go back to Ruby I feel the excitement flowing through my body I don't even know why. If only Ruby can be used to write proper modern mobile apps. No no no Rubymotion.5
-
http://a/b[]”s escaped with URI.escape aren’t necessarily valid input for URI.parse
URI.parse(URI.escape(“http://a/b[]”))
=> URI:InvalidURIError3 -
Being a full stack developer has been an amazing journey. Looking at a project and understanding how the entire stack work starting from the mobile apps, APIs and DB is a total bless.
Nevertheless, lately switching context between modern languages has been extremely frustrating.
Swift looks like kotlin, elixir looks like ruby. Hell even swift and ruby are very similar.
Writing ruby in Xcode and wondering why the fuck Xcode complaining. Well no shit, swift is not ruby. Took me 5 mins of head scratching to notice it 😢
Hell I am now writing down the latest language I am working with on my hand to keep track 😂5 -
Why do people think Perl's outdated?
Until Python/Ruby get a port of Keyword::Declare Perl's niche stays unquestioned.7 -
Any Ruby on Rails developers here? I‘m an Angular Frontend-Dev and want/need to learn RoR, especially for backend development. Any good books/tutorials/resources?8
-
Need to do some PHP for my class next week, problem is I hate PHP so I just distracted myself and wrote a bunch of Ruby code today...4
-
If programming languages were girls
Python: The average girl that is okay-looking, easy-going, and you just get along
C: The overachiever with a complex personality and high maintenance
JavaScript: The dropout meth addict that doesn't have a dayjob and you would leave her if you could, but you can't because her parents are paying half the rent.
Ruby: The girl that is a bit daft, doesn't make a lot of money, isn't very good at cooking - But she lets you do anything you want, and she's so smoking hot that when you look at her, you just don't care
Add your language in the comments!17 -
Last week me and my friend have been changed from a legacy PHP project to new Ruby on Rails-based setup. What, in first instance, looked like a great improvement, now becomes a nightmare.
All this convention-over-configuration is awesome - but only if you already know the conventions, or if somebody told'em to you.
And everything is going even more out of control because the damn project is based upon Spree gem and several other extensions, that MUST be changed to meet out company needs.
I'm getting really mad with all this pressure. Ruby seems to be a great language, but I'd rather be working with Laravel. Its overall organization, the centralization of CLI commands in artisan, and the astoundingly clear, eloquent, direct and well-designed documentation made my adoption curve there a little more pleasant.
I mean, legacy PHP systems are awful, but Laravel framework sounds way more easy-to-learn and well-constructed when compared to rails.
But given all this nightmare, I really want to be proved the opposite.1 -
I'm a junior in high school, and I dabble in a few languages like Python and php. What do you think is a good language to pursue in the coming years? I've heard Ruby and php are some of the top. What is your opinion?5
-
Here's a great talk about the wonders of Ruby & JavaScript that every dev should see at least once https://destroyallsoftware.com/talk...10
-
Elixir/Phoenix developers, what are your opinions on Ruby/Rails and vice-versa?
(Not trying to start a war here 😅, just some heathy discussion)3 -
I was just trying to learn Ruby by watching a YouTube channel, when the instructor use that example 😂😂 I bet this app will "blow"3
-
So i've just learned C# and started learning how to use it in unity. And one of my friends asked me if I could help him with an error he couldn't understand, and I said sure (Why didn't he search up what the error meant?). I look at the syntax. This is ruby code, come on man I said i know about C# I don't know anything about ruby man.6
-
Nothing quite like some late-night Elixir. Honestly the most fun language I have ever used (yes, more fun than Ruby)4
-
For my peeps in the RoR arena, did y'all ever felt the need to change from ERB as yout server side rendering engine of choice?
I find it hard to use anything else, i would normally stick to it unless I was using Rails as an API and leave the frontend to React or Vue.
Asking about y'alls opinion because I knew about HAML from a while back. But never really used it and I find Rails with ERB to be really efficient.
Ruby pagebuilding with ERB is really flipping comfortable man.ERB has been my favorite for years.
Currently migrating a project to use Svelte and wanted to see what some of y'all think about Haml or erb. Just for the sake of curiosity. Don't know how many rails users we have in here.5 -
I need to install homebrew in my OS X so i go to brew.sh
brew.sh: /usr/bin/ruby -e "$(....
me: ok, need to install ruby
ruby-lang.org: brew install ruby2 -
Since early 2016 a LinuxDev at my work, pushed me (windows admin) right in the CentOS world. With some practise I had to build a infrastructure to deploy Ubuntu to development clients (laptops with stuff without windows) In perspective I had to migrate this infrastructure to my team (windows admins) and run it there as were this all the time our business. I loved powershell but for some reason I have had to learn Ruby, bash etc.. Now I am the first Admin with some pretty skills in Linux, my workplace comes without any version of Windows. I am flying with Debian, Ubuntu, redhat and CentOS. The finished work from past enabled my team and me to drop fully automated Linux Clients for our developers.
Well last weekend Windows 10 fuc*** up with the creators update and destroyed even my USB3 ports... I didn't even spend lot of my time playing with this machine... So my desk is now running arch.
That day my colleague thought, windows isn't my passion is thanked every week once for directing me in this pretty good world.
Today I am still the first Linux DevOps in my team, but still happy.1 -
So in Ruby, everything is passed to functions by value. However, when you manipulate objects, you're actually manipulating references. A simple example:
```
a = [3]
b = a
c = a
b.push(2)
print a
print b
print c
# => [3, 2][3, 2][3, 2]
```
Here's a more complicated example from the problem I was solving:
```
table = Array.new(5) { Array.new() }
1.upto(5 - 1) do |i|
1.upto(5 - 1) do |j|
table[i] = table[j]
end
table[i] << rand(1..6)
end
```
I have been running around in circles this morning because I forgot that. This makes C++ for example, more clear than Ruby since C++ explicitly shows the intent to the programmer.5 -
TFW you see ruby syntax and claim it's not even a programming language, then someone shows you a working example...
-
> be me
> " It's Sunday, time for some battlestation housekeeping"
> " Oh easy, every git repo should do 'git clean -dfx'"
> Goes to ~/.rbenv
> Executes 'git clean -dfx'
> A whole 15 minutes long my drives go in overdrive...
> Removed 37 ruby versions and their gems, 104GB space freed up
I should do this more often
And I should now pull in all new versions and other things...3 -
What is the main flaw of Ruby ?
It has so many ways to install that, if you try all of them, you'll be using no Ruby at all.
I was going crazy because IDK when I installed an old version of Ruby with RVM, than a newer version with Homebrew, and now I am getting totally crazy!!!!! -
I actually learnt this last year but here I go in case someone else steps into this shit.
Being a remote work team, every other colleague of mine had some kind of OS X device but I was working this Ubuntu machine.
Turns out we were testing some Ruby time objects up to a nanosecond precision (I think that's the language defaults since no further specification was given) and all tests were green in everyone's machine except mine. I always had some kind of inconsistency between times.
After not few hours of debugging and beating any hard enough surface with our heads, we discovered this: Ruby's time precision is up to nanoseconds on Linux (but just us on OS X) indeed but when we stored that into PostgreSQL (its time precision is up to microseconds) and retrieved it back it had already got its precision cut down; hence, when compared with a non processed value there was a difference. THIS JUST DOES NOT HAPPEN IN OS X.
We ended up relying on microseconds. You know, the production application runs on Ubuntu too. Fuck this shit.
Hope it helps :)
P.s.: I'm talking about default configs, if anyone knows another workaround to this or why is this the case please share. -
At work today when the manager asks If I can
Begin
Learn some...
End
Begin
Ruby to help the lads with..
End
Begin
What the...
End
Begin
Fuck...
End
Begin
Is this...
End4 -
So I am a Ruby guy since I don't now when. Probably forever. Lately I have to code Groovy. People are telling me all the time that Groovy is like Ruby. Let me tell you: No! Groovy is not like Ruby. Groovy is shitty Java with a slightly more usable syntax. Nothing more. It is so so tedious to code and reminds me why I stopped coding Java like 8 years ago. The fact that some features resemble Ruby syntax makes it even harder for me because I cannot code and facepalm at the same time. And I automatically type Ruby code all the time because it looks so similar in some places. I don't have that problem with other languages. Just Groovy. And the fact that Java people like it tells me how bad Java really is. It's just dirty. Guys, I feel so dirty now. And showering this morning didn't help. Had to get that off my chest. Thanks for "listening"9
-
Best Sites to Learn Ruby: poignant.guide, ruby-lang.org, rubymonk.com, SoloLearn App, O'Reilly Books, apidock.com
Beste Seiten um C++ zu lernen: cplusplus.com, cppreference.com, SoloLearn App, O’Reilly Books
And of course, YouTube has also reinforced.
These are my personal experiences. Which method (books, websites, apps) do you think is the best?4 -
Today, I randomly remembered a guy who was doing an internship at my college's tech lab. From what I gathered (I wasn't really part of that group) all they had to do was familiarize themselves with one of the many systems available and... I suppose maintain it or improve it.
.... Poor guy spent the first 2 to 3 weeks just trying to get Ruby on Rails to work. The work he was doing was not (and would never be) critical so there was not much of a sense of urgency.
Someone should have told him to use a fresh VM. Guy was trying to get it to work in his private laptop running windows. A doomed endeavor.3 -
I have been learning Rust and haven't written Ruby in months. I just wrote this simple statement and I already feel the Rust power.2
-
Finding a Ruby on Rails developer job here in North Carolina fucking sucks. I got through three sets of interviews and they told my recruiter I aced them and answered their questions flawlessly but instead of hiring a ruby developer to 1-3 years of experience they now want to hire a software architect with 4-6 years of experience. This company wasted both of our times.
Finding Ruby developer jobs is hard and I’m looking into whether I should switch to another tech stack to make my job search easier.
Thoughts?7 -
Installing Ubuntu on an old box of mine. May run well after all. Gonna make some experiments with Ruby and Python3
-
Just found out that Ruby does not have any formal langauge specification. Instead, they just use the ruby-spec test suite. If your compiler can pass those, then it's probably a ruby compiler.
This is a pure duck typing at a compiler level. LMFAO.4 -
Figuring out how to install Ruby on windows, is this real life? Or is this just fantasy, caught in a landslide? No escape from reality.3
-
I'm Ruby on Rails Developer, Currently using Dell vostro laptop ( it hangs like hell with Ubuntu)
Suggest me the best laptop for rails and other development.4 -
Is PHP really that bad? All my programming friends kinda despise my willingness to learn Node.Js or Ruby instead of python...13
-
Fuck ruby. I've spent less time learning the ecosystems of java, golang, node, and docker combined compared to the shit ruby is flinging at me like some sort of deranged baboon10
-
I mean Ruby has four letters and Rust has four letters. We do have the Just Stupid shirts though...4
-
I am thinking about learning Ruby. Some awesome things like Oh-my-Zsh and Homebrew are built using Ruby. Read many posts about it. Some say Ruby is overrated and cannot be scaled.
What do you devs think?7 -
Job posting: Backend Developer ruby-php
Question 1: Please describe your experience with Java and J2EE.10 -
Pull requests with 900 changes across 27 files and not a single comment. But Ruby is self-explanatory!1
-
Why is Ruby on Rails such pain in the ass on Windows? A college of mine uses Windows for our project, since I use Linux I rarely get any errors :)2
-
!rant / Joke
RoR dev (Me): Damn, I gotta learn more about that routing DSL... Shit's powerful.
Networker: That sentence made zero sense... Did you just use technobabble? Go to marketing you dweeb.
Well, Matz really trolled the networkers there...
Ruby/Rails:
DSL(Ruby) = Domain Specific Language.
Routing (Rails) = Defining URL Patterns and assigning them to controllers.
Networks(As far as I understand, I only know the absolute basics there):
DSL = Digital Subscriber Line
Routing = The act of passing a packet through another network
"Oh, you can't help that," said the Cat: "WE'RE ALL MAD HERE. I'm mad. You're mad."
And the weird penguin building a rails app is mad too I guess.1 -
!rant, suggestions/help wanted.
I'm attending my first develop conference next week, RailsConf in Pittsburgh. I'm pretty excited because the ruby community is always talked about as being so awesome. Anyone have any tips on making the most of my first conference? Anyone else going?1 -
Alright so cool story about my idiocy and it’s relationship to Learning Ruby on Rails.
So I decided to start learning ruby and it takes a lot from python(idk which One came first correct me off I’m wrong)
The tutorial I started was using version 4.2 of rails or something and the latest version was 5.1 so me being a fucking idiot continued to install and learn plus I had to open 2 questions on stack exchange that could be solved with an apt-get install command and after 3 days of my understanding what the actual fuck was going on. I reinstalled Mint and got it working.
After JetBrains and sublime text and all my shit was off my NAS I started the tutorial again with everything installed correctly and quit at the 4 minute mark because my bundle install command didn’t work correctly still having trouble and I feel like I should just stick to HTML and CSS1 -
Refactoring some horrendous old ass (ruby) code and I come across
`schedules.each |do|`
okay. Where does `schedules` get set?
`schedules = [create_schedule(args)]`
Cool. An array that never has more than one object in it. Good code, guy.2 -
I am still relatively new to Ruby and would like to write a program using an interactive shell like interface,meanjng that people type the name of the program "taskflow" and the app starts, putting them into interactive mode. Is there a good framework for it or is it hard to write it myself? If not, any ideas or tips on how to accomplish it?3
-
My friend and me sit next to each other in the class.
One day, he tell me about his family. they have code equivalent of most common English words.
when the COVID-19 pandemic occur in our country, his father warn everyone in the house by saying
stay.at("127.0.0.1")
wear("255.255.255.0")
everyone start to
search(mask)
return tohome;
========================================
127.0.0.1 is a loopback address. aka localhost
IP masking is a way to hide your real IP.
255.255.255.0 is an example of subnet mask for IP
we used Ruby in this story.19 -
Decided to update ruby because why not, been at it for hours.. i just wanted ti code something simple :(
I am almost done -
My LinkedIn profile lists quite a lot of languages and platforms, but I made sure to not include Ruby there, just because:
1. I never worked with Ruby
2. I never want to work with Ruby because I got fed up with the smugness of ruby developers back in the day so much that I made a promise to myself never to be one of them. Literally anything just not Ruby. I'll even take up COBOL if I have to, in order to avoid Ruby, unless I can justify it as a backup scripting language for small automation stuff where other languages would simply not work. Aaaanyway...
I get this message from a guy:
"""
Hey <Actual first name>,
You got recommended by a person, and judging by your profile you'd make an excellent fit for this company I'm representing who are the leaders in their field, bla bla bla more info on why company is the greatest in the world.
They need an experienced senior Ruby developer for their new web application bla bla bla.
"""
I wonder, if I committed to learn Ruby well enough to pass an interview, faked some Ruby experience in my CV, and they actually hired me, how long would it be until they hang that recruiter for not even reading the profiles of the people he's bothering with messages. -
Ruby vs Python... I personally prefer Ruby since it is shorter and I feel like I'm reading docs when coding ruby, what do you guys think?3
-
Hey all ruby devs! I've recently made a redux gem implemented in native ruby, that allows you to completely decouple state from your code. If any of you like the redux design structure and want to use it in your backend, check out https://github.com/alexdovzhanyn/...
-
When you have to switch back and forth between JS and Ruby and you can't figure out why your Ruby code isn't working until you remember that (for some dumb reason) Ruby doesn't have ++...10
-
starting to learn ruby and found a video on my recommendations "5 ruby pro tips"
Now i begin to ask how much google knows about me2 -
Dependencies suck.
I wanted a ruby gem and needed an older version of ruby to run it. Fine, what's the best way to get multiple ruby versions on one system, apparently rvm.
Now I want rvm.
I can't have rvm without getting gnupg first though.
Before I can get gnupg I need brew.
Now I have brew setting my computer on fire compiling god knows what so it can get gnupg so I can get rvm so I can get the ruby version I want to get the gem I want!
It's been running for quite a while...
This isn't the first or last time that the convenience of packages and versions leads to a maze like trail of prerequisites you need to follow.
I'm sure there's some tool that would've helped with my problem, but the problem shouldn't be this bad to begin with!
I understand why it happens but it still sucks and it's a lot of wasted time.
Frankly I'm expecting some people will have gotten so used to this kind of insanity that they won't get why I'm renting about it, oh well, it made me feel better and gave me something to do while brew is melting my machine.3 -
// new Rant("help")
I am currently writing my first 'real' Ruby project. I want people to be able to contribute through a module class by extending it and implementing the needed methods. This can (if done correctly) provide new commands for the terminal and new features.
But is this a good idea? I would download the code then by using git and keep it that way updated (similar brew does). At the start of the terminal app I would add all files recursively from the folder where I clone the modules into and lookup each class that extends module and then load the new content.
Is there another way of creating such a 'modular' application in Ruby?
They way I load the modules is through the inherited method, I just add the classes (not a concrete object created with new) to a list and retrieve it at runtime.
Would be nice to get some feedback going on here, not sure if my idea is good/bad. -
!rant
Im a java dev in my day job (in a bank) and a real estate broker(on the side) as well... Im planning to create my real estate website from scratch. should i do it on java(spring) or other language?
I know php and ruby too. I had plenty of php projects and i had one ror project 5yrs ago.
P.s
which hosting do you recommend. *cheap is better for i am just starting real estate broker.9 -
I'm in kind of a clutch between learning Ruby or Python.
I did some stuff with Ruby (Hello World, a little RoR) but I like it a lot ao far.
However, support for it isn't that big (packages, tooling, etc) as for Python :/
Which one to pick?2 -
Any freelance/contract web devs out there.
What do you charge for hourly rate?
Interested to know what others are charging for php and/or ruby skill sets.3 -
Got bored and tired of making my program at JavaFX, decided to change to new programming language with new GUI framework. Chose Ruby and after a bit of research the easiest GUI framework is Shoes. Started making program but ugh. When I run the program, to clicked a link on it you have to locate mouse 10px top of that link. Weird af. Now I'm installing the ruby on my windows machine, hoping there was something wrong with shoes on Linux. Fml2
-
Change my mind. Golang can be more difficult than it needs to be sometimes:
Find the first "non-null" value in an array:
Go:
Optional<String> result = Stream.<Supplier<String>> of(
() -> first(),
() -> second(),
() -> third() )
.map( x -> x.get() )
.filter( s -> s != null)
.findFirst();
Ruby:
@group_list.find { |x| !x["list"].blank? }16 -
Have to translate an API library from Ruby into PHP for work, and I swear it's all of the worst pieces of BASIC and Swift thrown together. To top it off, looking up a symbol chart for it to try and get a handle on the symbols they love to throw in front of variable and method names is useless because "symbol" is a freaking type in this language! Arrays are apparently called "hashes" now, and I can't quite tell if modules are supposed to be namespaces or classes yet...
If Ruby has redeeming qualities, I'm definitely open to hearing them. Right now I'm kind of feeling homesick for vanilla C, however...1 -
Call me a pussy, but I find it quite annoying to figure out why one of 30 of the values returned in a hash is wrong in a 600 line Ruby on Rails method.5
-
!rant
Just went to my first Ruby Meetup in Lyon, FR 😍
It was so weird to actually meet people that fully understand why you love Ruby so much, since they love it too!
I'm so envious of the people whose job is to develop in this language, I really hope my next job will be about working with Rails too *.*1 -
In university we have to code using ruby. It's likely the most useless and ugly piece of shit programming language I have ever seen (apart from VB). Why can't we use something useful like python?6
-
Does anybody actually enjoy working with Liquid template language? (Jekyll)
I barely have to work with Jekyll but every time I have to do something slightly complex with it its a pain, why cant it be just like erb templates? its already been parsed by Ruby isn't it? -
Well... Finding a text editor/script runner for ruby has been one of the most arduous experiences in my programming career 💀 :/7
-
I believe ternary operators should be banned in python/ruby. They are confusing, irrelevant and people use them in bizzare places.4
-
My colleague once wrote 160 lines of ruby code that violated rubocop in 102 lines (and he thinks he is a "clever" senior)2
-
well after solving many challenges and etc on ruby I decided today to actually use it. for real. and in my little playing it maybe become my new language, replacing python. Ruby is just great. but I don't have anything to make. I need ideas guys. or programmer friends! who wants to make something in ruby?1
-
The best love is the kind that awakens the soul; that makes us reach for more, that plants the fire in our hearts and bring peace to our minds.
My Dear ~Ruby~. -
when you really wanna write an extension for this software but the only API is in node. gotta rewrite it for Ruby! 😓10
-
What's your opinion on Ruby on Rails vs Java?
I'm honestly leaning towards Java for no other reason than look of the code and the fact that it's what my school teaches for comp sci.7 -
I feel like an imposter because ...
I forgot that in Ruby, it's "elsif" and not "else if" today. How about you?2 -
Best website hosting for an dev profolio and subdomains like go daddy, but can support web apps like discourse or ruby?10
-
I learnt how to code, first, on code.org. Then on codecademy. There I learnt the basics of HTML5/CSS3, Javascript, Ruby and Ruby on Rails. I also began buying booking on J Query.
-
Looking through ecmascript documentation and im not recognizong anything under the arrays.
Oh thats the ruby documentation. Why am i on the ruby documentation -
Going to start learning ruby on Rails from the basics. Do I jump into rails or start with ruby. I am a django developer.4
-
I started using elementary OS.
Have some tips for me?
I already installed chrome, ruby, ruby on rails, configured git and gitlab. -
There's a time when I wrote a programme in Elixir which GitHub mistakenly thought my programme is in Ruby...2
-
Was using node for a side project, but then I was like ehhh I could finish this but using js on the backend is kinda sad, and ive worked with Django before so I figured oh maybe, python would be a step above js, but still not satisfied. I started following a guide for PHP and doing research and I almost vomited. Then I start following a guide for Ruby on Rails, which I am now wondering where the fuck ive been ignoring it for years. Now I'm "on rails" and typing this on a train teeheeehee6
-
I just don't get why nobody ever even talks about ShellScript any longer! While it is still extremely relevant unlike Ruby... Whaaat?2
-
The fact python is mainstream and attracts most juniors with just high salary expectations doesn't means that python is that bad.
Im not in love with python, but ruby is much worse in all the weak points of py and no one cares.
Fuck ruby and it's eval culture xs11 -
I tried to explain to our Ruby system architect that rescuing Exception (which also catches NoMemoryError) is a bad idea. I'm then told we _want_ to catch it and log who the culprit is and flash an error to the user. There's still a palm print on my face.
-
After nearly four days of fighting with Ruby, Gem, Bundle and a dash of JRuby just to make a plugin for logstash install, I can officially say I feel like Ken Mattingly.
It is all about the sequence, and a metric ton of RAM and CPU cycles and patience.1 -
Didn’t think I would run into issue because I was using Apple Silicon macs - something borked my ruby gems installation, and reinstalling made matter worse by Bundler installing gems that apparently linked to whatever arch they liked. Now if I run bundle exec there was that one f*<king gem that died of mismatching arch until I intervened.
-
First of all, I need you to forgive me for what I'm doing to do...
So, for webdev, Ruby or Python?
Opinions, thoughts, tips, are all welcome.
- I know these kind of choose A or B questions make me a horrible person, but what can I do. ¯\_(ツ)_/¯ -5 -
Just a quick question: do you think investing in Ruby/on Rails is a good choice? I really like the language, but every time I mention it I feel like an alien.3
-
I’ve been building event-based systems for a few years.
Now I am with a company building MVC apps with ruby-on-rails. (Well, actually the V is handled by React)
To all the the good Rails developers out there:
What advice do you have to getting into this thing very fast. I’ve got video courses from UDemy and the docs but are there any hidden diamonds in the rough out there I should check out?5 -
I know Ruby but I never do Rails, and I want to get started. Should I start with Rails path straight away in The Odin Project? Or should I find other resources to get started instead?
-
I'm planning to make a dashboard web app with data analytics. It'll also include subscription option. So I'm trying to decide which language to use on the back end which I planing to make as RESTful api.
Current options for the backend are python, Ruby and php.
I'm not really sure about python. Ruby seems interesting, but I've read its a bit slow and some of the codes does look like magic. I'm very familiar with php, so I'm very biased toward it right now to use php with Lumen framework.
I'm also hoping to scale up the system in the future.
So, can you guys gimme a little help here in choosing a language and framework.1 -
So I've been working with a Ruby DSL my colleague wrote for our rails app that builds app flows represented by data using migrations, which are consumed and rendered by the frontend. So data-driven UI.
It's very solid in prod, so we're running with it, but it can be hard to work with because everything is built using migrations - for example, the one signup flow we have spans across 7 migrations that add/change/remove components in the flow, change decision logic, etc.
I'm building a particularly complex one and can't decide which development method is better. I can either
1. write the flow in one huge migration, then change as needed - keep rolling back, resetting and testing until it works, or
2. increment changes and additions in multiple migrations across multiple pull requests, such that the final product spans across about 10-12 smaller migrations
Which one?
Both are super icky to me but I'm leaning toward 1. At least all of the shit would be in one place and would make sense without needing to switch between 10-12 files to see where shit is being defined, changed, etc. because it reads chronologically.3 -
I'm always on the lookout for something new to learn..
What should I do next (no particular order)?
TypeScript
AngularJS
Ruby7 -
I love Ruby but Python seems to get more trajectory, more popular, and has a very active community right now.. It's like everything is built for Python.3
-
I've based all my career as Ruby developer around:
5.times do
puts "Ruby is awesome"
end
Is the example that I give to everybody asking me why I've chosen Ruby1 -
I tried to reach myself Ruby a while ago, but ran into a plethora of issues just trying to get a stable running version of the compiler going. There's like, three different sites claiming to be the official site, which is which?
Does anyone even use Ruby anymore? Is it even worth learning?10 -
okay let's put a platform tag at the end of a gem in the gemfile, because it only works when you don't use the mingw platform on windows:
gem 'eventmachine', platform: :ruby
so far so good. Now lets remove the gemfile.lock and let bundle rebuild the dependency tree again (to make sure nothing gets left there):
bundle install
Resolving Dependencies.....
...
Fetching eventmachine 1.2.7 (x64-mingw32)
...
Why bundle, why?? :(
Now to fix that, i have to:
gem uninstall eventmachine
and:
gem install eventmachine --platform=ruby
every fucking time.4 -
Not my fav because I'm not proficient in anything and don't consider myself a programmer. But, I use many languages day to day as a sysadmin.
I come across Perl enough to know I don't like how their modules and dependencies work. I have the most difficulty when dealing with this. PHP, Python, Ruby, and GoLang never give me as much trouble as Perl.
Also, coming across more Python3 dependencies, dealing with older Python2 environments, as stated by many others as well, is becoming more and more painful.
Maybe all of this can be solved with some unifying virtualenv for all popular languages/environments, supported fully by the underlying OS. -
I'm no iOS developer, so sorry if this is a stupid question. I was told a particular app I'm looking to make an Android version for was built in objective-C and uses Ruby and AWS for the backend. so presumably I'd need to plug into AWS for my app,im just not sure how Ruby fits in...2
-
It is currently 5:30 AM, I've been trying to upgrade a server by one single major OS release for the last 3.5 hours. All major apps were no issue, except one.
Redmine.
That thing runs on Ruby.
Ruby, as it turns out, doesn't really like the way Debian handles package management.
And now, I have Redmine that, even if I completely uninstall / reinstall, won't start
I went down several rabbit holes, trying to operatively find what the issue is. But I never got to the key issue.
Fuck ruby. Fuck Redmine. Fuck nothing-saying error messages. Fuck bundle. Fuck gem. Fuck it all.
I'm redirecting the Redmine domain onto the server backup I've made. Upgrading that thing is a nightmare.
Maybe now I can finally go to bed...5 -
Oh, hi "metaprogramming" (PHP in runtime), long time no see. Which reminds me why I ended up hating Rails & Ruby so much back then.
-
Hello, can anyone help me solve this issue? I cant find something about it anywhere
https://stackoverflow.com/q/... -
IntelliJ, CLion, Pycharm and Rider are awesome. But Ruby Mine is the most bugged software ever made.
-
Whatever happened to that cute tutorial Ruby used to have? The one with a repl and lots of cats?
Do you know any similar ones? Not necessarily for Ruby.2 -
Duck whoever thought using jruby was a good idea! fuck this codebase, outdated dependencies hell and fuck most of the ruby gems documentation
-
I want to follow Ruby-related news/resources like Twitter, blogs, Medium etc so I can keep up with latest stuff or simply adding to my knowledge. The problem is I just don't have any idea who to follow and what good blogs or website are there. Anyone?1
-
TIL RVM and I are on different assumptions. I'm talking about RVM allowing unbound variables in its scripts.
I don't because I literally have run "rm -rf /" on my Mac because of an unbound variable in the past. So, when I write a shell script, the second line is always "set -eu."
And because RVM allows unbound variables, this line crashes RVM.
Then for some stupidity on my part, I looked into GitHub for its codebase first to get even more clueless about the issue before finally googling to see if anyone had experienced the same problem 🤦1 -
They asked me to build a small website they will embed in a native application with some web wrapper in Android and iOS.
But also asked me to build a login web service that will return a JWT. Done.
They want to do a native code login form that opens up the web wrapper with my small website already logged in using the login web service.
I have no idea how to proceed in the backend.
At first i tried using postman with a POST request to the sessions/sign_in route and sending a form with the authenticity token and the email and password; but CSRF stopped me. I don't want to turn it off because of reasons.
Now i am wondering how to use this JWT to generate a cookie with a session inside it that they can use in the web wrapper.
Any help would be appreciated :)4 -
Please I need advise on new technologies - Language, framework to learn? Currently I am proficient in Ruby,JavaScript - REACT JS/REDUX/ RUBY ON RAILS/ for web application.
Please you suggestion will be very helpful 🙏🏻5 -
Now make a new project in Django... Ok some file autogenerated and now I'll start.
Now make a new project in Ruby on Rails... Ok autogenerated a fucking army of file?!?!? Why??? It's overwhelming!!! Where can I start??? -
As someone with a pretty solid knowledge of Php I genuinely have no clue why Ruby on Rails baffles me as much as it does. This is going to be a long evening...3
-
Thanks monkey patching, now I remember why I hate Ruby so much.
Compare https://github.com/ruby/ruby/... with https://github.com/rightscale/...
I wonder how the fuck it even works. Also I'm amazed by countless hours of labour wasted digging through this pile of shit. (BTW thanks JetBrains for making it a bit less miserable)
Oh, and someone did monkeypatch Object#try! (which is also a monkeypatch by active_support) and then replaced all `#try` calls to `#try!`. WHY.JPG. Also how the fuck did it pass code review?! -
Ruby is like the plot of highlander 2 people may be ashamed being familiar with it but someone is somewhere
Most people however note society skipped right past it in the sequel
Additionally as I watch the same crap scroll by I wonder with deep sadness what happened to the world6 -
Php : I am the best of the best for web application and server side scripting!
Ruby on Rails :REALLY? -
I’m interested in learning Ruby on Rails. I’d like to know if I’m wasting my time with learning it?6
-
End statements in Ruby are interesting design decision since indentation matters. Why not do it like Python?1
-
Hey guys! From a Ruby on Rails Restful API programer’s perspective which should I learn? Scala or Golang? Why do you like Scala/Golang? Do you use any frameworks? Why should I choose Scala over Goland or vice versa?
Many thanks! o/5 -
Hi fellow devranters,
I'm in Berlin for next 2 weeks,
Is there any meetup in Berlin?
Also I'm looking for Ruby developer position as well, if anyone can refer
That would be great
I have around 4 years of experience working with Ruby.4 -
What is ruby and why should i learn it. also whats the next step after learning fundamentals in Python?13
-
Question to all Ruby and ToR programmers. What do you hate in Ruby/RoR?
I don't know why Ruby is not Popular and didn't hear about problem with this lang.2