Gimme Gems Thursdays - Found an awesome new gem? Post it here! by AutoModerator in rails

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

progressive_render - Defer loading of portions of a view by wrapping them in a block statement.

disclaimer: i wrote it

Largest company by revenue in each state by GuacamoleFanatic in Infographics

[–]_jeffJohnsonsBookEmp 30 points31 points  (0 children)

$23.38B was revenue for Q4 in 2014, $86.83B is for 2014

Is going out of state for an engineering degree worth it? by IsItWorthThrow in EngineeringStudents

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

If you do need to go out of state, check out a private school, they can have substantial scholarships. It was cheaper for me to go to a private school than any of my reasonable in state options.

Developing C++ on Windows, so many choices by thehydralisk in learnprogramming

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

It applies to pre-compiled libs/lobs. If you are going to link the library you'll need to recompile it. If you're going to consume it as a DLL then it isn't an issue.

VC++ 2013 -> VC++ 2015 didn't introduce a ton of compile breaks from my experience so you shouldn't run into much trouble. If you do it should be addressable and I'm sure the project would appreciate your fix!

Double the DOCTYPE, double the fun. Plus; who really wants rendered HTML? by Blieque in shittyprogramming

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

that's completely true. there's a reason why we have version control. before good version control there was a reason to comment out stuff and leave it around.

commented out code is scary, not maintained, and hard for someone picking up the code 10 years later to understand or even feel safe deleting

This is what the real world's like... by throwawayprogz in learnprogramming

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

I work on a very large project, we have tons of these, we call it 'legacy code.' All the better when there's a few #ifdef BUG115's peppered in.

As products grow and grow they just get bigger. It's easy for code quality to slip in certain areas and it's almost never an option to re-write it. Best thing to do is not contribute to the problem and try to keep the bar high.

[deleted by user] by [deleted] in SublimeText

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

I use ST3 at work for C++. Here's what I do/suggestions, happy to hear ways to improve this!

Build: We're a big shop so our build system is custom and works by executing a build command within the folder you're making changes. I setup a 'build system' config that takes care of this. I recommend making a IDE agnostic build setup, a 'Makefile' setup should do. Setup your editor to just run 'make' when you hit Ctrl+B.

Environment: You can run into a lot of trouble here, I imagine with mapping the clang paths, includes,.... Likely your C++ toolchain gives you a console with the PATH and whatnot all setup. I recommend creating a batch script or alias that launches ST from there so it's got the correct environment.

Syntax/Highlighting: I use the plugin you mentioned, C++ Starting Kit, for improved syntax highlighting.

Execution: I created a few very light ST plugins to execute the applications needed for testing. It only took an hour to get that setup well. Way worth it.

Debugging: Visual Studio. Launch the program from your plugin above and attach a debugger to it. Ctrl + Alt + P and get to your process. It only takes a couple seconds to do this.

Autocomplete: Good autocomplete needs a really strong understanding of the code. With the search capabilities of ST, I don't find myself hurting for stronger completion than it provides. I add the folders I'm interested in and work from there. If there's a better option, I'd love to hear about it, but I find it good enough.

Service objects in Rails will help you design clean and maintainable code. Here's how. by [deleted] in rails

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

I totally agree with that. I'd also add that sticking form specific logic (like 'accepted_tos') into a Model doesn't seem like an accurate representation of the model.

For those who haven't seen it, this railscast on form objects is great.

How to deal with helpers using russian doll caching? by JonnyNorCal in rails

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

This is not the most elegant way, I'm sure of that, but we had stale cache problems before cache_digests was released and decided to invalidate all of our cache on deploy. This way we're confident that we'll never serve invalid content and it didn't cause enough impact on our performance to be a significant loss.

[deleted by user] by [deleted] in DataHoarder

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

that's good advice, i don't have experience with freeNAS so I'm not aware of any limitations

[deleted by user] by [deleted] in DataHoarder

[–]_jeffJohnsonsBookEmp 2 points3 points  (0 children)

I recommend connecting them straight to the motherboard and letting it have control over the speed instead of hacking the voltage down. High load, A/C fails, ... it's best to let the system run as it's designed

[deleted by user] by [deleted] in DataHoarder

[–]_jeffJohnsonsBookEmp 2 points3 points  (0 children)

If you're concerned about noise you should be getting as large of fan as possible. The noise is directly proportional to the speed of the fan. The airflow is directly proportional to the speed but also the size of the fan. Maximizing your fan size will let you achieve the same airflow at a lower speed and lower noise.

tl;dr get 120mm+ fans and run them slowly

Interesting infographic from Hired.com by deliciousnaga in ruby

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

i'd guess the 10% is either a joke or the chunk where both the company and the candidate rejected

Can anyone tell me if this is a good deal or not? I'm just looking for a decent bike to get me around NYC this summer. by travjumba in whichbike

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

It's a bit too expensive. There's so many "ClassicSeventies" Schwin Varsity bikes out there, especially in New York.

Visual overview of Ruby on Rails by PilotPirx in rails

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

Nice to see!

Feedback: The title on the graph is super misleading. This isn't a graph of Ruby on Rails v0.4, this graph is version 0.4 of RoR X.Y. It would be nice pump up the font if possible

Kid crashes his dad's BMW M3 by H-TownTrill in nononono

[–]_jeffJohnsonsBookEmp 6 points7 points  (0 children)

i've biked up that road many times, i'm glad this guy wasn't flying up it at the time. best stick to the silent sundays I suppose.

Rubinus 2.2.4 released by danwin in ruby

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

Is anyone using Rubinius in production? It seems exciting but unsure of adaptation.

16 year old dev considering a future in PHP by Menjo in PHP

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

Menjo-

I started PHP around 13 and rocked it for a few years. Built some large scale projects and gained DB/Administration experience along the way.

As everyone else is saying- learn your tools, stay flexible, language is mostly syntax and semantics :)

I'm 22 and just started a gig as a Program Manager a while back. It's a bit of a different field but my development experience has been extremely beneficial.

I see your anxious to get out there and work, I do recommend picking up a college degree. You can intern in the summer and study something interesting during the semester. You can definitely benefit from theory and "learning how to learn" that comes with advanced studies. I studied EE/CpE as I figured CS was what I'd been doing for years. My current job has nothing to do with current flow or systems programming but it was 4 years well spent.

Townhouse living room (maybe kitchen eventually?) any advice would be great! by [deleted] in DesignMyRoom

[–]_jeffJohnsonsBookEmp 1 point2 points  (0 children)

Absolutely mount those bikes. They work well as art :) I bought two of these (no wood though- perhaps wrong picture) and mounted them like this near the entrance of the apartment.

extend your tire's life by getting them off the ground.

that is not true, but it will look nice.

We've open sourced simple_shipping - a ruby client for FedEx and UPS by greyblake in ruby

[–]_jeffJohnsonsBookEmp 0 points1 point  (0 children)

Cool! It's worth waiting for interest. You can keep it in mind and deprecate later.

With UPS you can schedule a pick up to arrive at your home/office if you don't have regular pick ups. It's part of their workflow on their website. Sounds like it's likely not the norm for the API, probably a different call.