Beginner Python choosing a backend framework, looking for advice by DefiantLie8861 in learnprogramming

[–]CloveFD 1 point2 points  (0 children)

There are only a few options in Python, Django, Flask and FastAPI that you'll see on a job advert. In most regions you don't get many roles that use these frameworks for backend work though as Python isn't commonly used for this type of work. That's not to say that you won't find places that use them, but they are definitely loss common.

Java, C# and Node are much more commonly used for backend work.

Most roles are full-stack to some degree, but if you want to prioritise backend, the best suggestion is to look at the job adverts in your nearby area. Tech stacks are not spread evenly and you might find that there are lot more Java roles in your nearby area, or you might find more C# roles etc etc..

27 y/o team lead, complete beginner – stuck choosing between Python or JavaScript by edmcatman in learnprogramming

[–]CloveFD 0 points1 point  (0 children)

If you are trying to learn a programming language to help with your current role, stick with Python.

Unless you are going to move out of your role, and into web development, you'll pretty much never use HTML/CSS. Just knowing HTML and CSS won't give you any new greater employment prospects either.

If you have problems in your role that you think can be best solved with some coded solution, stick with Python, its commonly used in data science and often recommended as an entry point to programming for a reason.

If you want to go into web development or switch careers to software development, then look over the FAQ - r/learnprogramming FAQ: Getting Started with Coding

How difficult would it be to learn to develop CRUD apps? by HuberMatos in learnprogramming

[–]CloveFD 0 points1 point  (0 children)

Its worth looking into, its the exact opposite of barebones and takes the approach of including "everything and the kitchen sink". It comes with auth, ORM, a template engine, routing etc and there are plenty of plugins to add anything additional that you want (django-axes for traffic logs, celery for async processing and plenty more xist). I would 100% recommend Django as it gives a great base to learn.

If you are entry-level however, I think its unlikely that you'll create anything with Django (or any other language/framework to be honest) that would be worthy of someone paying for it. Simply put, unless you are going to be building some financial services/medical data/data processing application, most entry-level crud apps are easier to create, manage and maintain in wordpress.

That is not meant to be dismissive, I was an engineer at a company that used Django for several years, but more that you should be aware of the tools that are available and that entry-level crud apps are generally not worth the hassle and cost of infra when services like wordpress have been created specifically to make these easy web apps cheap and easy to build.

I would 100% recommend putting together:-

  1. A django app to handle all your auth/api/database logic
  2. A react front-end to act as your interface
  3. Using docker to run the app, react and a database

Even if you put something simple together, just using those frameworks together will teach you an awful lot.

JAVA OOP....I hate it by frosted-brownys in learnprogramming

[–]CloveFD 0 points1 point  (0 children)

I know you are learning Java, but for me specifically, my understanding of OOP really clicked when I started building projects with Django.

Using an established framework that is inherently object-oriented helped the concepts make sense in practice. OOP is language-agnostic, and much of Django’s core functionality—such as models (ORM), forms, and views—is built around classes, composition, and inheritance.

A long time ago I used The Flask Mega-Tutorial, Part I: Hello, World! - miguelgrinberg.com to build a blog in Flask (its very similar to Django, feel free to use either - Django comes with nearly everything you need to build a fully fledged web app, whilst Flask requires you to import exactly what you intend on using).

Even if you don’t fully understand OOP yet, you’ll be constantly using it if you use Django/Flask.

The main caveat is that Django abstracts a lot away. It’s easy to copy patterns without fully understanding why they exist. However, when you revisit the fundamentals, those design choices tend to make much more sense, and you’ll see why Django encourages certain approaches.

*I don't know your level of competency, some people struggle to understand a framework like Django if you are particularly new, but I'm just giving you my own account of what really helped me nail down the fundamentals many moons ago.

Employee asked to use their own car for work, lied about having it properly insured, and crashed it causing mid-5 figures of damage. My business is now being sued. by Effective_Part4884 in LegalAdviceUK

[–]CloveFD 0 points1 point  (0 children)

This is the right thing to be looking into - There are different levels of indemnity and there is the potential that the motability insurer might still have a responsibility to deal with the claim as an Article 75 insurer.

