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"
-
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.14 -
Never forget:
There are only two kinds of languages: the ones people complain about and the ones nobody uses.
A quote from Bjarne Stroustrup8 -
The second episode of The devRant Podcast is here! We're happy to announce the release of episode #1 - featuring David Heinemeier Hansson (DHH) (known for creating Ruby on Rails, Basecamp, his book Rework, and much more). It was a thrill getting to interview David and we think everyone will really enjoy!
We also want to give a huge thanks to our two devRant users who helped us out and came on to talk about their rants - @peaam and @switchstep. We also greatly appreciate all of the questions that were submitted by community members. We really wanted to ask all of them since there were a lot of good ones, but unfortunately we ran out of time with DHH and we didn't get to ask any :/ We're going to make sure we better allocate time in the future.
You can get all the links to the podcast here: https://devrant.io/podcasts/... (available on iTunes, Google Play, YouTube, Soundcloud, Stitcher, and we've provided the raw mp3 in various bitrates).
If you'd like to see it on any other platforms in the future, please let us know. And like always, feedback is appreciated since we're new to this and still learning our way when it comes to podcasting. If you enjoy the show, please rate it to help us out :)
Thanks everyone!7 -
At the end of our first podcast (https://devrant.io/podcasts/...) we gave a hint about the featured guest on our second episode. Now, it's time to announce this guest!
For the next episode of The devRant Podcast, we're fortunate enough to welcome David Heinemeier Hansson, also commonly known as DHH!! (http://david.heinemeierhansson.com/) David is the creator of Ruby on Rails and founder/CTO of Basecamp/37signals (project management tool), and a best-selling author know for titles like "Rework." He also drives race cars. We're extremely excited that we'll have the change to interview him as our second featured guest.
Like last time, it's time to take questions from the devRant community! If you have a question you'd like us to ask David, please add it as a comment on this rant or you can email me (david@devrant.io). Thanks everyone!6 -
Needed to download all my music from Google music, their download manager is crap (on ubuntu)
Decided to use their API, found a gem that works perfectly. Started downloading it.
Told my GF how I wanted to code something cool but gound someone else did, her response:
So why doesn't google make something ?
Me:They did, but it sucks in linux, and they have their API's which work fine.
And how are normal people supposed to make it work then?
Me: well it works, jut have to install this and run the CLI with.... wait.. am I not normal?
I guess we are not normal in the eyes of some people.18 -
"Why can't I just get the terminology right in my head"
java: map.
javascript: object?
python: dictionary!
ruby: HASH!
php: aSsoCiaTiVe aRrAy14 -
Every programmer has to see this. (copy paste link below in a browser).
https://destroyallsoftware.com/talk...10 -
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 -
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 ...19 -
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.8 -
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 -
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. )11 -
My favorite languages are
1. Python (3)
2. PHP
3. JavaScript
4. Ruby
5. Java
Honorable mention: C++
Can anyone agree?42 -
The coolest, most complete thing I've built is probably my "virtual console" IDE. Write code, make sprites/levels, and play the game; All in one place.
https://github.com/cyberarm/...3 -
Wrote an article today on a language called Crystal and it got published to Hacker Noon! https://hackernoon.com/crystal-ruby...4
-
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 -
So I'm back from vacation! It's my first day back, and I'm feeling refreshed and chipper, and motivated to get a bunch of things done quickly so I can slack off a bit later. It's a great plan.
First up: I need to finish up tiny thing from my previous ticket -- I had overlooked it in the description before. (I couldn't test this feature [push notifications] locally so I left it to QA to test while I was gone.)
It amounted to changing how we pull a due date out of the DB; some merchants use X, a couple use Y. Instead of hardcoding them, it would use a setting that admins can update on the fly.
Several methods deep, the current due date gets pulled indirectly from another class, so it's non-trivial to update; I start working through it.
But wait, if we're displaying a due date that differs from the date we're actually using internally, that's legit bad. So I investigate if I need to update the internals, too.
After awhile, I start to make lunch. I ask my boss if it's display-only (best case) and... no response. More investigating.
I start to make a late lunch. A wild sickness appears! Rush to bathroom; lose two turns.
I come back and get distracted by more investigating. I start to make an early dinner... and end up making dinner for my monster instead.
Boss responds, tells me it's just for display (yay!) and that we should use <macro resource feature> instead.
I talk to Mr. Product about which macros I should add; he doesn't respond.
I go back to making lunch-turn-dinner for myself; monster comes back and he's still hungry (as he never asks for more), so I make him dinner.
I check Slack again; Mr. Product still hasn't responded. I go back to making dinner.
Most of the way through cooking, I get a notification! Product says he's talking it through with my boss, who will update me on it. Okay fine. I finish making dinner and go eat.
No response from boss; I start looking through my next ticket.
No response from boss. I ping him and ask for an update, and he says "What are you talking about?" Apparently product never talked to bossmang =/ I ask him about the resources, and he says there's no need to create any more as the one I need already exists! Yay!
So my feature went from a large, complex refactor all the way down to a -1+2 diff. That's freaking amazing, and it only took the entire day!
I run the related specs, which take forever, then commit and push.
Push rejected; pull first! Fair, I have been gone for two weeks. I pull, and git complains about my .gitignore and some local changes. fine, whatever. Except I forgot I had my .gitignore ignored (skipped worktree). Finally figure that out, clean up my tree, and merge.
Time to run the specs again! Gems are out of date. Okay, I go run `bundle install` and ... Ruby is no longer installed? Turns out one of the changes was an upgrade to Ruby 2.5.8.
Alright, I run `rvm use ruby-2.5.8` and.... rvm: command not found. What. I inspect the errors from before and... ah! Someone's brain fell out and they installed rbenv instead of the expected rvm on my mac. Fine, time to figure it out. `rbenv which ruby`; error. `rbenv install --list`; skyscraper-long list that contains bloody everything EXCEPT 2.5.8! Literally 2.5 through 2.5.7 and then 2.6.0-dev. asjdfklasdjf
Then I remember before I left people on Slack made a big deal about upgrading Ruby, so I go looking. Dummy me forgot about the search feature for a painful ten minutes. :( Search found the upgrade instructions right away, ofc. I follow them, and... each step takes freaking forever. Meanwhile my children are having a yelling duet in the immediate background, punctuated with screams and banging toys on furniture.
Eventually (seriously like twenty-five minutes later) I make it through the list. I cd into my project directory and... I get an error message and I'm not in the project directory? what. Oh, it's a zsh thing. k, I work around that, and try to run my specs. Fail.
I need to update my gems; k. `bundle install` and... twenty minutes later... all done.
I go to run my specs and... RubyMine reports I'm using 2.5.4 instead of 2.5.8? That can't be right. `ruby --version` reports 2.5.8; `rbenv version` reports 2.5.8? Fuck it, I've fought with this long enough. Restarting fixes everything, right? So I restart. when my mac comes back to life, I try again; same issue. After fighting for another ten minutes, I find a version toggle in RubyMine's settings, and update it to 2.5.8. It indexes for five minutes. ugh.
Also! After the restart, this company-installed surveillance "security" runs and lags my computer to hell. Highest spec MacBook Pro and it takes 2-5 seconds just to switch between desktops!
I run specs again. Hey look! Missing dependency: no execjs. I can't run the specs.
Fuck. This. I'll just push and let the CI run specs for me.
I just don't care anymore. It's now 8pm and I've spent the past 11 hours on a -1+2 diff!
What a great first day back! Everything is just the way I left it.rant just like always eep; 1 character left! first day back from vacation miscommunication is the norm endless problems ruby6 -
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
-
Took a job during the summer vacation and was expected to sit through excel and click products and fill in info (mundane tasks). Overheard the boss talking to the coworkers "We need to translate 77,000 urls into images, how do we split this work up?" I jumped in and said "I can write that in code so you don't have to do it" They all looked at me like I was some sort of magician O_O. Had the program running during the weekend on three computers and all of the 77,000 urls are now a beautiful mess of pdfs and jpgs. Do you have a story that made you feel like a wizard?7
-
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.21 -
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 -
!rant
Two years ago, I started to learn Ruby on Rails so I would at last know a server language even though it wasn't the almighty PHP. Two years ago minus a few months, I decided to put my first website online with Apache and Passenger. It took me a whole six hours with stress and cries for help until I finally saw my website's homepage displayed on my screen
Today, after a few more websites (and currently 3 more projects but still not released, dang it), I tried to update mySQL to 5.7 since I need it to be able to save arrays for a future project, but everything went full shitstorm with broken packages and lame-ass-shit tutorials that make you doubt your sanity.
So I decided to backup my database and my online websites and to reinstall the whole server and take advantage of it to update the current used gems (Rails 4.2 -> 5.1, not bad)
Not only it took me just a bit more than 2 hours to redeploy the websites, but I didn't felt at the edge of panicking once, and now everything works like a charm.
I feel fucking alpha now.2 -
One of my friends is a Ruby Developer.
His grandma is still mad at him for not gifting her the precious stone. -
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 -
I met you in High School. You were called Basic back then. You graduated and moved on to college and you became Visual Basic. Eventually when you became a professional after graduating you changed your name to Visual Studio cause you wanted to be cool. I still understood you then and now.
You were simple, straightforward, and I understood you more than some. But it wasn't enough for you, you wanted more. You started hanging around with others like Python, Ruby, Node.JS and M. That's when I started losing you.
Perhaps I grew old and tired, maybe that's why we drifted apart. I still don't know but I hope you never change again because then I will need to change. And sometimes change can be bad especially when we don't know who will last. We've been together for over 25 years. What's going to happen to us?
I hope to still be seeing you in some form in the future. Until then, Goodbye!4 -
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 -
!rant
Hello fellow devRanters, this weekend I've been working on devRant CLI client I want to share with you: https://github.com/stepnivlk/rrant
I'm using it as a fortune when logging into terminal and since it stores rants locally it is fast.
I spent only couple of hours developing it so there is some space for improvement :).
Enjoy it and feel free to comment/do codereview.4 -
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 -
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
-
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 -
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
-
The happy moment you start a new project a Find that you can use your old code, then realizing you don't remember how it worked but use it anyway.1
-
So I just recently had the pleasure to set up a Rails environment for a friend on Windows. I haven't used Windows in about 5 or 6 years, and the person I had to set it up for doesn't know much about programming at all.
I all went fine at first, install database, devkit thingy and git. Then set up the project itself. And there is where the problems started.
First windows would refuse to use SSL, because of some weird bug in the Windows version of rubygems. The suggested upgrade did not work so I had to switch some gem sources to insecure connections, but at least it did install everything correctly.
Alright, I thought, that's not _that_ bad, everything is running now.
He sent me a screenshot some time later. Something was wrong with the JavaScript runtime, and I could not figure out for the life of me what the issue was.
Later again he sent me another screenshot.
His Antivirus spyware was messing with the asset pipeline. (╯°□°)╯︵ ┻━┻
This was the point where I just said "FUCK IT, i'll just put everything into a fucking VM and let him use that".
I should have done that in the first place.
Long story short:
Setting up a development under Windows is painful.
Do yourself a favor and just use a VM.3 -
Its 6:57 AM here and I am still awake !! Anyone here today with me ? :D
Good Morning everyone BTW !8 -
Listening to chilling country music and learning whole new language at work after successful meeting. Life is worth living for such moments 😊4
-
I have multiple (in no particular order) :
Nextcloud : It was an idea that I had in my head as well - to take on corporations like Google in the space of personal cloud. Be free, open-source and put the users in charge.
Gitlab : The most open and transparent company that I've ever come across. And they work 99% remote. They've got features that no other players in the space have. All while putting users in control.
Fediverse social media - Mastodon, GNU Social, Diaspora (soon) : For taking a major step in the direction of putting the users in control of their data; all while enabling a decentralized social network.
Ruby : An open community and building a programming language that runs a lot of software of the world.
Python : The oldest thriving community that has a special place in the development community (and my heart)
Javascript / ECMAScript : The scripting language that grew to be a beast of it's own. -
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 -
Started new job almost two moths ago..
For almost 3 years I was developing custom themes, plugins, and widget for WordPress using PHP, jQuery/AJAX, and MySQL.
The new company that hired me brought me on as a backend developer to help rebuild their custom PHP Framework, and other web based software/products as their moving toward Google Cloud Platform.
When I started, MVC and OOP was new to me... took a couple weeks to get the hang of things, and understand their system.
Just when I was getting comfortable, I had a task assigned to me that was all NodeJS...
Had a 30 check-in the week I started the Node task, and was feeling pretty beat down because it was all new to me and I wasn’t making a lot of progress, and still not comfortable with Promises yet, and some other ES6 features but finding my way around slowly but surely.
Manager reassured me that I wasn’t going to be fired and it wasn’t unique to myself. Very encouraging to hear, but I’m my own worst critic so it’s frustrating not being able to make progress like I would with PHP projects.
Fast forward to this week, I started to review another task for a feed and found it’s all Ruby! Another language I have no familiarity with... and started to question if I’ll every get the hang of all these languages and be a solid team member...
Not only do I have to get a grasp on NodeJS and Ruby now, but then I’ll also have to get familiar with GCP and whatever else comes along with it...
Oh and I’m using Linux now instead of Windows/ OSX... so there’s that too.. plus the other command line tools the company built, and uses..
I was comfortable developing in PHP and know I needed to take a step and accept this job to move my career forward but it seems like I’m always behind the 8 ball...
Some days I wonder if it was worth staying a Wordpress developer and just focused on learning ReactJS and stay more Front-end than Backend..
I enjoy working with talented people but I don’t like being the low man on the totem pole knowing I don’t have the experience yet.
Does it feel like this for all devs?!?!14 -
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
-
8years ago - me. "oh let's learn ruby it might be fun?"
"oh nvm let's get into php."
talk about bad decisions?3 -
just discovered mailcatcher. love it! <3
can iterate over e-mail template in local environment now4 -
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 -
!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 -
!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 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. -
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 -
Refactoring a method of a 5 year old system. Probably one of the ugliest code I have ever seen. This is just a little piece of the ugliness6
-
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
-
Holy fuck... Ruby has the best fucking syntax ever!
Ruby is so awesome!!!! (But Lua is a bit better)9 -
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 -
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.
-
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 -
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 -
When you are helping another dev on their machine and they don't have caps lock set to <esc>
def replace
5DD:WQ
end -
context: I'm sort of a self-deprecating guy and I really don't look for validation.
So, i decided to fuck it. I tried to provide the best decisions in terms of money-wise/biz-wise but apparently this guys rather choose what he believes is best for the code... (he knows shit of coding and that's coming from someone who is not a software engineer but rather a physicist who happens to code).
So, now i let him make all decisions. no opinion from me. a few things are going to shit because of him... fuck it. i had it. as long as I get paid. fuck him.
this is probably common... sorry for the rant.7 -
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 -
Am I the only one who forgets to declare data types in Java after months of coding in only Ruby and Python? 😵1
-
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
-
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 -
That moment you find the method build is just a alias for the method new.
https://github.com/rails/rails/... -
Went bug hunting only to land in a controller method that's 125+ lines long, riddled with side effects, and.... no tests!
-
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 -
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 -
My Gripe With Implicit Returns
In my experience I've found that wherever possible code should be WYSIWYG in terms of the effects per statement. Intent and the effects thereof should always be explicit per statement, not implicit, otherwise effects not intended will eventually slip in, and be missed.
It's hard to catch, and fix the effects of a statement intent where the statement in question is *implicit* because the effect is a *byproduct* of another statement.
Worse still, this sort of design encourages 'pyramid coding recursion hell', where some users will first decompose their program into respective scopes, and then return and compose them..atomically as possible, meaning execution flow becomes distorted, run time state becomes dependent not on obvious plain-at-sight code, but on the run time state itself. This I've found is a symptom of people who have spent too much time with LISP or other eye-stabbingly fucky abominations. Finally implicit returns encourage a form of thinking where programmers attempt to write code that 'just works' without thinking about how it *looks* or reads. The problem with opaque-programming is that while it may or may not be effortless, much more time is spent in reading, debugging, understanding, and maintaining code than is spent writing it--which is obviously problematic if we have a bunch of invisible returns everywhere, which requires new developers reading it to stop each and every time to decide whether to mentally 'insert' a return statement.
This really isn't a rant, as much as an old bitter gripe from the guy that got stuck with the job of debugging. And admittedly I've admired lisp from afar, but I didn't want to catch the "everything is functional, DOWN WITH THE STATE" fever, I'm no radical.
Just god damn, think of the future programmer who may have to read your code eventually.2 -
Here's a great talk about the wonders of Ruby & JavaScript that every dev should see at least once https://destroyallsoftware.com/talk...10
-
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
-
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
-
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
-
This "rootless" OS X El Capitan security feature is bullshit for developers. Just found that one out the hard way.2
-
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
-
Let me rant! I don’t usually do this but this is just frustrating and draining. Please tell me if im wrong. We have authentication that needs to be refactored. I was assigned on this issue. Im a junior btw. I also attached an image of my proposals. The issue of the old way of our signup process is that when validation fails they will keep on accepting the TaC (terms and conditions) and on our create method we have the validation and creating the user. Basically if User.create(user_params) create else throw invalid end. (Imma take a photo later and show it you)which needs to be refactored. So I created a proposal 1. On my first proposal I could create a middleware to check if the body is correct or valid if its valid show the TaCs and if they accept thats the moment the user is created. There is also additional delete user because DoE told me that we dont need middlewares we have before and after hooks! (I wanted to puke here clearly he doesn’t understand the request and response cycle and separation of concerns) anyway, so if middleware is not accepted then i have to delete the user if they dont accept the TaCs. Proposal 2. If they dont want me to touch the create method i could just show the TaCs and if they dont accept then redirect if they do then show form and do the sign process.
This whats weird (weird because he has a lot of experience and has master or phd) he proposes to create a method called validate (this method is in the same controller as the create, i think hes thinking about hooks) call it first and if it fails then response with error and dont save user, heres the a weird part again he wants me to manually check on each entity. Like User.find_by_email(bs@g.com) something like that and on my mind wtf. Isnt it the same as User.create(user_params) because this will return false if paras are invalid?? (I might be wrong here)
This is not the first time though He proposes solutions that are complex, inefficient, unmaintainable. And i think he doesnt understand ruby on rails or webdev in particular. This the first time i complained or I never complained because im thinking im just a junior and he hs more experience and has a higher degree. This is mot the case here though. I guess not all person who has a higher degree are right. To all self thought and bachelors im telling you not all people who went to prestige university and has a higher degree are correct and right all the time. Anyway ill continue later and do what he says. Let me know if im wrong please. Thanks4 -
Hosting Rails is such a pain in the butt.
Heroku, too expensive
DigitalOcean, hard to maintain unless using Hatchbox (Hatchbox, too expensive)
Shared cPanel hosting, too limited, too slow...
I'm setting my own server home from scratch just so I can master fucking Rails deployment.7 -
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 -
One of my very first PR's didn't even get a comment and I worked hard on it...
Feels bad man, all I need is some kind of yes, thanks for this, or no, this doesn't fit the project goals.
After patiently waiting, went ahead and created my own gem! No response sucks.
Why does this happen?1 -
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
-
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
-
So, apparently I have start some heated discussions about idiomatic javascript or something.
While it's nice to have standard (and probably a linter), I guess creating an idiomatic javascript is not as easy as creating pythonic code.
IMO the reasons are:
1. Python has Guido van Rossum. The one and only dictator telling us what's right and what's wrong
2. Javasript has airbnb standard, mozilla standard, and some open source standards. Strictly take one of them, and your code will be non idiomatic. Cherry pick some styles and combines the ones that makes more senses for you, and your code become non idiomatic.
3. The language is changing. Very fast. Put your idiomatic code in github, leave it for a while, and it's become non idiomatic. So I don't know, but this kind of code, is idiomatic, but takes some times to understand what's going on
anObject = {someFunction, someOther, someKey: someValue};
At the end, I guess the point of those standards are providing one correct way to do something. The consistencies.
I understand it is an important aspect. But this started to be religion...
Like someone really get offended if you doesn't end your code with semicolon.
In that sense, why the javascript foundation (or something) allow a statement to not being end up with semicolon at all?
Also, this is a never ending debate: tabs or spaces? two spaces or four spaces?
This is going to be ' ruby' vs 'python' thing again. I don't know about nowadays ruby, but back then they said the biggest advantage of ruby is you can approach something by using different ways and they are all corrects. Not sounds so idiomatic for me.
Ah yes, I heard almost everyone love javascript and hate php despite the fact that devRant was built on top of php stack. Just FYI, that much hated inconsistent language has something named PSR. And how about javascript? I never heard JSR or ESR. Just ES5, ES6 and in near future ES7... Which are simply provide new ways to do things, add more enthrophy to this already-chaotic-universe.
Also. In vim, how the hell do you define basic indentation based on file type? I really think 4 spaces is just beautiful. But apparently, only python coders think the same. Rest of mortal out there use 2 spaces. Somehow it hurts my eyes, yet it is the standard right?
goddammit... looks like I'll spend more time learning about what idiomatic javascript really is, debating with some zealot thinking they worship the one and only true standard, rather than solving the actual problem...1 -
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 -
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!!!!! -
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.20 -
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 -
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. -
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 -
When you start your internship with zero knowledge of web development but then becomes responsible of back end web development. #learningthehardway #mybossCCgonnakillme1
-
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 -
Been writing a webcrawler to be integrated into Rails and possibly Phoenix (in the future)..
Friend A: Heyyyy. Woah. You speak Latin?
Friend B: Dude he's a hacker bruh.
Friend C: Omgomgomg can you hack J****'s FB?
Me: Guys. It's just code. (¬_¬) -
TFW you see ruby syntax and claim it's not even a programming language, then someone shows you a working example...
-
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 -
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
-
My dev area of focus is Stack overflowing. When you develop orient to errors, stack overflow is the best way to progress.
-
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 -
I really want to dive deeper in other languages. But everytime I see something with a not c-like syntax i can't muster the resolve to dive in.
Any advice to overcome that?3 -
Not a rant but I love the fact we can say there is a run away unicorn in staff slack and no one is bats an eye or it looks like there is a lot of orphaned processes lets investigate and murder all the orphanes2
-
I took a hakerRank challenge for an interview, I failed miserably.
All challenges included subsequences and I just kept reaching memory limit... My algorithm gets the answer, if just takes forever if the input is too large.
So fuck stupid me.
I am now googling about it but can not find something that explains it clear (in my opinion)
Would appreciate if you guys can recommend some resources.2 -
Has anyone heard of the crystal programming language?I just found out about it today and I think I'm in love 😍2
-
Decided to update ruby because why not, been at it for hours.. i just wanted ti code something simple :(
I am almost done -
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, 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 -
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
-
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 -
!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 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
-
!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 -
So I just found out I have to use amazon (instead of Heroku) for hosting a service I'm supposed to build. The environment just f**king refuses to bild and these are my logs. fml...
-
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 -
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 -
!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 -
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
-
So many forked processes curling webpages to get response status that I exausted my bandwidth... I need a server with good connection -_-
-
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 -
// 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. -
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
-
Love pattern matching, esp. in function clauses. No programming language can be considered feature rich without it. Yes, I'm looking at you, <mainstream programming language>1
-
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
-
Date.beginning_of_week = :sunday
Date.local(2017, 1, 1).wday # == 0
Date.beginning_of_week = :monday
Date.local(2017, 1, 1).wday # == 0
Almost caught me out there! -
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/...
-
I've just noticed this and now I'm clapping every time I stop my Sinatra application.
```
Stopping ...
== Sinatra has ended his set (crowd applauds)
``` -
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
-
Hi everyone, I just published my first blog post and would love to hear comments. Thanks in advance.
https://medium.com/@priom/... -
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~. -
Hey so I have to make something using both angular and rails and I wanna ask. After I manage to get angular running on rails, do I just proceed to build what I wanted on angular normally? Or is there a special way I have to do.
I'm learning to build something but I can't find specific guides on how to combine those to do so.
So I've found how to make it without rails. And how to link angular and rails. My plan is to learn both seperately then add. Will that work?
Sorry. My words are muddled. I'm just so tired.2 -
I got some feedback from an interview code challenge today. Sure the feedback was somewhat fair but then they complained about the couple of comments I had added and the guy sounded like he came out of the set from "everything is awesome".2
-
'net-ssh 4.1.0 conflicts with net-ssh (< 4.0, >= 2.7)'
Uninstalls net-e 4.1.0, runs command again
'Could not find 'net-ssh' (= 4.1.0) - did find: [net-ssh-3.2.0]'
Sometimes I just think dependency management was a mistake.2 -
I'm always on the lookout for something new to learn..
What should I do next (no particular order)?
TypeScript
AngularJS
Ruby7 -
My colleague once wrote 160 lines of ruby code that violated rubocop in 102 lines (and he thinks he is a "clever" senior)2
-
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? -
I don't think that it is a trend, but I'm pretty excited with the Crystal programming language. Ruby's cool syntax and a compiled language performance, sounds pretty good to me!
-
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
-
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
-
As a Vim evangelist, it's agonizing watching someone debug unit tests in RubyMine.
It physically pains me. -
Is Ruby dying? Its popularity is declining slowly and seems to be being overtaken by Python and JavaScript?8
-
Well... Finding a text editor/script runner for ruby has been one of the most arduous experiences in my programming career 💀 :/7
-
From time to time, there is time to code with imperial Star Wars music. Every time you have to have the feeling of building something bigger !
-
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 -
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? }17 -
I normally do front-end web development, but I am interested in learning some back-end. What are the best languages for back-end web development?14
-
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 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?
-
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 -
I'm seeing the rails intro by the creator and being honest, I'm not sure if all the abstraction is a really good thing or a really bad thing.1
-
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 -
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 -
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?11 -
Why are you like this RVM? Why do you work only 90% of 50% of the time? Sometimes it runs smooth like butter, sometimes it is easier to reinstall my OS than try to fix its issues.
-
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'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 -
Oh, hi "metaprogramming" (PHP in runtime), long time no see. Which reminds me why I ended up hating Rails & Ruby so much back then.
-
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 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.
-
If you've ever worked with Rails I think you know the problems that can be formed by the AssetsPipeline : c
-
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. -
Hello, can anyone help me solve this issue? I cant find something about it anywhere
https://stackoverflow.com/q/... -
Ruby and its "simplicity" hurts me... Tried to make a if-statement checking if user is signed in... Well logic would say it's "if (user != signed_in)" right? Well logic don't apply in Ruby, in this realm you do "if (user_signed_in?)". As a logic programmer this bugs me...
Anyone relating?4 -
Need to make a web app to some finantial stuff. I choosed ROR becuase is what i knwo. But for sure i want to learn somo other technologies as Laravel or Phoenix
-
PM2 is one of these tools that just works. (and I'm not even using to run the interpreter it's supposed to be used with.)
pm2 + rails = <3 -
So I'd like to start my (late) morning by throwing some shits and fucks at ruby, more precisely rvm and rbenv:
Why the fuck is it so hard writing scripts that work? I can script a fucking ruby build from 0 to 100, why the fuck can't your "amazing tool" set up paths and all the other shits so I don't get a fuck ton of alerts at night from CI just because rvm decides to INTERMITTENTLY not do it's job?
Why does it say it works and makes things easier when it doesn't? Why the fuck are you lying?
Why do I have to divert my focus and waste my time trying to figure out why it doesn't do the ONE thing it's supposed to do: install.ruby. That's it. No recompiling kernels, no launching fucking spaceships, no rewiring silicon structures, no quantum effects, just a plain simple ruby installation, one single version.
Why am I supposed to have a phd to work with this crap?? why can't it ever just fucking WORK as it says it does and should? Is it some kind of complex conspiracy to keep me busy so I can't play with my dog or what the fuck??!?!
I hope whoever wrote this crap sees this one day: GET YOUR SHIT TOGETHER or stop publishing open source software that waste our time.
Oh It wOrKs On My cOmpUtER and AlL teSts PaSS. I don't give a flying fuck. I hope all developers who think their job is done when it works on their box and tests pass get dick rot. Your job doesn't end there. Software should be intuitive and easy to use, not just "work'. No traps, no gotchas, no caveats, no endless configs and files and settings and vars and shits and ifs and buts.
Your product is not just a piece of code, but also the time you save people who use your crap. And you've fucked up.1 -
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??? -
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/6 -
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
-
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 -
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?! -
-----------------------------------------------
Which is your favourite open source library?
-----------------------------------------------8 -
does anyone knows how the FUCK to integrate Rails with MidTrans?
I don't hate rails, I just don't know how the FUCK to integrate it with my local payment.2 -
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
-
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 -
End statements in Ruby are interesting design decision since indentation matters. Why not do it like Python?1
-
!Rant
What do you think of Common Lisp vs the Cool Kids(programming languages) of the present ?
Is it worth to learn it ?2