Taofeekdboy's Posts
Nairaland Forum › Taofeekdboy's Profile › Taofeekdboy's Posts
1 2 3 4 5 6 7 8 9 10 (of 18 pages)
codeigniter: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. |
codeigniter: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. |
nosagold: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? |
SPOLO: |
EmZsquare: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 |
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. |
hardebayho: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. |
Sulele04: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. |
olamidedivotee: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. |
bassdow: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 |
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. |
sexylassie2: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. |
tensazangetsu20: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. |
modash: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. |
tensazangetsu20:Yeah react is a javascript library but people do take it for a framework, even I have forgotten that it is a library ..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. |
ore291: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. |
elunico: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. |
ore291: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 ![]() |
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. |
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. |
Mosh hamedani for me as he simplifies everything, Python, React and Java. All thanks to him. |
That's the screenshot, this can also be done with forEach but I so much like map ![]()
|
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) |
yuno01: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. |
codeigniter: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 |
fortifiedng: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. |
rastaxarm: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 |
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. |
EngtTemmy: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. |
Toppytek: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. |
EngtTemmy: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. |
fortifiedng: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 |