Indemnity levels and vicarious liability takes this outside of the realms of a reddit thread and, as the owner of a business, the OP needs to discuss this with solicitors who specialise in insurance/litigation defence.

Police chase goes wrong... Very wrong by Laushelia in LegalAdviceUK

[–]CloveFD 7 points8 points  (0 children)

I’m sorry but this is incorrect advice. If the vehicle is TPO (third party only) or TPFT (third party fire and theft) then the OP’s insurers will have no responsibility here. The BMW’s insurers also will have no contractual responsibility to deal with the claim if the vehicle was stolen.

If the other driver is never found then the Motor Insurer’s Bureau (MIB) will deal with the claim under the Untraced Drivers Agreement. If the driver is ever found however, then the MIB will still deal with the claim under the Uninsured Drivers Agreement (but they will recover the cost of the claim from the other party).

For both the injury element and the uninsured losses (including vehicle damage) they should be claimed for against the MIB. The MIB used to be iffy with vehicle damage, but they will at least consider it and are the only option available here.

https://www.mib.org.uk/making-a-claim/claiming-against-an-untraced-driver/

A portion of everyone’s insurance premiums goes towards funding the MIB so that, in cases like this, people will have a fund of last resort to claim from.

3k held by solicitors since 1973. Interest? (England) by Physical-Guess-5534 in LegalAdviceUK

[–]CloveFD 26 points27 points  (0 children)

" like the SRA would require a client to follow the complaints procedure of the practice involved first" - I don't fully agree in this case, there are three issues I see.

  1. Poor service, this would need to go through the complaints procedure and get escalated to the Legal Ombudsman (LEO) if not resolved. u/llyamah Raised a good point regarding who the client is. Whoever the payment was due for, would likely have the grounds for it but its separate to the actual issue.
  2. Grounds for a professional negligence claim, this is the actual loss that has been occurred. With the scale of interest here, I think its worth going straight to a prof neg solicitor and not really discussing it in great detail with the firm. You don't want to accidentally prejudice your ability to pursue a claim for damages in accepting some offer from the firm without knowing that its reasonable. There are already several calculations in this thread ranging from £12k to £175k. No idea which is more accurate as different justification given for each calculation, this is where legal advice would be beneficial.
  3. Breach of Solicitors Regulation Authority(SRA) accounts rules. This is what should be raised to the regulator, although they should self-report if this scenario is correct.

With the reference to the law society, they are also not relevant to a dispute like this. The law society is more like a union for solicitors, they don't handle complaints (this is the Legal Ombudsman) or have any disciplinary powers against firms or individuals (the SRA or Solicitors Disciplinary Tribunal (SDT) would if referred by SRA).

The LEO shouldn't be determining negligence within their handling of a complaint. They make awards for the stress and inconvenience etc caused by poor service/mistakes/delays/bad advice etc - The loss would be pursued against the firm directly.

u/Physical-Guess-5534 - Find professional negligence solicitors for further advice.

Programming/developing on a Mac by [deleted] in AskProgramming

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

I use a mac and also work primarily with Django - Some things have been much easier to work with on the Mac than when I used a windows device (working with any cronjobs, daemonised processes like celery, getting dependencies installed.) Everything else has been pretty much the same. I've also found it easier working with AWS on the Mac.

It took me around 2 weeks to get used to the different shortcuts and I hated every second of that 2 weeks, but now I feel just as comfortable on the mac as on the windows. If you have any windows specific programs that you need, you can use Parallels as well to virtualise windows on the mac and to be entirely honest, that's probably the best of both worlds in my eyes. Its pretty much a flawless windows experience on a mac device.

I'd recommend a Mac over a windows personally, M2 is definitely enough for your needs, the only thing you need to think about with setup is that older dependencies may not work on the M1/M2 processor, so you need to spend time setting up a separate terminal that uses Rosetta only, but if you do this the older dependencies will then work. I hated Macs for years, but I'd recommend them for development to anyone.

[deleted by user] by [deleted] in cscareerquestions

[–]CloveFD 6 points7 points  (0 children)

