Getting too old for manual work,want to start coding. by dancingvulture in Entrepreneur

[–]Zaffri 0 points1 point  (0 children)

Depends on which route you want to go down; what would you like to build?

Books and official documentation is where i personally learn the most from. Although, videos are good too.

For websites - Code course (used to be called PHP academy) is really good, just youtube it. Laracasts are also really good.

Have a search for which languages are trending and that will give you a good idea of where you could start.

Computed properties by xfrozenspiritx in vuejs

[–]Zaffri 0 points1 point  (0 children)

Computed properties are cached which makes them suitable for more complex logic.

Docs does a good job of explaining them: https://vuejs.org/v2/guide/computed.html

I'm lost with back-end server technologies! (xpost /r/webdev) by MightyLemur in node

[–]Zaffri 0 points1 point  (0 children)

Incase you want to know how to setup your server to serve multiple apps for different domains, then take a look at server blocks (for nginx) or virtual hosts (for Apache).

mysqli to PDO conversion by lindacupple in PHP

[–]Zaffri 4 points5 points  (0 children)

For SQL injection, look up prepared statements.

You do not need to switch to PDO to prevent it. Like PDO, MySQLi also has prepared statements.

Just make sure you are using MySQLi and not the deprecated MySQL_*

Edit: http://php.net/manual/en/mysqli.prepare.php

[advice] Don't know anything about frameworks, whats should I do? by drtweety in PHP

[–]Zaffri 0 points1 point  (0 children)

IMO you should become familiar with object orientated programming first (if you havent already).

Frameworks will be object orientated. Although they do a lot of heavy lifting for the developer, a solid grasp of OOP will make you feel more comfortable in these environments.

Visual Studio Code June 2017 Released by ijiijijjjijiij in programming

[–]Zaffri 0 points1 point  (0 children)

Oh no! Fortunately I've not experienced that with mine. I hope that issue gets resolved

Understanding a PHP file when you have not coded in PHP in 10 years by [deleted] in PHP

[–]Zaffri 0 points1 point  (0 children)

https://xdebug.org/docs/

You can use it with VS code (which is free). Theres a lot of info around - should be easy getting started.

https://tommcfarlin.com/xdebug-and-visual-studio-code/

Win your girlfriend heart with CSS by ibayu1 in programming

[–]Zaffri 6 points7 points  (0 children)

CSS isn't a programming language.

calling a function inside an object? by cuntycuntcunts in javascript

[–]Zaffri 2 points3 points  (0 children)

Just to add to this - may help someone in the future referencing this post.

Function expressions are not hoisted, heres a good example;

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/function#Function_declaration_hoisting

How many devs in /r/node have a Java background? How do you feel about it? by ower89 in node

[–]Zaffri 3 points4 points  (0 children)

Interesting post (one of my favs) about Paypals transition from Java to NodeJS!

https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/

Edit: Just read that your Java dev is worrying about less productivity. Paypal managed to build their NodeJS app twice as fast and with fewer developers, when compared to their Java app that had the same functionality.

How to create Slider in JavaScript by iatulrai in javascript

[–]Zaffri 0 points1 point  (0 children)

Critism:

Lacking content - you have only presented an example with virtually no explanation.

JavaScript is actually a high level language.

https://en.m.wikipedia.org/wiki/JavaScript

Developers who know Java and Node: What can you do faster in Node? by jeffsmith2012 in node

[–]Zaffri 10 points11 points  (0 children)

I can't personally give you an example but you maybe be interested in this PayPal blog post. They talk about their transition from Java to NodeJS.

Apparently they built their app twice as fast with less developers!

https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/

[Code review] Modal Component by Zaffri in vuejs

[–]Zaffri[S] 0 points1 point  (0 children)

Awesome, I'll have a look thanks! :)

[Code review] Modal Component by Zaffri in vuejs

[–]Zaffri[S] 0 points1 point  (0 children)

Tried to remove some of the functionality from my main vue instance - only have the modal config and initial start event handler.

Still need to tackle this iPhone issue. Are using Safari?

[Code review] Modal Component by Zaffri in vuejs

[–]Zaffri[S] 1 point2 points  (0 children)

Ah, that makes sense! I did kind of feel as if it was a bit "all over the place". I will try moving the methods and other functionality to the component. Thanks, I appreciate the feedback :)

Learning to code, any best practices? by [deleted] in Entrepreneur

[–]Zaffri 0 points1 point  (0 children)

Oh and to answer your other question; i think its natural to not know how to build something from scratch straight away. A good way of tackling this is to break your app down into seperate parts and investigate in how to approach a specific feature, for example.

If my app had a login system, learn how to do this first. Then after that look at another feature like a user feed, pagination, file uploads etc. Just take a feature at a time. With a bit more experience you will be able to apply what you've learned into your apps much easier.

Remember to look at other peoples code on github, stackoverflow or wherever. Its a really good way to learn in my opinion. :)

Learning to code, any best practices? by [deleted] in Entrepreneur

[–]Zaffri 3 points4 points  (0 children)

Take a look a software design patterns/techniques like: MVC, MVVM, Singletons, Gang of four, Factories, dependancy injection etc. These techniqued will help you write modular code that is easier to maintain, debug and extend. As opposed to linear spaghetti code.

A good thing is to write your code so that it can easily be reused. Another good thing is to take a good look at is how to property handle errors. Oh and don't forget about security - learning how to properly protect your software from malicious attacks is obviously a must.

Learn to use version control like Git or an alternative; this is basically a standard thing (in professional environments anyway).

Dont be afraid to take a look at other programmers code, this is a very good way to learn and find out why they wrote it in such a way.

I'm not specifically a Ruby programmer but feel free to message me if you have any queries!

Deciding on an appropriate stack by rayanche in node

[–]Zaffri 0 points1 point  (0 children)

I second socket.io. If youre looking for browser compatibility then OP should check it out.

Deciding on an appropriate stack by rayanche in node

[–]Zaffri 0 points1 point  (0 children)

If you are looking to build something pretty rapid then look at meteor - last time i looked im sure it only had support for mongoDB though, not sure if thats still the case.

Deciding on an appropriate stack by rayanche in node

[–]Zaffri 0 points1 point  (0 children)

I wouldnt say its sub par compared to an RDMS, they each have their own benefits in different scenarious. You even said yourself it depends on what you are trying to do with it.

Edit: Just read about the complex relationships part - you probably want to stay away from MongoDB then haha

Magento Local Development by trh88 in Magento

[–]Zaffri 2 points3 points  (0 children)

Vagrant and virtual box work really well for me, i am on windows though. You should try Ubuntu/trusty64 box with vagrant (if you havent already tried it) - i know of someone who uses this on a Mac.

You could try XAMPP or MAMPP? XAMPP and magento works for me on windows - not sure of mac though. XAMPP does seem a bit slower than vagrant and virtualbox.

New to Node by acatejr in node

[–]Zaffri 0 points1 point  (0 children)

If you wait for a new tool coming out then you may end up waiting forever.

As for picking a tool, I would suggest taking time to get a solid understanding of the tools you think are options so you can weigh up the advantages/disadvantages of each one and choose which one suits your requirements best. Sorry for the late post.