William Kennedy

Joined

12,210 Experience
91 Lessons Completed
4 Questions Solved

Activity

Posted in Data Structure - Going back to the basic with Ruby

Hi Kelvin,

Let me try and put my own perspective

1 - Solid understanding of programming and computer science fundamentals. What do they want me to know?
Cracking the coding interview book
2 - Data Structure (list, stack, array, tree). 
Cracking the coding interview book
3 - With the data structure, how to search and sort with them. Best ways of searching and sort.
Cracking the coding interview book
4 - Understand the Big Oh problem and how to identify and solve it.
Cracking the coding interview book

Another topic that companies are asking for Senior Position (one day in the future)

5 - API design technique. What would it be?
Depends what the API does but I have built a few in the past and I wish I approached things differently. Here's a book I've been meaning to read http://apionrails.icalialabs.com/

6 - Strong familiarity with principles of database design and architecture. 

Refactoring Ruby, Code Complete etc...

7 -  Familiarity with OWASP and/or other web security practices.

Not sure but Handbrake is a useful gem for spotting security problems. That's I learned about security. 

8 - Knowledge of optimization tactics such as query optimization and caching

Rails Performance is a great course that covers Rails Performance in-depth https://www.railsspeed.com/ and Chris has a few videos on here as well. 

Hope that helps,
William

Posted in 'bcrypt' gem install Error

Your welcome but I think it was you who did all the work. Glad it's working. 

Posted in Building A Hosting Platform in Ruby Discussion

Cool presentation Chris. I was actually wondering how you managed env variables on hatch. I assume, they are saved in the HatchBox app and a script gets runs to update the .rbenv-vars-file or am I way off the mark? 

Posted in 'bcrypt' gem install Error

It looks like you are missing some development packages or dependencies.


sudo apt-get install ruby-dev
 

Are you on a mac? You may also need the command line tools. 

brew doctor can help in these situations.

For competitive reasons, if an orders id is present in the form via inspect element, the competitor is able to guess how many transactions have been done.

That is the main reason.

Perfect. I will stick with friendly id. Another question just to follow on from that. What about hiding the id in forms.

In this case the the id attribute has the id of the order. I am looking at gem called obfuscate id but it seems deprecated. This is a Rails 5 app.

What would be the best practice in this case?

What is the best way to generate SEO friendly urls?

The Rails default is to put the id in the URL e.g articles/2

I want to be able to have a url like this

articles/article-heading

Previously I have used the to_param method to generate a custom url as well as a gem called Friendly_id

I am just wondering if anyone has any other suggesstions on best practices

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.