The only cons of vim I agree with is that you need to install a plugin for some features that other IDEs have builtin, like type-hinting. But this is hugely offset by the fact that you don't need three full minutes to launch your IDE (just measured, 0.1s). I'm not even mentioning the benefits of modal editing
Also, not using eclipse in particular means your project can be compiled easily without installing eclipse itself
@NieDzejkob I think that the boot time of vim doesn't matter a ton to me. I code for 8 hours a day. Whether it takes 3 minutes (or even 10 minutes) to boot it up doesn't matter if it's saving me more time throughout the day
@cairdcoinheringaahing Personally, I draw the line at static code analysis. An IDE is something that can tell me if my code will compile, without running the compiler, and be able to detect things like while true(){} and return; dostuff();.
@NathanMerrill fair point, assuming that the assumption is true (cough it probably isn't), but I remember using Eclipse before switching to Vim, and the experience was generally "wait 3 seconds every time you click". Granted, my computer was crap back then, but you shouldn't need a beefy computer to run notepad, even on ultra
idle is just a text editor (that isn't vim, for that matter) with a run code button
@Pavel how many files do you modify between compilations? I mean, if you will recompile every single file in the code base, then it will take a long time. But for me, when I happen to make a mistake, it's noticed by the compiler within... idk, maybe half a second
$ cat > Main.java <<EOF
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
EOF
$ time javac Main.java
javac Main.java 1.27s user 0.05s system 210% cpu 0.625 total
@NieDzejkob 1.27 seconds to compile Hello World for Java
Of the top of my mind, I don't know any open-source projects that use Java, so that I could benchmark it. Any ideas? Also,
cat Main.java
public class Main {
public static void main(String[] args){
System.out.println("Hello, world!");
}
}
~/tmp time javac Main.java
real 0m0.521s
user 0m0.977s
sys 0m0.044s
Besides, an IDE doesn't just catch compiler errors for you, it spots other kinds of potential pitfalls--and is able to automatically fix a lot of them for you.
@NieDzejkob I'm implementing a language, I want it to be as small and fast as possible, so I got rid of libc. I got 64-bit to work, but I hit a wall with 32-bit mmap
6 _ 5 _ 2 _ 7 _ 4 _ 2 _ 5 _ 1= 3
Fill the gaps with mathematical operators to get the desired result. Multiple solutions may be possible. Shortest code to print all the possible solutions (each solution consisting of operators) wins.
@J.Sallé a mortal alien :) Actually, I have a 64-bit box too (literally a heavy box), rather old and noisy and half-broken, but it would do for 64-bit testing
@J.Sallé you know, these flat keys that bend when you press them not exactly at the centre, and you're never quite sure if they registered a keystroke or not
my dad brought home a mech(-ish) keyboard from his workplace that was quite nice but the space-bar didn't work so I can't use it and i still have to use a laptop keyboard :( it's not terrible though
@Pavel They are. When you order any custom hardware in small amounts, it ends up being expensive, unfortunately. If you know how to configure your keyboard, you probably don't need them. Some customers buy them because they hired APL newbies or just because the keyboards look and feel cool.
also, I see most mech keyboards described by people have keys that are like 1-2 cm above the base and you can see a gap between the keys and the base; is there a special term for a keyboard where the keys aren't as flat as laptop keys but aren't as extreme as proper mech keyboards?
yeah same, and also like when i hit the key harder with my finger it actually goes down and on laptop keyboards if i strike the key it only moves a slight amount and that feels weird :P not as much of a problem for normal typing but it feels weird when i'm spamming keys in video games :3 :P
@HyperNeutrino precisely. If you're playing anything that's fast-paced, feeling the key being activated instead of having to press it all the way down helps a ton
@NieDzejkob "The Nineteenth Hole" is a golfing term to refer to the bar at the end of the 18-hole course (IIRC), so "The Nineteenth Byte" is somewhat similar to that because this place is kind of a place to hang out when not actually golfing.
I primarily use the mobile site for chatting. If someone pings me while I'm away, I'll get a notification about it later. This is really convenient, save for one problem: I have absolutely no way of telling what message they replied to. On desktop, there will be a little arrow next to their messa...
Another minor feature that endlessly annoys me: To reply to a message on the starboard, I have to click on permalink, and then hit reply from the transcript, which means I end up with two tabs open. (Not to mention that it's like 3 extra steps)
Another (another) minor bug/missing feature that endlessly annoys me: To reply with an uploaded image, you have to hit reply, cut the :XXXXXX part, hit upload, and then edit it to paste that part back in
Yes, but I love it too much to leave over the minor annoyances.
@EriktheOutgolfer If you start typing, yeah. For me, if I hit reply, the button is still there, it just deletes the :XXXXXX part once the actual upload happens
I think discord's chat is better in basically every way I can think of. There are only two things I dislike: 1) No replies. 2) You can't hit <up> several times to edit previous messages, only the last one
The only thing I don't like is their abuse service
Asked support if one specific thing was against TOS. They said it wasn't. I did it. Next day, my account got removed for breaking TOS with the exact thing I asked about as the reason.
They wouldn't put my account back :( Just said to make a new one
Reverse Code Golf: Primality check
The point is to make a program as long as possible.
Of course, there are going to be rules.
No unnecessarily long names
No comments
No nesting functions for no reason.
Your program must not get smaller if I pass it through a minifier.
Challenge.
Simple...
Introduction
Write a program to calculate the partial derivative of a polynomial (possibly multivariate) with respect to a variable.
Challenge
Derivatives are very important mathematical tools that has been widely applied in physics, chemistry, biology, economics, psychology and more to handle...
TIL that there is a group of people that think the earth is flat and that the Flat Earth Society is "controllëd opposition". Conspiracy inside conspiracy