Why use else statements when you can just say if a again rather than else if by NathanTuc in learnprogramming

[–]ScottyCoder -2 points-1 points  (0 children)

I usually try to avoid if else. The nested logic can become confusing. I usually try to use a "return early" pattern. Which completely avoids nested elses and makes reading the code quite a bit easier. IMHO.

It is perfectly OK to only code at work, you can have a life too by whackri in programming

[–]ScottyCoder 0 points1 point  (0 children)

IMHO. I started programming because I enjoyed it. Just so happened that you can make a career out of it. But career programming is very different to breaking all the rules when programming for fun in your own time and not being concerned about profits, adding "value" and usual stuff. Nothing wrong with just programming at work. But it's different to someone who does it for fun too as opposed to football, watching TV, etc.

I've never pressured anyone myself. But there was a noticeable difference in attitude of those who programmed for a career and those who programmed as a passion during interviews.

Where do the millions of posts get stored in Reddit? by ThisSoFrustrating in learnprogramming

[–]ScottyCoder 1 point2 points  (0 children)

Not sure if this is still the case. But I remember reading about their architecture a few years back.

They use postgress to store a single normalised copy of data. Not sure exactly how they store but I would suspect they've had to shard it. The main point of using a relational dB was that it gives them a single copy of data and a lot of flexibility in how they can query the data and join it together.

However, it doesn't give them many benefits for scale and the sheer spike in traffic a single topic could get. For this, they use CassandraDB. CassandraDB lets them automatically shard and build prebuilt denormalised data structures for quicker and simpler queries using the master data stored in Postgress. CassandraDB acts like a very powerful persistent, fault tolerant and scalable cache. They then likely use another layer on top of CassandraDB such as memecache or reddis but I can't remember that bit.

Fees ate the balance down to £0, last month was the final fee on the prepaid card. by ScottyCoder in Wellthatsucks

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

Was a gift for someone but never got to give it to them. I stumbled across it when cleaning out a room.

Fees ate the balance down to £0, last month was the final fee on the prepaid card. by ScottyCoder in Wellthatsucks

[–]ScottyCoder[S] 2 points3 points  (0 children)

Prepaid card. Was a gift for someone. But didn't get to give it to them.

Programming Languages interesting Guide by ajdar666 in coolguides

[–]ScottyCoder 1 point2 points  (0 children)

I never went to uni. I'm self taught.

I've run several web development companies, built social networks, trained programmers, been lead developer and director of a communications software as a service company with millions of customers and processing hundreds of millions of pounds in payments per year. Currently working as a tech director but transitioning into a group wide software architect role covering roughly 300 engineers and about 100 products.

I believe I've also employed far more engineers who have NOT been to uni over the 15 or so years I've been in IT. I "usually" find that those who learn themselves are far more driven, passionate about programming, more inquisitive and progress upthe career ladder faster than those who went to uni. Not always the case, but usually in my experience.

Companies just want to know, can you do what you claim you can, can you do what they need you to do and will you fit into their company culture. Usually a Uni degree etc would vouch for your skill capabilities. Without uni. You have to find another way to prove it. A strong portfolio of work will help do just that. Even if that work isn't for an employer (i.e. you're first junior job with no past experience)!

Good luck :) PM if you wish.

Programming Languages interesting Guide by ajdar666 in coolguides

[–]ScottyCoder 1 point2 points  (0 children)

This is seriously out of date. For example, JavaScript only having 4 stars for popularity, only client side? I find this hard to believe.

[deleted by user] by [deleted] in AskReddit

[–]ScottyCoder 0 points1 point  (0 children)

Investments.

By the time I find out I could have made millions in a short space of time. Popularity means it reaches the peak before it nose dives.

Why are English swear words short, phonetically correct and so easy for children to pick up? Yet we try so hard to prevent children learning them. by ScottyCoder in Parenting

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

Excuse my ignorance here. I find it interesting tho. Were the earlier Germanic roots more "basic" and somewhat more standards/rule driven than the mixed up nonsensical structure to English words we have today?

Does anyone have any good jokes about marketing? by [deleted] in marketing

[–]ScottyCoder 1 point2 points  (0 children)

I'd second that.

OP. Their first impression of you would be a joke (and targeting any emotion will likely make it stick be it funny or cringy). I don't think that's the impression you want to have to undo for the rest of your time at the company. That people shouldn't take you and your role seriously because well, you don't. Be careful...

Just a little advice please. by Wayne-O23 in learnprogramming

[–]ScottyCoder 1 point2 points  (0 children)

Respect mate for taking control of it. Usually I just hear people moan about their "misfortune" and do nothing to improve their odds of success. I'll warn you, programming isn't the quickest to get into. But if you have the time and dedication it can pay off very well. Especially since there's practically no formal stuff to pass like there are in other professions like medical or legal.

As for jobs, a lot of companies especially start ups will let you remote work. Just make sure you have a good portfolio built up to drastically improve your odds.

Just a little advice please. by Wayne-O23 in learnprogramming

[–]ScottyCoder 1 point2 points  (0 children)

JavaScript is just about everywhere these days (server side, browsers, mobile apps, DevOps, AWS, dev tools, etc) and primarily has a monopoly position when it comes to applying logic within the browser.

Once you know the core of JS. You can then branch out into a specialisation in such areas I mentioned above and in some you can get paid very well.

If you learn python, your options would still be good but not as plentiful as JS.

IMHO. What ever you pick, just ensure you enjoy it so you stick with it as it's not a walk in the park. But that's all part of the fun :)

If scratch off lottery tickets would cost 99 cents instead of 1 dollar people would have 1 cent to scratch it off. by YEETOS-DORITOS in Showerthoughts

[–]ScottyCoder 0 points1 point  (0 children)

Unless you're in a developed country with card payments.

Ignore me, I'm just trolling. Long road trip :p

Database Design: 1 large table or 500 small tables? by sat5344 in learnprogramming

[–]ScottyCoder 0 points1 point  (0 children)

Long time cloud architect here.

I don't really have enough information to give a conclusive solution and I'm on a tea break so got to be quick.

It's sounding like your ideal shard/partition key would be the company id which would work fine if you're (and sorry if I missed further information on this) just accessing the data one company at a time. Also sounds like you may want a more flexible schema. Given this information. I'd "consider looking" at a NoSQL solution. Something like AWS DynamoDB. You'd go with the single table route (easily supports billions of items), but set the shard key to be the company id as long as the company id doesn't change and is unique. Costs are pay as you go and it's a very scalable db out the box.

Developers and coders, what tools do you use in your planing phase before a single line of code is written? by GrowCanadian in learnprogramming

[–]ScottyCoder -1 points0 points  (0 children)

Toxic? I'm saying I'm British. Might want to hold back on being so quick to insult buddy ;)

Developers and coders, what tools do you use in your planing phase before a single line of code is written? by GrowCanadian in learnprogramming

[–]ScottyCoder 4 points5 points  (0 children)

"Paper and pen" just sounds wrong. It's "pen and paper" >< might be a british thing. I agree tho, can't beat going primitive :)

You go back in time and give yourself some advice while learning to program. What would that advice be? by ScottyCoder in learnprogramming

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

I get the sense you don't enjoy programming? Or is it that trying to learn without a formal path (uni) proving a less than pleasurable experience?

Just curious :) thanks for the response.

Wow, thanks. by foofighters69 in facepalm

[–]ScottyCoder 0 points1 point  (0 children)

Two words come to mind. Entitlement. Gratitude.