Shepherdd's Posts
Nairaland Forum › Shepherdd's Profile › Shepherdd's Posts
RIP Good Man. A good example of what a leader should be. |
stanliwise:Ok wait. Is architectural pattern not a sub category of of design pattern? So as behavioral too. Design Patterns are more localized, they don't affect how you structure your overall code, they affect a specific section of your code they deal with common design problems following object oriented design principles. Design patterns are language or technology agnostic, they don;t care about the domain. Architectural Patterns have an heavy impact on the code base, most often impacting the whole application either horizontally (ie. how to structure the code inside a layer) or vertically (ie. how a request is processed from the outer layers into the inner layers and back).(stackoverflow) If MVC is a design pattern can you compare it with other design patterns ? does it fit with them. stanliwise:This is correct. MVC was originally created for smalltalk and graphics alone then it was later adopted as an architecture for the web. |
ubsky:Well said, No way MVC is a design pattern. MVC doesn't care whether you are using singleton, creational, composite e.t.c stanliwise:How about the Client-server pattern used in banking, or email systems or Broker pattern which is dominant for any reasonable Big data project. |
geedot:I guess that's the norm(learning DS&A later) unless you studied computer science. Data structures and algorithm are language agnostic and I also think they should be learned before even trying to print Hello World on the console. |
AyomideToks:Since you said you have a background in HTML and CSS, why not build a clock with html / css and update the time with JS. You will need to use tools like setInterval. You can try to build the snake game, a to-do list, a note taking app, you could go further by learning graphics rendering with JS(three.js, pixi.js) and build stuff like tic-tac-toe, and WHOT game. |
Please don't start with that book. For any programming language I want to learn I always download two or more kinds of textbook, the one targeted for purely beginners(head first series or dummies series) and a more advanced version. For a more subtle introduction to JavaScript please download JavaScript for dummies. It's really easy to grab and you get to implement some cool programmes along the way. Once you are done then you can move to more complex books like eloquent, you don't know JS and the likes. |
jayphe: def check_type(val): |
If they are fighting with fulani herdsmen i think these toys will be effective but if they are for fights against terrorism, any surface-to-air missile will shoot these down. They should get at least any lockheed martin craft (f-22, 35, 21, 16) |
IME1:Actually those families in the video requested it (I saw an interview of one the family member i think on bbc news africa)., The band in particular is known for their stunt and all. |
nosagold:Yes Exactly. |
Lawren76:FizzBuzz is a simple interview question designed to weed out "programmers" who can't actually program. The test: Print every number between 1 and 100, However for numbers that are multiples of 3 print "Fizz" and for numbers that are multiples of five print "Buzz." For numbers that are multiples of both 3 and 5 print "FizzBuzz". |
Lawren76:My bad. I made the comment based on the example and not on the actual code..... |
Lawren76: def transpose(array): Note that your matrix creation contains an error. Matrix size is (row x column) not (column x row). And no assertion and type checking is done n my code. |
arduino:Hello interested in getting these boards very soon. Your konga link is down how can i see you catalog of boards. |
manando1:ok. You can get the current dj count using a Javascript query selector then you increase the count and you set the count back. It will look something like <form> Note the likes will be zeroed on browser refresh or close. To fix this you could save the counts to local storage or implement a backend (I would recommend Express with Javascript as you are familiar with Javascript already). |
manando1:Are you using any back end to persist your data? Or your page is built with only HTML CSS and JavaScript. |
Dumb Fuccks. If the radiation of 5G is so bad now compare it with direct solar radiation (solar radiation is ionized and radio waves aren't) that astronauts are exposed to on the international space station. Scot Kelly spent a fucking year in the ISS and my guy is still very healthy. |
MrBible:Glad you said very difficult which means not impossible. Everything is possible what matters is the motivation behind it. There are tools like JSNice and JSBeautify that de-obfuscate JS files, I have used them personally to de-obfuscate some critical part of code I obfuscated (I lost the original code). And there are many more de-obfuscator for other languages. I have even seen an obfuscated Java bytecode .class file converted back to a .java source file. Although their output will differ from the original in stuffs like variable names, but I assure you the code is 100% functionally correct and to a skilled serious person, reverse engineering this is doable. |
. |
No need to be worried about your db unless you are using SQLite as all main db requires password and you can even go a step further by carefully sharing rights for the database users. About the files, that will be tricky or impossible cause uploading compiled files can even be decompiled back to the normal plaintext so to have a rest of mind just steer clear from these hosts. Google cloud offers a full year free hosting, Azure does too, am not sure about AWS. Depending on the language used for the website other cheap alternatives might exist like PythonAnywhere for Django, HostGator for NodeJs e.t.c |
noob03saibot:Nice starving yourself from PyCharm it will really help you. Remember when I had to abstain from IntelliJ and I was using Notepad++ for my coding although it was a pain in the beginning but it cemented the little basics. Jupyter also performs little code completion by pressing the tab key like when you want to access a method from an object or reference a declared variable and it is less Ram hungry compared to PyCharm. |
Also try and work on your variable naming and comments keeping in mind that you won't be the only one working with your code and even you after some years might find it hard to figure what a line does when you don't have good variable names and concise comments. |
By mere going through the code like that I could observe that your code will run in O(N²) quadratic time which simply translates that as your input increases the time the algorithm takes doubles. The bubble sort is algorithm is a good example of this. Your search method I think is doing a binary search but you fail to account for the fact that binary search only works on a sorted array. Try and add a line inside the search method to sort the array first. If you feel comfortable with Python you could replace your sort method with a merge sort implementation which is very acceptable as it has a linear time O(n) worst case scenario. There is a fairly correct saying that for loops are evil. Try and replace for loops with functional programming methods like filter, reduce e.t.c with Python lambda. But all in all bravo to you for even trying to code this as many programmers only care about data types and algorithm a week to an interview. |
Can you upload this as a GitHub gist and post a link. It's kinda hard to read because of Python's indentation. |
These clowns won't come up with shitt. They claim they looking for vaccine and yet we don't have any electron microscope in the country to take a good look at this novel virus. We are just wasting our time in this country. |
wizzyrich:chai. Awon Edward Snowden Mrs ![]() |
Ejiod:First I will like to commend and appreciate what you are doing here sir. Only if more veterans can be like you sir. I also have a similar story to yours during my uni days studying anatomy and once I realized no job for anatomist in Nigeria I started learning JS, then onto Java then Python. With Python and Django I started building stuffs then I added React but at the end of the day I knew I needed more, and during my pre NYSC period I started learning pandas, sklearn, bokeh, pytorch and per your recommendation am diving into visualization with tableau and power bi. Currently i think I have mastered these to a good extent but I still feel like something is missing. Maybe it's the fact that I haven't really done an end-to-end analysis project due to the fact that I can't get my hands on real world data and requirements. So my question is what are some recommended projects to get my hands dirty with. And also sir I sent you a mail request here on NL. Thanks. |
I can't seem to fathom while some people still get offended by Trump when it's not a secret the guy is deluded and suffers from a somewhat mini version of schizophrenia. |
Not a surprising move from our degenerate leaders. USA.has John Hopkins Research hospital which is the best research hospital in the world, Indians also have their India institute of medical sciences also one of the best and both of the countries closed there borders to foreigners yet Nigeria with death sentence hospitals like UCH and LUTH is opening their arms to foreigners. ![]() |
So you just completed a Django introduction tutorial and to test your skills you built a mini web app (library, news, mini Facebook....), or maybe it's tensor flow or pytorch for you and you created a shiny new regression model or a seq2seq translation model but these applications can only run on either your PC or on the cloud and you might need to impress a potential client or your friends with your PC not available, enter Ubuntu chroot with termux. Termux is a terminal emulator that can be installed from the play store. Alone it boasts of powerful packages such as Node, Python, clang, Java e.t.c, but you can even get more serious by installing an Ubuntu chroot on it to make possible and mobile your wildest programming dream. Once you install termux, launch it and enter the below commands one after another. pkg install proot wget The above commands will download and prepare the tools for running Ubuntu and once you are done enter the below command to launch your Ubuntu, and on termux relaunch just cd back into the ubuntu directory. start-ubuntu.sh To get a GUI interface you will need vnc server but the process can be easily gotten from Google. The possibilities of what you can achieve with these is limitless (ssh into servers, git, Node Express server, React Dev server, deep learning models, Jupyter Notebook e.t.c) and happy pythoning. |
Phil3Mon11:Check out New Horizons Ikeja Oba Akran. They teach all kinds of languages. |

it's not dignifying to dance, make comedy or fun of burials, caskets or corpses