When I was studying Computer Science in an engineering institution in India 15 years earlier, there weren’t too many resources to check out. Lab computers were shared in tiny slots. They were tortoises compared to today’s regular smartphones. We accessed internet on a 64Kbps modem. Most of the academic subjects were studied by referring the text and a little bit of hands-on development. For many students, these didn’t reflect well on their careers. Continue reading Introducing dslib: academic data structures library
Category: PROGRAMMING
IWYU: include only necessary headers
IWYU (include-what-you-use) is a built-in utility for clang to remove unnecessary #include directives in your programs. What it might not seem like a problem in small projects, larger projects tend to have increasing number of header inclusions with time. Continue reading IWYU: include only necessary headers
Grapse: edit man pages online
Editing man pages in vim is not exactly my favourite task. There are two reasons: the syntax of man pages and the need to frequently check the page with man after few edits. However, I have to do it often for Buku and google-cli. Seems like those days are over, thanks to the new web-based utility Grapse. Continue reading Grapse: edit man pages online
Writing fast code (video series)
A 2-part video series on writing fast code from C++ and D language programmer and author Andrei Alexandrescu. From the code::dive conference 2015. Exclusively for devs!
Part 1
StarUML is available for Ubuntu
If you are a developer you must have come across StarUML at some point or another. It is a very old and popular UML modelling software. However, for years, it was available only for Windows. Hunting for a good alternative we just noticed that StarUML has a native Linux client for almost a year now! However, from the Google search results it seems there wasn’t enough noise. Continue reading StarUML is available for Ubuntu
cloc: count lines of code
If you are interested in knowing the total number of actual lines of code a project has, try cloc. It also shows the number of blank lines and comments. However, that’s just the beginning. cloc has many other additional capabilities which make it a very useful tool for developers. Continue reading cloc: count lines of code
cppman: C++ 98/11/14 man pages
C++ is an ever-evolving standard and it’s quite difficult to keep up with the latest updates. Good news for devs, a new project aims at making the process simpler by incorporating latest information from multiple sources. Continue reading cppman: C++ 98/11/14 man pages
binary printf()
A friend of mine pointed out the lack of binary representation output in printf() during a discussion. It is a reasonable requirement, given the fact printf() supports hex and octal representations. Continue reading binary printf()
Firefox Memory Tool for devs
Firefox 44 developer edition includes a Memory Analysis tool for developers. This will help analyze memory usage of web apps. More details.
ftrace: trace kernel function calls
For those who have used strace for userspace development ftrace would be a familiar concept. ftrace is an internal tracing facility for the Linux kernel developed by Red Hat. It internally uses the kernel’s tracepoint mechanism and can track several characteristics of the running kernel. However, in this article we will concentrate on enabling it to trace the commonest one – function calls in the Linux kernel. Continue reading ftrace: trace kernel function calls