Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,380 members, 7,808,353 topics. Date: Thursday, 25 April 2024 at 10:45 AM |
Nairaland Forum / Taofeekdboy's Profile / Taofeekdboy's Posts
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 18 pages)
Programming / Re: The Future Of Programming Language by Taofeekdboy(m): 12:55pm On Jul 04, 2020 |
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. |
Programming / Re: The Future Of Programming Language by Taofeekdboy(m): 1:41am On Jul 04, 2020 |
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. 1 Like |
Programming / Re: Python Gurus Please Help Me With This Code. by Taofeekdboy(m): 9:48am On Jun 29, 2020 |
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. |
Programming / Re: What Is The Way Going Forward? by Taofeekdboy(m): 9:44am On Jun 29, 2020 |
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 1 Like |
Programming / Re: 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. |
Programming / Re: Why Self Taught Programmers Over “Exaggerate”. by Taofeekdboy(m): 11:42am On Jun 28, 2020 |
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. 8 Likes 1 Share |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 9:53pm On Jun 27, 2020 |
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. 1 Like |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 9:49pm On Jun 27, 2020 |
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. |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 8:21pm On Jun 27, 2020 |
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. |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 11:57am On Jun 27, 2020 |
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. |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 11:54am On Jun 27, 2020 |
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. |
Programming / Re: My First Ever Javascript Webapp by Taofeekdboy(m): 10:07am On Jun 27, 2020 |
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 3 Likes |
Programming / Re: 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. |
Programming / Re: 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. 1 Like 1 Share |
Programming / Re: 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. |
Programming / Re: 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 1 Like
|
Programming / Re: 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) 1 Like |
Programming / Re: For Django Developer by Taofeekdboy(m): 1:55am On Jun 23, 2020 |
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. 2 Likes |
Programming / Re: Nairaland Should Switch To Python/django. Opinion by Taofeekdboy(m): 10:30am On Jun 21, 2020 |
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 |
Programming / Re: For Django Developer by Taofeekdboy(m): 10:15am On Jun 21, 2020 |
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. |
Programming / Re: For Django Developer by Taofeekdboy(m): 10:09am On Jun 21, 2020 |
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 2 Likes |
Programming / Re: For Django Developer by Taofeekdboy(m): 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. 2 Likes |
Programming / Re: For Django Developer by Taofeekdboy(m): 9:48am On Jun 20, 2020 |
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. |
Programming / Re: For Django Developer by Taofeekdboy(m): 9:46am On Jun 20, 2020 |
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. |
Programming / Re: For Django Developer by Taofeekdboy(m): 9:31am On Jun 20, 2020 |
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. |
Programming / Re: For Django Developer by Taofeekdboy(m): 7:11am On Jun 20, 2020 |
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 |
Programming / Re: For Django Developer by Taofeekdboy(m): 4:08pm On Jun 19, 2020 |
Toppytek:If you don't mind, you can send me a mail, then we can figure it together |
Programming / Re: For Django Developer by Taofeekdboy(m): 3:01pm On Jun 19, 2020 |
Toppytek:I don't think so, it doesn't work in django 3.0, it was made for django 1.11. You can also create a custom tags in your model without the use of taggit. |
Programming / Re: For Django Developer by Taofeekdboy(m): 12:57pm On Jun 19, 2020 |
Toppytek:That's very good, if you have any questions or any issues regarding that, you can leave it here, I will try my possible best to answer it to my knowledge |
Programming / Re: For Django Developer by Taofeekdboy(m): 10:58am On Jun 19, 2020 |
countyl:send me a mail on taofeekdboy@yahoo.com |
Programming / Re: Do I Really Need To Learn Bootstrap.. Please Help A Brother by Taofeekdboy(m): 11:08am On Jun 17, 2020 |
EngtTemmy:that's if you use the cdn but you can download it locally to your project and use it offline. |
Programming / Re: Python 3: Exercises And Solutions. by Taofeekdboy(m): 9:52pm On Jun 04, 2020 |
modash:Thank you bro... |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 18 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 75 |