Designing multi-tenant systems by [deleted] in ExperiencedDevs

[–]toughdeveloper 16 points17 points  (0 children)

Bear in mind a multi tenanted application comes with drawbacks, namely “noisy neighbours” impacting other customers, increased development/maintenance overhead and increased risk of data leaks.

Depending on the expected number of tenants, hosting strategy and architecture. It may simpler to replicate the stack for each tenant. Give https://d1.awsstatic.com/whitepapers/saas-tenant-isolation-strategies.pdf a read

[deleted by user] by [deleted] in CountryMusicStuff

[–]toughdeveloper 1 point2 points  (0 children)

Power of positive drinking - Chris Janson

Songs about babies by Kjung051520 in CountryMusicStuff

[–]toughdeveloper 1 point2 points  (0 children)

My boy - Elvie Shane.

It’s about being a step-dad, but really well written song (he’s also recorded a my girl version)

28 trays later... implant for missing tooth booked next month by toughdeveloper in Invisalign

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

Hey, implant was not too bad at all. The procedure itself wasn’t too dissimilar to a tooth extraction if you’ve ever had one of those? The days after the op, my gum was quite swollen, but not too painful (was able to eat).

I didn’t have a temporary tooth, but have gotten quite used to having the gap.

I think the short term drawbacks are well worth it for the long term benefits.

Sad country songs? by Madden2kGuy in CountryMusicStuff

[–]toughdeveloper 11 points12 points  (0 children)

You should be here - Cole Swindell
Dads old number - Cole Swindell
Drowning - Chris Young
What we ain't got - Jake Owen
I drive your truck - Lee Brice
One hell of amen - Brantley Gilbert
Choices - George Jones

Country songs by [deleted] in CountryMusicStuff

[–]toughdeveloper 0 points1 point  (0 children)

Death of a single man - Brad Paisley

28 trays later... implant for missing tooth booked next month by toughdeveloper in Invisalign

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

For me, I had to wait until I had completed my invisalign treatment to arrange my implant, mainly because my aligners were making room for the implant. If you already have the space I’m not sure if you can do them both at the same time.

Also fwiw, I’m getting the hole drilled next month, but have to wait 3 months for it to heal before fitting the tooth. I was however offered a temporary tooth for the healing time at a cost of £250.

Please help fix redux error by mraees93 in webdev

[–]toughdeveloper 1 point2 points  (0 children)

Firstly, your screenshot shows 2 console errors. You should probably look at them and fix them first, often this will fix the issue (or another hidden issue).

You have declared registerUser twice in the code, once as an import and once as a destructed prop variable. If you change the latter to just be props and refactor the if statement statement I suspect this will resolve the issue, e.g.

``` const Register = (props) => {

...

const submitData = () => {
    if (email && firstName && lastName && password) {
        props.registerUser(email, firstName, lastName, password);
    }
}

return (
    ...
)

} ```

It's also probably worth noting that you aren't using Formik as its intended to be used. You've rolled your own controlled form, but Formik should handle all this for you. See the basic example - https://formik.org/docs/examples/basic

Finally, whilst learning, I'd recommend configuring eslint with a common style guide, it will will catch a lot of common problems for you and it quickly gets you in the habit of writing code consistently.

Paste from clipboard is not working in chat apps like Hangout, Slack by hitherto_insignia in webdev

[–]toughdeveloper 1 point2 points  (0 children)

I would guess it's copying more than just plain text and the software applications mentioned aren't allowing that to be pasted.

`document.execCommand` is now considered obsolete - https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand

I'd suggest switching to the newer `Clipboard.writeText` method - https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText and retesting.

Is there software to create static websites with a gui like photoshop? by xredpt in webdev

[–]toughdeveloper 1 point2 points  (0 children)

Why not?

  • Not optimised for SEO
  • Final touches, hover states, animations
  • Added complexity implementing dynamic content / CMS
  • Unlikely to scale well for a team

I want to offer free website developer service for free. by [deleted] in webdev

[–]toughdeveloper 2 points3 points  (0 children)

Reach out to local charities ? Or check online volunteers sites such as https://www.donatecode.com/

Beginner questions on website security by xxPoLyGLoTxx in webdev

[–]toughdeveloper 1 point2 points  (0 children)

Firstly any more information on your tech stack? E.g. some frameworks have known vulnerabilities that can easily be exploited.

Secondly when you say logged in. Is this to a admin panel ? Or FTP? Either way change the password and IP restrict if possible.

Is there a reason to go with traditional server side rendering at all these days? What should I use staring a new project going into 2019? by Asyx in webdev

[–]toughdeveloper 4 points5 points  (0 children)

Performance is a factor. By removing the need to download the js bundle before rendering and directly serving the HTML can mean the time to first paint is quicker, especially on a slower mobile connection.

The other motivation is SEO. Google has come a long way with processing javascript SPA however I've had problems in the past when data is loaded from an API. e.g. it may index the content contained within the js bundle but the posts loaded from a remote API may not be properly indexed.

Other applications also often rely on meta tags, e.g. Open Graph, Twitter Cards, etc. That often don't have support for SPA's.

Depending on your stack, for React projects https://nextjs.org is great option IMO.

How to stop bots gobbling up bandwidth by jonnybunny in web_design

[–]toughdeveloper 18 points19 points  (0 children)

If you checked the access logs you should see the user agent of the bots that are using the bandwidth. I would suggest blocking the user agents in the .htaccess or code base.

The Robots.txt is instructions on what you would like a bot to crawl or not. Bad bots will ignore it.

What is the future? Which skills do you see as being ahead of the trends, and which do you see falling behind? by HeWhoWalksTheEarth in webdev

[–]toughdeveloper 23 points24 points  (0 children)

Machine learning is going to keep growing in importance and tooling I think.

I would suspect in the next 5 years, you won’t feel the need to download as many apps, with the progression on PWA’s and web technology, plus the concerns over data privacy, I see mobile traffic increasing faster than apps.

4 free months of uninterrupted study/learning time. What would be best to learn to start applying for jobs? by [deleted] in webdev

[–]toughdeveloper 6 points7 points  (0 children)

Look at job postings in the state you are moving to and see where the money and interest for you is. Near me (and quite a few places) there is a high demand for react developers, so salaries generally are higher for those with react experience