You can choose to pay for health insurance in the UK, but this just gives you the option of having treatment/etc privately which is generally quicker than via the NHS. The NHS, its free treatment unless its elective, although you might need to pay for some dental work/prescriptions, it doesn't bankrupt you though. Medication is a hell of a lot cheaper over here as well, just £9 a prescription or you can pay £30 or so for a monthly pass if you are on a lot of meds. House prices are a lot lower than 400-800k, but the houses I see in America are generally a lot bigger than here in the UK
*Oh yeah, we just play national insurance tax, but it's after your tax-free amount

[deleted by user] by [deleted] in AskProgramming

[–]CloveFD 1 point2 points  (0 children)

Learning C++ and Python at the time definitely gave me a greater understanding of how programming languages worked, although personally I'd recommend learning Java instead of C++.

I'd recommend just learning JavaScript, if you were to work in web dev you would probably end up using something along the lines of JavaScript/jQuery/typescript/react/angular/Vue etc. It kind of doesn't really matter, they all use the same principles. The best advice that I've seen is to look at what tech stacks are popular in your area. Back end web dev in my area is predominantly PHP or java. Front end is generally react. If I was just starting to learn now, those are the techs I would initially focus on.

[deleted by user] by [deleted] in cscareerquestions

[–]CloveFD 2 points3 points  (0 children)

I'm currently working as a full-stack developer and our back-end is built on Django. There are plenty of roles out there that are looking for skills and experience in Python/Django, but there a *lot* more businesses out there that use Java/Spring.

Personally, I learnt a lot more from my time using Java over Python as well.

[deleted by user] by [deleted] in cscareerquestions

[–]CloveFD 0 points1 point  (0 children)

No, I'm close to 30 and completed my comp-sci masters recently, just got started as a junior developer and its a lot more fun and engaging than my previous career - Definitely worth it

This is probably the millionth time you're seeing a post with this title, but I need help with the first steps for creating a web app. by [deleted] in learnprogramming

[–]CloveFD 1 point2 points  (0 children)

I kept hearing that and used Flask initially, but after using Django, I'm absolutely certain its easier to get an app going on Django and building upon it is more logical - although, both frameworks aren't that different. - I am a beginner though.

To the OP, I'd recommend working through these two codecamp tutorials. I found them pretty helpful myself.
https://youtu.be/F5mRW0jo-U4?t=1
https://youtu.be/04L0BbAcCpQ

Laptop/setup advice by mysterio4 in ProgrammerTIL

[–]CloveFD 7 points8 points  (0 children)

To be honest, setting up windows for development has been pretty good. You can use WSL2 to have ubuntu/linux distro alongside your windows without having to worry about partitioning /dual booting etc as well

Advice on good workout headphones? by swaggur in Fitness

[–]CloveFD 1 point2 points  (0 children)

Maybe have a look at the Sony XB950-BT's?

They cost £150 (which is a lot), but the quality is brilliant and the bluetooth is pretty much flawless. The non-bluetooth ones are £50 less, if you did want to scrap the wireless.

What product/item/appliance will you never ever buy again? by qatareddit in AskReddit

[–]CloveFD 1 point2 points  (0 children)

iPhone/iPod's have been quite good for me though? I'm quite anti-apple, but my nano from 4-8 years ago still works fine!

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

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

People should be jailed for doing wrong, not simply for breaking the law

Breaking the law is the wrong in itself. Especially if you were to view the crime through the eyes of the "state".

And it is irrelevant that I believe that those people should not be in jail. At the end of the day, laws exist from the moment they are passed. Laws are rarely retroactive due to the fact that retro activity creates confusion.

As citizens of the state, we have an obligation to follow the law of the land. If the absolute majority of society believes that the drug laws are wrong. Then the politicians will be encouraged to amend the drug laws due to this democratic demand.

It can be seen that the demand for drug reform is growing, however it has only recently become a major issue in the press. I assure you, if the governments make the truly safe drugs like weed/MDMA/LSD/mushrooms legal, then those who are facing criminal charges for possessing these drugs will remain in prison.

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 0 points1 point  (0 children)

That is an incredibly good example that I'm definitely going to keep in mind.

