Reputation Activity
-
rbrtsmith got a reaction from hardyian in Photo sharing websiteYeah the infrastructure required to handle mass uploading of image files will be substantial, especially if you expect it to scale upto a large number of users.
I suggest you pair up with an engineer who has a good understanding of a platform such as AWS. I hope you have deep pockets as to get such a system off the ground in a way that can scale won't come cheap.
I definitely won't go for any locally hosted server, you want a cloud based solution, like AWS as mentioned already, essentially you'd want images stored in an S3 bucket and a database (Dynamo) that holds associated information to the entries etc.
-
rbrtsmith got a reaction from sash_oo7 in Error using Joi valuidation with node expressYou are also better off testing servers using a tool like Insomnia or postman rather than a HTML file then you can narrow down where your problem is.
Going off the Joi docs `validate()` isn't a function that's directly attached to the module. You need to create a schema and then validate against that see the first example here https://joi.dev/api/?v=17.4.0
const schema = Joi.object({ username: Joi.string() .alphanum() .min(3) .max(30) .required(), }) schema.validate({ username: 'abc' }); // -> { value: { username: 'abc' } } schema.validate({}); // -> { value: {}, error: '"username" is required' } I personally prefer using Zod for validation https://www.npmjs.com/package/zod
-
rbrtsmith got a reaction from fisicx in In need of some practice projectsUgh the system isn't designed to keep you down, that's why there's so many stories of people who've risen up and made a success of themselves. We have fantastic opportunities in this country, better then we've ever had historically with easy access to the world's information. Do with it what you will.
You get out of life what you put into it. I've never understood why people want to jump to the reward without putting in the hard work and effort.
You have to accept competition in life because if anything is worth getting you can bet there will be more than just yourself wanting it. This isn't a designed system, it's basic human nature.
I really do feel for those that are held back because of health issues, or live in a country that doesn't afford an education and opportunity like we do here. I think this is why so many who immigrate here from worn torn countries or those with extreme poverty do so well - because they see it as the opportunity of a lifetime and they grab the bull by both horns.
Theo Paphitis (From Dragon's Den) couldn't write a word of English and had to get help to write his first job application upon moving to the UK. Fast forward about 10 years and he was wildly successful - and all due to hard work and perseverance.
My Uncle moved here from Iran with nothing, zero education to escape persecution. He landed a job washing dishes. About 15 years later, after working 60 hour weeks and doing everything in his power to learn and get better at his job — became the restaurant manager and now owns a company importing and distributing various Italian and Iranian oils and spices etc.
There's loads of similar stories of people facing far worse hardships than you or I. Unless you have a health problem, family issues (caring for somebody full time for example) then there's really no excuse, if you're unhappy with where you're at then you can only blame yourself and the decisions you've made.
What happens in the next 10 and beyond years is largely down to the choices you make… Do you keep on procrastinating; blaming the system which leads to nowhere? or do you accept where you're at and formulate a plan to move forwards?
-
rbrtsmith reacted to Jack in In need of some practice projectsA WordPress plugin isn't a good thing to base your learning from. WordPress has terrible coding standards and doesn't use any modern aspect of PHP.
You need to decide whether you prefer frontend or backend development. I would avoid full stack development until you're competent in either of those areas. Learn the fundamentals of a language you want to learn, like JavaScript, and build something basic that builds on what you have learnt. As I mentioned previously, a todo list is good practice for using arrays, objects and functions, for example.
Don't waste your time going through other peoples projects and trying to learn from them. There's no guarantee those projects are written to a good standard and it's generally a poor way to try and learn to code. You won't know what half of it does, and playing around with code doesn't equal knowing exactly how it works.
-
rbrtsmith got a reaction from NOCK in In need of some practice projectsUgh the system isn't designed to keep you down, that's why there's so many stories of people who've risen up and made a success of themselves. We have fantastic opportunities in this country, better then we've ever had historically with easy access to the world's information. Do with it what you will.
You get out of life what you put into it. I've never understood why people want to jump to the reward without putting in the hard work and effort.
You have to accept competition in life because if anything is worth getting you can bet there will be more than just yourself wanting it. This isn't a designed system, it's basic human nature.
I really do feel for those that are held back because of health issues, or live in a country that doesn't afford an education and opportunity like we do here. I think this is why so many who immigrate here from worn torn countries or those with extreme poverty do so well - because they see it as the opportunity of a lifetime and they grab the bull by both horns.
Theo Paphitis (From Dragon's Den) couldn't write a word of English and had to get help to write his first job application upon moving to the UK. Fast forward about 10 years and he was wildly successful - and all due to hard work and perseverance.
My Uncle moved here from Iran with nothing, zero education to escape persecution. He landed a job washing dishes. About 15 years later, after working 60 hour weeks and doing everything in his power to learn and get better at his job — became the restaurant manager and now owns a company importing and distributing various Italian and Iranian oils and spices etc.
There's loads of similar stories of people facing far worse hardships than you or I. Unless you have a health problem, family issues (caring for somebody full time for example) then there's really no excuse, if you're unhappy with where you're at then you can only blame yourself and the decisions you've made.
What happens in the next 10 and beyond years is largely down to the choices you make… Do you keep on procrastinating; blaming the system which leads to nowhere? or do you accept where you're at and formulate a plan to move forwards?
-
rbrtsmith got a reaction from drcensor in What Online Web Business can build to make some moneyI am in the investment game and I keep well away from blockchain and anything crypto related. In fact I don't actively invest at all. I do so passively.
I put all my investments into the S&P500 index (same amount each month via direct debit) and just leave it to grow. It's not very exciting but the returns are better than 95% of other investors who think they can beat the market. Almost all of them fail over the long term.
I also invest in property via my primary residence, people claim this doesn't make you money because as the house you own goes up in value so too does the rest of the market. However if you choose the right property in the right area you can have work done to it, make it larger and then sell for a profit. I've spent ~£25k on my home in the past two years and had it valued - it's gone up by £50k not bad for some tax free profit when I eventually come to sell.
-
rbrtsmith got a reaction from fisicx in What Online Web Business can build to make some moneyI am in the investment game and I keep well away from blockchain and anything crypto related. In fact I don't actively invest at all. I do so passively.
I put all my investments into the S&P500 index (same amount each month via direct debit) and just leave it to grow. It's not very exciting but the returns are better than 95% of other investors who think they can beat the market. Almost all of them fail over the long term.
I also invest in property via my primary residence, people claim this doesn't make you money because as the house you own goes up in value so too does the rest of the market. However if you choose the right property in the right area you can have work done to it, make it larger and then sell for a profit. I've spent ~£25k on my home in the past two years and had it valued - it's gone up by £50k not bad for some tax free profit when I eventually come to sell.
-
rbrtsmith got a reaction from Talzus in This is where I am strugglingI would copy existing designs, most web developers don't do any design work. In the past I've been handed designs that I code up and that was my job. I typically get more involved at the design stage these days but still we have dedicated designers and engineers.
So if design isn't your thing then focus on what you enjoy and improve that. You can always pair up with a designer for freelance projects or join as an employee at a firm (most of which have dedicated designers)
-
rbrtsmith reacted to Jack in UK web courses?I think the React course is one they update once or twice a year. The current version covers hooks and some of the newer API's.
If they want to learn some basics well, one of my favourite courses on there is the "JavaScript: From Fundamentals to Functional JS, v2" course. I learned a lot from the first version of the course years ago, so I'm sure the newer version is just as good. Bianca is easily one of the best teachers on there, along with Will Sentence, but his stuff covers more intermediate topics. It's part of the beginner learning path - https://frontendmasters.com/learn/beginner/
-
rbrtsmith got a reaction from NOCK in Is the system keeping me from succeeding?Simple answer No.
I am honestly sick and tired of people blaming the system for their own shortcomings and they need a kick up the proverbial.
We have amazing freedoms in this country that few outside get to experience. Unless there's a good medical reason or similar there s no reason why you can't make a success of yourself. Nobody has a right to be successful it has to be earned and by being born in the UK we all have that opportunity. If you lived in a place like Syria then yes you're up against it. In the UK people at large have the choice to control their own success, some expect it to be handed to them and when that doesn't happen they often blame others or "the system".
If you want success you have to go out and earn it. You have to work on self improvement and improve yourself, fix weaknesses because if you don't nobody else will.
-
rbrtsmith got a reaction from davep in Numpty question: Margins not workingAlso why are you using element selectors? those styles will be apllied to every `ul` or `li` that exist within a div. You should only use element selectors for truly global styles. Otherwise you want to add a class and use that as your selector.
-
rbrtsmith reacted to fisicx in Do people here work from home now?My wife used to commute to London every day. Everyone is now working from home and the company plans to close the office. The savings will pay for 4 more members of staff.
If they need to meet up they can rent a room for an hour.
-
rbrtsmith got a reaction from Jack in Do people here work from home now?An update for me and a change of heart - I've now gotten used to remote working and actually quite happy to never return to the office. You do miss out on the social interaction however there's a number of benefits to WFH
Save money on travel costs Company I work for saves on office costs which can be spent elsewhere e.g. training, social events etc Save time from travelling, I gain about an hour per day I get to expense my broadband costs less people travelling is better for the environment and if I need to nip out the roads are a bit quieter -
rbrtsmith got a reaction from NOCK in Do people here work from home now?An update for me and a change of heart - I've now gotten used to remote working and actually quite happy to never return to the office. You do miss out on the social interaction however there's a number of benefits to WFH
Save money on travel costs Company I work for saves on office costs which can be spent elsewhere e.g. training, social events etc Save time from travelling, I gain about an hour per day I get to expense my broadband costs less people travelling is better for the environment and if I need to nip out the roads are a bit quieter -
rbrtsmith reacted to Jo 90 in Despite everything that's been said and all the advice/criticism i've received, I still think web dev or electrical engineering is the best thing to pursueNext time I need some financial advice I'm going to ask a web designer. 😃
-
rbrtsmith reacted to NullDrone in Despite everything that's been said and all the advice/criticism i've received, I still think web dev or electrical engineering is the best thing to pursueThanks for that Robert i'm feeling quite a bit better now.
-
rbrtsmith reacted to fisicx in Despite everything that's been said and all the advice/criticism i've received, I still think web dev or electrical engineering is the best thing to pursueOut mortgage will be paid off in 3 years. I can then stop work and enjoy life. The only money I need will be to pay for food and utilities plus a little bit for fun stuff.
Yes, in the initial years you pay more interest but after time you start paying off the principal. It doesn't take long for the mortgage to fall very quickly. I remember my Dad telling me his last mortgage payment was under £50.
-
rbrtsmith got a reaction from Jack in Despite everything that's been said and all the advice/criticism i've received, I still think web dev or electrical engineering is the best thing to pursueOne thing I know about is houses and investments.
You're right that the interest on a mortgage can be looked at as rent, so renting isn't 100% dead money. However financially renting over time will make you worse off — Especially in the long term. Let me explain
Interest on a mortgage is typically much lower than equivalent rent. I currently pay about £500/m in interest on the mortgage for my house which I've owned for 2 years. However if I were to put the property on the rental market it would cost a prospective tenant around £1600pm to rent. Remember a mortgage has two portions when you pay it: the interest and the principal, the principal is essentially building your equity, only the interest portion is going to the bank. Given the historically low interest rates we're getting a superb deal right now. Even if they were to rise to 5% it's still a MUCH better long-term deal than renting. The payments on my mortgage will stay fairly stagnant (with some fluctuations with interest rates, which reduces over time as the principal gradually falls), however when renting over a long period your rents would go up with inflation. Fast forward 20 years assuming and inflation rate of 3%/y the rental on my house would be £2600pm. Compare that to the mortgage at the time, there's 5 years left to pay and the interest at that point would be about £300/m assuming a 5% interest rate. Eventually the mortgage is paid off and you have no rent to pay. You can always release equity to invest elsewhere - perhaps in the stock market or some Buy To Let properties.
The main benefit to not having a mortgage is freedom to move around quickly say a big opportunity presents itself in another city, houses are a very illiquid investment, costly and time consuming to buy/sell etc. You should be settled and prepared for the long haul if you want to buy, but long term it's one of the best investments you can make.
Another benefit to owning is security - you'll never be in the position of your landlord wanting to sell out, forcing you to move. You can decorate or alter the house to your taste, when you eventually pass away it can be passed on as part of your estate to your loved ones.
I personally try to treat my home as a home, and not an investment. I know long term it will put me in a good position but my "actual" investments are in the stock market where the YoY gains far outstrip what you'd typically make from your primary residence, is more liquid and diversified. (Ignoring Buy to Let here for simplicity)
-
rbrtsmith got a reaction from fisicx in Where can I find examples of high quality code?I've got a degree so I know what I'm talking about. It's not 100% worthless but if I had those 3 years again (and not have had a student loan to pay off) I wouldn't have bothered.
Even for my first job as a web dev my degree wasn't even looked at. All they cared about is: "would this person deliver value for money" Funnily enough I was training people who had a degree in Computer science / similar 6 months after starting my first job (Not because they weren't smart but what they were being taught was largely out of date) - so I'd been coding around 12 months. I was earning more than people who'd spent 3 years studying for it and got in a load of debt; being taught stuff, much of which would never be used.
Currently the team I'm on is a mix of people who have degrees and don't have degrees, there's no difference between the two in terms of position and salary. We took on a junior dev 12 months ago who did a 12 week bootcamp, having been coding for a month before that. This person has now been promoted and earning not far off £40k. The average uni graduate earns around £20k 12 months after graduating and have around £30k in debts. See the difference?
Where degrees are important are jobs that require them (and further formal studies in some cases) - law, dentistry, chemist, architect etc.
You say you don't like working under pressure. I'd say electronics is probably more pressure than web dev. If I make a mistake the website might go down for a while, the business looses some money. With electronics you can literally kill a person depending on the mistake you make - don't wire up a transformer incorrectly, or use a cable thats too thin to handle a high current.
-
rbrtsmith got a reaction from jdoepro in what to use to make the website responsive ?!!Neither are the way to go. WordPress is better than Wix. But Contentful + Gatsby for example will blow away a WordPress site in terms of security, uptime, hosting cost, ability to handle extremely high traffic, performance (just about every metric you can think of).
This is because Gatsby will generate a static site (raw HTML files) that will load from Netlify for example where you can host a static site for free and because there's no database lookup when people visit your site it will load much faster and be more secure. If the DB goes down your website will not.
How this works is that when you publish some content to Contentful (or another headless CMS) it will trigger a webhook which you can use to trigger a Gatsby build - Gasby will pull the data from the database and re-deploy the website. You can actually do the same with the WordPress API and combine it with Gatsby, however Contentful is a much better CMS than WordPress.
I'd never use WordPress in the "traditional" way again and if forced to use it I'd stick to the headless output that it has. The only scenario I can think of where a statically generated website won't work are those that are highly dynamic e.g.
- You are running large numbers of A/B tests
- The website has quite heavy user personalisation
It's worth noting that Gatsby can still fetch data on the client so it will work fine for a shop where the stock levels change rapidly, you can statically generate all the pages without the stock levels and then fetch the them on the client side when the application loads in.
-
rbrtsmith got a reaction from jdoepro in Animation is more important than UXI normally argue that animation is important from a UX perspective but is it the most important aspect of a website / application? Absolutely not.
What use is an animation if the user cannot add a product to their basket? or checkout securely? There are many aspects of web development that are arguably more important than animations.
-
rbrtsmith got a reaction from jdoepro in what format should a header be ?Just want to make sure people don't get confused with this as I know your intention is to make sure the design scales down, but readers might mis-interpret it.
Don't take a mobile design and just adapt it. A design should be created that works across all devices. I've seen many terrible websites that only really considered mobile and the design just didn't make good use of larger devices. For this reason I actually dislike the term "mobile first". Instead you want to consider all viewports right from the get go so no device size becomes an afterthought or secondary.
-
Yes of course, some areas of law will change more often than others. A friend is a lawyer specialising in property/housing/mortgages - that sort of thing - although related laws don't change that often it only takes one legal judgement to significantly move the goalposts and that can kick off a need to review, re-asses and relearn.
-
rbrtsmith got a reaction from jdoepro in Help with JS array of objectsYou won't be able to do what you suggested. Why not use data structures like this where it's an object with a type that can be used to deduce whether it's a list of birds or dogs and then containing some items.
const birdNames = { type: 'birds', items: ['tom', 'mark'], } const dogNames = { type: 'dogs', items: ['percy', 'jack'], } const transformNames = ({ type, items }) => type === 'birds' ? items.map(name => ({ name, beak: true })) : items.map(name => ({ name, tail: true })) transformNames(birdNames) // [{ name: 'tom', beak: true }, { name: 'mark', beak: true }] transformNames(dogNames) // [{ name: 'percy', tail: true }, { name: 'jack', tail: true }] You don't want to be trying to deduce what type something is by the variable name, you should be able to rename things without worrying about breaking your app.
-
rbrtsmith got a reaction from NOCK in iPhone simulatorI use this it's pretty accurate. Those not developing on a mac - god help you. I'd HATE to be subjected to a windows machine as a developer.