r/AskComputerScience • u/unpeeledpotatoes • Mar 14 '20
What tools/technologies did you discover that revolutionised your workflow?
Whether it be learning to use Git, or particular plug-in for an IDE you use, I'd like to hear about the tools that people are using.
7
u/pancakeQueue Mar 14 '20
Until I had to juggle multiple git branches or different dev servers containing our repos I never had to use git stash or git diff to git apply. After being introduced to those I love them and use both of them frequently. I thought I knew git in school but after using it while working on a team there is so much more tools that it offers that makes life easier.
2
u/unpeeledpotatoes Mar 15 '20
that's interesting, I've always kinda disregarded a lot of git commands in favour of the more common ones. but now I feel like maybe I'm in that school phase of thinking I know git when maybe I really don't. guess it's time to branch (pun intended;) ) out a little more!
4
u/011101000011101101 Mar 14 '20
Yeah the usefulness of git doesn't really show until you're working in a busy repo.
5
u/tehrealDOA Mar 14 '20
Version control was a real game changer. It's nice know I have my code hosted online so I can tinker on it and update it when ever I feel like it. It also makes working in groups super fun.
1
4
u/claytonkb Mar 14 '20 edited Mar 14 '20
Not a tool but a mental discipline: GTD
Top tools and the way I use them:
Linux. There is no match for the power and flexibility of Linux.
i3-gaps. This is a variant of the i3 tiling window manager. The amount of focus that is generated by tiling WM is not something you really appreciate until you just jump in and try it. Any tiling WM would work, I just happen to like this one. Switching to a tiling WM is a bit like jumping into a lake for the first time in early summer. There is that initial shock of "wuuuuut!" but you quickly acclimate and then you realize you feel refreshed and more awake than you've felt in months.
Vim. There is no match for the power and flexibility of Vim. No diss on other editors. I've tried them and they just miss it in one important way or another. Vim's out-of-the-box defaults are slightly insane and that accounts for a huge chunk of its reputation for being unusable. Just keep a simple .vimrc file in a Git repo and have sane defaults in it (no plugins or fancy settings). Now, any online terminal session is just one git clone away from having sane Vim.
Perl. Any kind of command-line hacking task that normal people would use bash to do, I use Perl to do. Plus whatever else I want to do. I rarely hit a problem that simply cannot be solved with Perl. I dabble in Python because some of the new ML toolsets are pretty snazzy and the support just isn't there in Perl like it is in Python.
Cygwin + Active Perl (+ Gvim on Windows). At work, I am compelled to exist in a Windows environment (ugh!) but I can make many tasks more bearable through careful application of Perl scripts and bash in the Cygwin environment. It's not ideal but it takes an environment that is basically designed to be unusable outside of a few preset patterns and allows enough scripting and automation to reduce most of the pain involved in the worst pain-points.
Python +
pandas. Excel database plugins = hell. No, seriously, hell. Thankfully, Microsoft hasn't figured out how to eliminate the Export to CSV feature yet, so I can just use the plugin to perform a single database query then export it to CSV. Now that I have escaped the nightmarish hell that is Excel database plugins, I can actually perform sensible manipulations and queries (imagine being able to do both!) on my data usingpandas.Inkscape. SVG is an incredibly powerful image format. With a tool like Inkscape, there are fewer and fewer reasons to switch to bespoke drawing tools like LibreOffice Draw (don't even mention Visio or I will cast ball-lightning at you).
Zim. It's like OneNote but not proprietary. All your text and image clips are stored in regular files and directories. It's cross-platform so you can portably transfer your repositories between Windows and Linux environments. You can manually hack the repository, if you want (just reload the index in Zim afterwards). I had a file go corrupt on the disk just the other day. No problem. I just opened it in Notepad, copied the contents into a fresh file, deleted the old file, reloaded the index in Zim, and BAM! everything back to the way it should be. Sure, Office has all that shiny document recovery crap but your data is still trapped in a proprietary silo and the only way to get it out is to manually export it to some non-proprietary format. No thanks.
C. Yes, the programming language C. It's my preferred language and I use it in almost all my programming projects. C can be written in a structured, modern way. The language itself gets blamed for all the bad programming books and bad programming courses out there targeting that language. There is this new "C is obsolete"-zeitgeist that I've noticed in the last 10 years or so. I just pity people who get duped by that. C isn't going anywhere.
Honorable mention: Paint.NET. Even though it's trapped in the Windows environment, I use this program daily. It's just damn good software. Bulletproof, really. I would be remiss if I did not mention it here.
2
u/unpeeledpotatoes Mar 15 '20
there's a lot to process here, thanks! plenty of stuff to look at with all of this:)
2
1
u/For_Iconoclasm Mar 14 '20
I think C can be important to learn, but it's not necessary for everyone. Also, speaking as a security consultant, I think it's irresponsible to write software intended for business or public use in C or older styles of C++. Writing in a memory-safe language eliminates whole categories of vulnerability. Many companies can't manage to write Ruby or Python without web app vulnerabilities; the C and C++ projects tend to be even more error-prone. Plus, they can often be things like EDR clients—pretty powerful if exploited.
There are plenty of things that basically need to be programmed in C, like embedded systems, but it should be avoided in other domains.
1
u/claytonkb Mar 14 '20
Formal methods such as generative code and model checking (eg CBMC) can be used for applications that need to satisfy security, real-time, isoch or other constraints. Saying that C is obsolete is like saying assembly language is obsolete... it's just a failure to understand what C or assembly language actually is.
28
u/igglyplop Mar 14 '20
Bash and Unix tools. Just holy crap, awk, sed, and grep are the three most powerful tools I've come across.
9
Mar 14 '20
Crap? Never heard of this one, what it is about?
6
u/igglyplop Mar 14 '20
Lol i many "holy crap, the following list of tools is amazing: grep, awk, sed"
3
3
u/fireballs619 Mar 14 '20
grep I think I get, awk and sed are still mysterious to me.
5
u/011101000011101101 Mar 14 '20
Awk was one of the inspirations for perl, and some very basic perl syntax still works. Awk is pretty great for quickly ripping out parts of a file and printing into a different format. Sed I don't know as well. Grep I use daily.
3
u/pancakeQueue Mar 14 '20
sed is great when you don't want to open up a file with vim just to use regex on it to remove the parts you don't need.
1
1
u/Cronay Mar 14 '20
Absolutely the power these tools have is insane. I'm only a iOS Developer but Xcode allows for scripts beeing run when building the app which can be anything and I'm making heavy use of it.
17
u/Fimey Mar 14 '20
I don't know about revolutionizing my workflow but learning debugging tools have been priceless for me. I didn't always have to place random print statements all over my code just to figure out what was going on. Breakpoints and step into are real cool.
2
u/micah89 Mar 14 '20
Any special tool for this?
0
Mar 14 '20
[deleted]
2
u/For_Iconoclasm Mar 14 '20
I recently learned that Chrome's debugger can attach to a Node server running in Inspect mode. The Devices page will automatically display an Inspect instance running on the default port. I haven't used any Node CLI debuggers, so that was a good find.
2
u/RedditHG Mar 14 '20
Learning gdb for C/C++ users is really simple (just a set of around a dozen commands) and makes debugging very '"clean" and powerful for your average print statements.
GUI frontends provided by editors like VS Code make it a simple point and click.
2
u/For_Iconoclasm Mar 14 '20
I second this. Learning a debugger really gave me a step up over my manager, who was a self-taught programmer, when I started at my first developer job. Profiling tools also helped. We did a lot of ETL, and my combination of CS fundamentals and inspection tools helped us drastically improve performance in naïve implementations.
1
2
1
u/nikivi Mar 14 '20
Karabiner for me. Super powerful. Let’s me define hyper keys for all keys on keyboard. At this point return key is too far away. So is delete key.
1
u/codemasonry Mar 14 '20
ag / the_silver_searcher: superfast command-line search tool
git rebase -i: rewrite/fix/merge/delete commits and commit messages
code linters: enforce syntax and other conventions (protip: run your linter in a git pre-commit or pre-push hook)
automated testing (also a good idea to run in a git pre-commit or pre-push hook)
1
u/whatacold Mar 14 '20
Magit inside Emacs, a front end for Git
Qtile, a tiling window manager, and sometimes I helped improve it a bit 😎
-2
u/da_ching Mar 14 '20
!remindme 1 week
0
u/RemindMeBot Mar 14 '20 edited Mar 14 '20
I will be messaging you in 6 days on 2020-03-21 01:25:35 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback 0
-2
u/frenchy641 Mar 14 '20
!remind me 1 week
1
u/remindditbot Mar 21 '20
Ding dong u/frenchy641 cc u/unpeeledpotatoes! ⏰ Here's your reminder from 1 week ago on 2020-03-14 01:37:09Z. Thread has 4 reminders.. Next time, remember to use my default callsign kminder.
r/AskComputerScience: What_toolstechnologies_did_you_discover_that
kminder 1 week
If you have thoughts to improve experience, let us know.
OP can Repeat Reminder · Delete Comment · Delete Reminder · Get Details
Protip! You can add an email to receive reminder in case you abandon or delete your username.
-2
u/remindditbot Mar 14 '20 edited Mar 14 '20
frenchy641, your reminder arrives in 1 week on 2020-03-21 01:37:09Z. Next time, remember to use my default callsign kminder.
r/AskComputerScience: What_toolstechnologies_did_you_discover_that
kminder 1 week
2 OTHERS CLICKED THIS LINK to also be reminded. Thread has 4 reminders.
OP can Delete Comment · Delete Reminder · Get Details · Update Time · Update Message · Add Timezone · Add Email
Protip! You can add an email to receive reminder in case you abandon or delete your username.
13
u/NutsGate Mar 14 '20
CI/CD pipelines. Especially when they can be configured in code and checked into my project's repo. Having an automated, consistent, predictable, repeatable way of building and shipping my code has saved me a lot of headaches