Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Today I learned that in 2015 a 2MB text file is "huge."


How often do you find yourself editing a 2MB file of code? If the answer is "often", I'd strongly suggest refactoring.


Never code, but data, all the time. I write scrapers and such that produce MBs worth of output text. For quick hacks, large text files are great. I even drop large binaries into my text editor just to search for a string sometimes (easier than opening up a cli to strings | grep). At my job I frequently work with XML files measuring 100+MB, I didn't make that design choice, but I gotta work on it now.


OK! Let's refactor this 2MB file!

Wait... we kind of need a text editor that can open the file, don't we?


I frequently find myself sifting through dozens or hundreds of megabytes worth of data. Sublime handles it just fine, FWIW.


I often use ST to analyse some log files. Do you have any other tooling suggestions besides the command line with grep/awk/... ?


Not really, no. I can't say I've ever used a text editor to search a huge log file in that way.


It is rather large to be editing by hand.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: