₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,050 members, 8,448,394 topics. Date: Monday, 20 July 2026 at 10:00 AM

Toggle theme

Taofeekdboy's Posts

Nairaland ForumTaofeekdboy's ProfileTaofeekdboy's Posts

1 2 3 4 5 6 7 8 9 10 (of 18 pages)

ProgrammingRe: For Django Developer by Taofeekdboy(op): 2:14pm On Jul 08, 2020
codeigniter:
have u freelanced or work for some one before
Yes, but I mainly program for fun as I have my main job and hopefully I will start applying for IT jobs soon, my work won't permit me to work as a freelancer. During this covid, I worked for people. I freelance majorly in graphic designs.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 7:12am On Jul 08, 2020
codeigniter:
I finally release the forum on heroku, but it is slow I saw someone saying pythonanywhere is better I will try it out later, I am still having trouble with AWS S3 partial credentials error does anybody know anything about that?

The website is http://Afrikas.herokuapp.com honest reports please and lastly, I am tired of indie development, no jobs its just like I am coding for fun, I saw some guy open a thread on working on open source, I think easy entrancy and free and available resources has made web development lot less available in my opinion, cloud infrastructure are too expensive even if u want to try ur own thing, I don't want to whine but I think the world is going to break soonest
Heroku is slow on first loading because it is on free plan and it goes to sleep after 30 minutes of inactivity, you can buy more dynos if you don't want it to be slow, I think it is $5 per month.
Pythonanywhere is good as well but both of them have their pros and cons
Pros
Pythonanywhere is fast and easy to setup.
Pythonanywhere manage your static and media files on their server without an external cloud server.
Pythonanywhere uses MySQL but you have to pay if you want to use postgresql

Heroku is easy to setup with heroku cli
Heroku has so many add-ons like redis and the likes which makes it easier for your deployment.
Heroku allows you to add your custom domain without additional charges.
Heroku uses postgresql without additional charges.
Cons
Pythonanywhere is not free for postgresql.
Pythonanywhere does not allow free custom domain unless you are going for a paid plan.
Pythonanywhere only avail your project for 3 months and you have to refresh after that or risk being removed from their server.

Heroku is very slow on first load and you have to buy more dynos to be able to enjoy the speed.
Heroku is complicated when working with database like moving from old one to new one or adding more tables to the database.
Heroku only manage your static files but your media files need to be hosted on external cloud server such as AWS, Azure e.t.c

I use both depending on the kind of project, I am working on.
Concerning the AWS partial credential error,
Make sure you include you aws secret key and ID in django project settings.

All skills are saturated, you just have to be the best to be able to get a job, it is based on experience, portfolio, ideas you have going on.
It is not easy bro, but you just have to continue as you will get soon.
Build a strong portfolio with amazing projects, then they will come looking for you.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 6:53am On Jul 08, 2020
nosagold:
Hi guys, check this out!
http://limitless-garden-30512.herokuapp.com
Nice one bro, you need to work on the images because you have stretched them and the mobile responsiveness as well. You used only django right?
ProgrammingRe: I'm Encountering Error As A Newbie On Python Language by Taofeekdboy(m):
SPOLO:
good evening sirs.
please i started learning programming recently which i chose pyton as my main focus with the help a pdf and video for tutorials.

but i keep getting an error while i input this sets of numbers

>>>{x:x**2 for x in (2,4,6))}

where can i detect the error
ProgrammingRe: For Django Developer by Taofeekdboy(op): 12:36pm On Jul 06, 2020
EmZsquare:
Good work....try developing a fully functional e-commerce app and am sure you'll add more to your knowledge
Thank you bro, I have done that and it really did.
http://taadesina.pythonanywhere.com

I am working on a school management app now and it has added more to my knowledge as well.
you keep learning new things everyday
ProgrammingRe: For Django Developer by Taofeekdboy(op): 9:37am On Jul 05, 2020
env folder can be created manually, but it is '.env' folder not ordinary folder as this is used to hide some files you don't want to show in your git/github repository. The '. env' folder is added to .gitignore files. JustDjango teaches you as if you are a pro, he doesn't go in-dept with some terminologies.

You can read more on env folder.
ProgrammingRe: The Future Of Programming Language by Taofeekdboy(m): 12:55pm On Jul 04, 2020
hardebayho:
Bro, what are you on? I didn't read the rest of your post and stopped at where you said Java is not secure. Java might be anything else, buh not secure? Bring any other programming language that offers better security than Java out of the box... Don't say that again ooo
Maybe, you need to read more on Java and you will surely understand that Java has issues with security. All programming languages have their strength and weakness. I am not even here to argue with any one on programming language.
Use what suits you.
Kalas.
ProgrammingRe: The Future Of Programming Language by Taofeekdboy(m): 1:41am On Jul 04, 2020
Sulele04:
systems programming: rust will replace c++ it is just a matter of time. If you want to pursue a career at this field start learning rust but dont dump cpp because rust will be the new cpp while cpp will be the new assembly.
application programming : to be an all round expert at providing end user application.learn kotlin, java,swift and javascript. If you master these languages the sky is the limit for you when it comes to application development.
worthy mentions:
blockchain programming: learn solidity it is the way forward.
data science:learn julia or r it is the way forward
machine learning and ai: haskell and lisp are the way forward
game programming: c++(unreal engine,unity) is still the king of this area, but i forsee rust dethroning it.

python is not a language for the future it is simply to slow, also whltespaces python is good at readability but is very difficult to maintain. Except some drastically changes happen to pvm i dont see that changing.

feel free to add.
Though everyone is opinionated but for the second paragraph saying python is not a language of the future is what I can disagree on.
Python has been topping the list of the best programming languages for years and still revelant and hotcake in tech industry till this moment. Though, some people do say it is very slow but I don't think it is totally true because every language has its weakness and strength.
C++, Java and the likes all have their weaknesses. Java is not secured but that doesn't make it not suitable.
I have been using python for web development,
Machine learning and so far I haven't encountered its slowness on web development.
Maybe desktop applications or mobile app development but it does not make it a language not for the future.
ProgrammingRe: Python Gurus Please Help Me With This Code. by Taofeekdboy(m): 9:48am On Jun 29, 2020
olamidedivotee:
I will try that
Op, try also to learn how to debug as this is a powerful tool in programming, TypeError, ValidationError, ValueError, IndentationError, KeyError should be something you should be familiar with so that you can figure it out yourself and know whats wrong.
ProgrammingRe: What Is The Way Going Forward? by Taofeekdboy(m): 9:44am On Jun 29, 2020
bassdow:
Jack of all Trades === Less than Average Baked huh

Most people who call themselves Full Stack aren't even close to average programmers - they just Hype themselves to be Seen as Good enough for Hire.

A few (if not most) who actually are Full Stack didn't become that in 3-years.

I suggest you start with the simplest (that should be HTML) and ride from there.

Start from HTML then quickly introduce CSS (try to avoid Frameworks) and hold on to them actively for like 2-years.
It's okay to take on small projects (Free and/ or Paid) so you get challenged along the line.

I know there are Ready-Made templates, it's cool to use them sometimes but also learn to Di-sect them as that way, you get to learn more than what you already know.

While doing all the above, learn WordPress (I say LEARN) beyond just installing readyMade themes & Plugins.

I myself never learnt wordpress but then, you're not Me.

All the above should cost you over (or at least) 2-years.

If you're Actively studying, Practicing and doing demo projects honestly the first year, you shouldn't have much issues taking on very light projects the second year.

After the second year, look for a company to employ you - I say this because you would need difficult challenges - there's a difference between choosing a Task to Do VS being assigned a Task to Do + you begin having a taste of Varying Real Life problems of which you're to solve.

At these point, you would have discovered (without being told) if you're a front-end Or Back-end material.

All through to this point, ensure you don't bother learning any JavaScript. I actually learnt JavaScript in bits (while fixing errors on existing ones or modifying them) so much I didn't realize when I have learnt a lot.

From the above stage, things starts becoming clearer to You and when you ask questions / recommendation / advice / suggestions / etc in here, those with viable Answers can respond to you.




Try jumping into programming like Most Nigerians do (including those who install a Plugin just to add Scroll to Top functionality) and you either Quit before long OR you start selling Nulled (pirated) scripts while also advertising programming Tutorials and How to become a Certified programmer in less than 2-weeks.


Programing is Fun but can be Frustrating a times even for those who love it.


PSS: A beginner using any sort of Framework is just wasting His or Her time. Leave Frameworks (whether Front-end e.g Bootstrap or Backend e.g Laravel) for when you already understands beyond the Basics.

Thanks and Good Luck
Yes , You are making sense. Full stack development is not easy as it takes so much time to understand some concepts, as you have said, it is good to stay away from frameworks as a beginner to fully understand how things work basically as it has improved me a lot but it is worthy to note that there are projects that you cannot build without the use of frameworks because it makes you write less code and increase your efficiency. Most of the senior software developers do use frameworks as well. using vanilla javascript to build complex websites will take you more days than using frameworks. You learn new things everyday
ProgrammingRe: Python Gurus Please Help Me With This Code. by Taofeekdboy(m): 9:26am On Jun 29, 2020
First, your code is too verbose, using class is an overkill for this mortgage calculator.
You can use function but it is fine if you really wanna use class but note that when defining a class, your method indentation must be accurate, like everything must be lined up together, press backspace for everything under the class and use tab key to indent them once.
ProgrammingRe: Why Self Taught Programmers Over “Exaggerate”. by Taofeekdboy(m): 11:42am On Jun 28, 2020
sexylassie2:
For all those learning and advertising python to wannabe programmers, stop wasting your time.

If you don't have good mathematics background or love for data,you will fail big time.
Fine, basic mathematics is required for some basic functions, if you are going to web development, you don't need much of mathematics, unless you mean data science, then I won't advise anyone to go there because seeing numpy, Scikit-learn and regressions will make you go crazy. Game development as well requires knowledge of mathematics.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 9:53pm On Jun 27, 2020
tensazangetsu20:
I am learning react but want to really pick up angular in the future.
I was taking the course before but I couldn't sleep because of the learning curve and it will take time to grab all the entities of angular unlike react where you can build in no time and use so many third party libraries but angular comes with its own libraries which you have to learn all of those as well... I think I am good with react and Vue for now, I can go back to angular anytime I wish to learn it again.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 9:49pm On Jun 27, 2020
modash:
Angular is similar to nestJs right?
Yes, they are similar because you can write in typescript in both angular and nestJs... Though I don't know much about nestJs but they have the same learning pattern.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 8:21pm On Jun 27, 2020
tensazangetsu20:
React is a library. Vue is a framework. What do you think of angular?
Yeah react is a javascript library but people do take it for a framework, even I have forgotten that it is a library grin grin..

Angular is a javascript framework, it has a steep learning curve and when you are good with it, you don't wanna leave it for other frameworks.
I learnt it for some time but I left with for react because of its verbosity.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 11:57am On Jun 27, 2020
ore291:
that'll be nice self , if you make it open source I won't mind contributing and I learnt Vue first cause on reddit they were like react has a very steep learning curve and for someone like me who just learnt JavaScript let me not go and injure my brain
I will try to do that. Learning react made my Vue learning curve pretty easy and it's documentation is superb as I didn't even check or watch any videos by learning it. It is very straightforward. I love react because of its community, easy to find solution when you are stuck.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 11:54am On Jun 27, 2020
elunico:
How similar is Vue to React? I wanna start with react then Vue later.
they are both Javascript frameworks, you can use javascript syntax for both, Vue is easier to learn while react is a little bit difficult to learn.
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 10:07am On Jun 27, 2020
ore291:
Yh I will do the notification, I can do the API myself with django-rest-framework but I don't have access to past questions in digital form
Yes, I understand, I am not trying to create past questions, I just want to create a school management system where teachers can set questions for the students and they will answer the questions and submit and assign them assignments as well, it is a big one.. Just trying to wrap my head around it. I am using django rest framework as well but react is my stack. I like Vue as well as it makes things simpler but the problem is whichever you learn first among those Javascript frameworks, it will be hard to leave it grin
ProgrammingRe: My First Ever Javascript Webapp by Taofeekdboy(m): 9:39am On Jun 27, 2020
The concept is very nice, I have been planing on something related to that, though I wanna build the API myself.

The app is not functioning again, if you can put a notification that tells the user that there is a network error or something if there is a problem, it will be very nice, so the user will be aware of what's going on. Good job bro.
ProgrammingRe: You Can Do This Too by Taofeekdboy(m): 1:11am On Jun 26, 2020
I have been busy, Just got the time. I will use recursive function , as this makes the code cleaner and I am using python this time. I am quite familiar with python because I use it to code my backend, javascript for frontend.

def get_single_digit(n):
y = str(n)
x = 0
for i in y:
x += int(i)
if x > 9:
return get_single_digit(x)
else:
print(x)
return x

I can break it down;
By calling get_single_digit() with a parameter, the function will convert the digit(s) into string because of limitation of number variable in python,
setting a variable x = 0; because it will be used for the looping condition.
then I loop through the string and adding the looping variable being converted to integer to x which produce a result be it 1 or more digits.
I check for a condition whereby if x > 9, it means if x is greater than 9 then it can be any two digits which can be re-added again, I used recursive function to return the condition which call itself until else condition is met.
I do hope I explain in a little way.
ProgrammingRe: Javascript Courses: Mosh Hamedani Or Brad Traversy by Taofeekdboy(m): 1:20am On Jun 25, 2020
Mosh hamedani for me as he simplifies everything, Python, React and Java. All thanks to him.
ProgrammingRe: You Can Do This Too by Taofeekdboy(m): 4:04pm On Jun 23, 2020
That's the screenshot, this can also be done with forEach but I so much like map grin

ProgrammingRe: You Can Do This Too by Taofeekdboy(m): 11:46am On Jun 23, 2020
OP, this is the only method i can come up with as i do not want to use third party library for the date time.

function parseDate(input) {
var parts = input.match(/(\d+)/g);
return new Date(parts[2], parts[1]-1, parts[0]);
}

const people = [
{firstName: 'Sam', lastName: 'Hughes', DOB: '07/07/1978'},
{firstName: 'Terri', lastName: 'Bishop', DOB: '07/04/1989'},
{firstName: 'Jar', lastName: 'Burke', DOB: '11/01/1985'},
{firstName: 'Julio', lastName: 'Miller', DOB: '12/02/1975'},
{firstName: 'Chester', lastName: 'Flores', DOB: '15/03/1988'},
{firstName: 'Madison', lastName: 'Marshall', DOB: '22/09/1980'},
{firstName: 'Gabriella', lastName: 'Steward', DOB: '26/08/1990'},
{firstName: 'Ava', lastName: 'Pena', DOB: '02/11/1986'},
]
people.map(user => {
const minutes = 1000 * 60;
const hours = minutes * 60;
const days = hours * 24;
const years = days * 365;
const tody = Date.parse(new Date)
const today = Date.parse(parseDate(user.DOB))
const current = tody - today
console.log(Math.round(current/years))
})

const sortedList = people.sort((a, b) => {
return parseDate(a.DOB).getFullYear() < parseDate(b.DOB).getFullYear() ? -1 : 1
})
console.log(sortedList)
ProgrammingRe: For Django Developer by Taofeekdboy(op): 1:55am On Jun 23, 2020
yuno01:
I have always wanted to do that slide show on django but haven't really gotten it.

and for your static file, like your CSS and JavaScript...how do you do it.

not those u write withing the page using it..but some external JavaScript and css
You can do that with Javascript, if you know Javascript, it is easier to do than css because you can use CSS to do that as well, I will advise people who want to learn django should try to learn Javascript or its framework like React, Vue or Angular, as this will beautify your UI/UX.
ProgrammingRe: Nairaland Should Switch To Python/django. Opinion by Taofeekdboy(m): 10:30am On Jun 21, 2020
codeigniter:
You are right with the cherry.py because when seun was active he talks about it all the time.

I am going to reduced the SQL queries per route

Do u know anything about wysiwyg editor like tiny MCE
tinyMCE is nice and it works on most languages but have used it with Javascript and python(django) and it is awesome. Nice interface and more plug-ins
ProgrammingRe: For Django Developer by Taofeekdboy(op): 10:15am On Jun 21, 2020
fortifiedng:
Bruh, thanks for this. I really appreciate.

But you could also Extend the User Model by creating a "Profile Model" and using a OneToOne relationship with the User Model. And also using SIGNALS.

Thanks a lot for the explanation.
Sure it can be done like that as well, but there are some scenarios where you dealing with two different groups, maybe students and teachers or premium users and free users, you can easily add student identifier and teacher identifier through AbstractUser, this will simplify things and make code cleaner.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 10:09am On Jun 21, 2020
rastaxarm:
I prefer Flask over Django due to total control and flexibility.

Currently using it to develop a voting system for universities/polytechnics elections

Test - Still under development
https://digitavote.pythonanywhere.com/

No regret so far and the plugins/extensions are good too.

Be good with Python and everything will be ok. Though flexibility comes with great responsibilities tongue grin cheesy cheesy
Sure, it all depends on you and what makes you comfortable, I was learning flask before but switched to django because of its complexity and its documentation.
About flexibility, when you are comfortable using django, you can be flexible and be in control as well thou everything has been written for you but you can choose to customize it for your own use.

Nice project BTW. Good job
ProgrammingRe: For Django Developer by Taofeekdboy(op): 5:41pm On Jun 20, 2020
Here is another project I just finished, an ecommerce project, as lockdown continues and my company never resume.

Anyone in need of the source code should signify.

Stack used:
Django for backend
React for frontend

Not much validation on the input data as I was distracted and doing it for fun just to add more functionalities.

The project is hosted on pythonanywhere as heroku will make shell a dollar for my media files.

http://taadesina.pythonanywhere.com

Your feedback will be much appreciated.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 9:48am On Jun 20, 2020
EngtTemmy:
If you want to know more about hosting on heroku, i will recommend Corey Schafer tutorial on YouTube.
Heroku is good but only issue I have with them is not been able to host my media files with them, I do use aws and they do charge me for that but on pythonanywhere, it is free to host your media files.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 9:46am On Jun 20, 2020
Toppytek:
Thanks, I’ve crossed checked yet am still getting an error
Create a new model called Tag, add name of tags you wanna add to it, maybe News, educations, sports and so on. Then on your Post model add a ManytoMany field name tags to it. Then you can add tags to a particular post and you can customize it to your own taste, I don't use taggits as at times third party libraries give more problems and headache.
Try the above method and let me know, it is more suitable and you will be in control.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 9:31am On Jun 20, 2020
EngtTemmy:
Can Django be used on Android phone?
In what context are you talking about, coding or the finished project. If you are talking about coding, then django is a framework not a language, it is written in Python but you can code Python on Android with pydroid. You can't code django on an android phone.
ProgrammingRe: For Django Developer by Taofeekdboy(op): 7:11am On Jun 20, 2020
fortifiedng:
Extending the User Model from AbstractUser or AbstractBaseUser, which is preferable and which is actually recommended?
It totally depends on you and what you wanna customize with the user model but if you don't know what you are doing or you just want to add little details to your custom user, you can use AbstractUser, using AbstractBaseUser will override the User model and it requires you to know what you are doing ie being experienced because one foul play will cause inconsistency in your project
Let me give some instances;
If you want to extend a user to have gender, location or profile, you can extend from AbstractUser to customize your user model.
If you need to write permissions and authentication for your user, then I will suggest AbstractBaseUser.

Personally for me, I do extend from AbstractUser because I do write my permissions and authentication without extending from AbstractBaseUser

1 2 3 4 5 6 7 8 9 10 (of 18 pages)