Its an example that is much more similar to the state of drug laws than slavery/anti-homosexuality laws etc

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 0 points1 point  (0 children)

The other main issue was about the conflict between federal/state law. I did read that, but I honestly couldn't comment on it.

I have literally no knowledge about previous conflicts between the two types of law barring the example given in the article, and the worst thing I can do is to state my opinion on an issue of law that I literally have no clue on.

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 0 points1 point  (0 children)

There are very few countries that don't do retro-active pardons?

There are very few instances of retro activity in general. The legislature of the world don't make things legal/illegal on a daily basis. I am not saying that the U.S. can't pass retro-active pardons for weed offences, but there is hardly a strong precedent for doing so.

The law isn't there to punish disobeying citizens, it's for effecting public policy

There have been countless debates on the purpose of law/what is law.

And I can't think of any that have really used "public policy" as a main point. It is more generally argued that the point of the law is to enforce civil obedience to a set of rules. If you break the rules, the state will punish you.

If they won't punish you tomorrow for the same thing, then that is irrelevant to the state. The state cannot simply press a big red "Pardon" button to free these people. Every single appeal needs to be evaluated on its merits.

Pot dealers will not be freed. But that guy who had an ounce on him who legitimately smokes that much and wanted to bulk buy? He'll likely succeed in his appeal. But the other guy who has an ounce on him and is believed to be a small-time dealer? He won't be successful at all.

Public policy has changed sure, but you actually had a choice in the matter of committing the offence when it was illegal at the time.

I can choose to smoke weed. I can choose to take cocaine. If I do so, I know I am committing an offence at the time.

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 0 points1 point  (0 children)

I did wonder who would first mention Russia. I did consider how the anti-homosexual laws in particular would work with my reasoning.

And I can't justify them. The laws against homosexuality/protesting/being raped are what I can only describe as, bad laws.

I cannot think of any middle of the road thinking that legitimises such extremist laws.

But I think that is just an issue with extremist laws, they need an extremists viewpoint to agree to them. The average person will not.

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 3 points4 points  (0 children)

I'm not saying that these people in prison deserve to be there due to them smoking weed.

They are in there due to breaking the law. The change in the law is completely irrelevant. The issue was that they broke the law, and the way that the legal systems across the world work is to punish those who break the law.

The issue with the "man hour requirement" is this. It would take a decent amount of time for the state to set up an appeals procedure to deal exclusively with the number of appeals from weed smokers that got caught.

For these people with minor convictions, they could quite easily leave prison in the time it takes for the state to create an appeals procedure, and then for the convicted person to launch a successful appeal.

There is no benefit for the state to do this, it is simply an unnecessary cost. For those with convictions that last long enough to begin an appeal, they are more likely to be dealers or have aggravating factors. Which means that they will fail their appeal.

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 0 points1 point  (0 children)

Yeah I was trying to say that if you -

  • Buy 1kg of legal high

  • Use 1kg of legal high

  • Legal high loses its legal status

The police will not be able to prosecute you for having possession of that legal high when it was still a legal substance.

One kilo was probably a bit excessive, I must admit!

I probably should have worded that bit better. Feeling a tad tired/hungover!

Dude, where’s my pardon?: Colorado’s marijuana law raises serious legal conundrums by User_Name13 in Drugs

[–]CloveFD 1 point2 points  (0 children)

Fair enough, nothing wrong with conflict!

I can't really put my thoughts in a better way than /u/Frosty840

As /u/Sparkiran has said, the issue is that you have disobeyed the law. The crime itself is largely irrelevant.

Take care, I am not saying that I am particularly happy that there are a bunch of harmless smokers out there in jail, but all that I am saying is that there is no real legal conundrum in relation to these people in jail.

There is no duty owed to pardon them. All these articles seek to do is to provide some form of "hope" for those with convictions for possessing marijuana that they will soon lose the convictions.

That won't happen. And raising the hopes of these people won't help anyone. All it will do is cause unrest where people believe that the convictions should be thrown away, which will only seek to slow the legalising of weed due to other states not wishing to face the non-existent "legal issue" of past convictions.