<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming on Harish's Weblog</title><link>https://harishbhat.com/categories/programming/</link><description>Recent content in Programming on Harish's Weblog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 09 Oct 2022 14:05:01 +0000</lastBuildDate><atom:link href="https://harishbhat.com/categories/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Generating Pascal's/Pingala's Triangle using Python</title><link>https://harishbhat.com/programming/generating-pascals-pingalas-triangle-using-python/</link><pubDate>Sun, 09 Oct 2022 14:05:01 +0000</pubDate><guid>https://harishbhat.com/programming/generating-pascals-pingalas-triangle-using-python/</guid><description>Introduction:
There are plenty of articles on the Pascal&amp;rsquo;s or Pingala&amp;rsquo;s triangle on the internet, so I wish not to revisit the explanation and the history about the triangle. Rather this blog post explains about one of the simplest way to produce or generate the triangle in Pythonic way. It talks about how one can generate the triangle using some of the Python concepts like, list comprehension, Python&amp;rsquo;s zip(), Formatting functionalities etc.</description></item><item><title>Python- First Class Functions</title><link>https://harishbhat.com/programming/python-first-class-functions/</link><pubDate>Sun, 18 Jul 2021 09:16:30 +0000</pubDate><guid>https://harishbhat.com/programming/python-first-class-functions/</guid><description>Conceptually, &amp;ldquo;first class functions&amp;rdquo; is a feature of a programming language. Several programming language like Lisp, Haskell, Scala, Julia, Python, JavaScript, Ruby, Perl, Go etc. supports the &amp;ldquo;First Class Function&amp;rdquo;. In a nutshell, all functions in Python are first class functions. When we say first class function in any programming language, the language treats the function as any other variable, it can be passed and manipulated similarly how we treat other kind of objects (In Python all are treated as objects) like integer, string.</description></item><item><title>Django - Validator to check the emptyness of file field</title><link>https://harishbhat.com/programming/django-validator-to-check-the-file-field-is-empty-or-not/</link><pubDate>Wed, 17 Dec 2008 12:47:54 +0000</pubDate><guid>https://harishbhat.com/programming/django-validator-to-check-the-file-field-is-empty-or-not/</guid><description>The other day My Team had some problem in the validation of the file field, the requirement was simple, they had to check whether the file field is empty or not. The problem sounds somewhat simple. I said just go with a simple &amp;lsquo;if&amp;rsquo; and that&amp;rsquo;s the end of the problem.
But they were unable to do that.. and finally I had to sit with them to solve the problem. It wasn&amp;rsquo;t that simple as I had realized.</description></item></channel></rss>