comp-sci
Discord ID: 423219052849397773
17,577 total messages. Viewing 100 per page.
Prev |
Page 16/176
| Next
Yes.
why on earth would you do anything in python
Python is very convenient for quick prototyping.
Bitch, did you know the two most languages used at Google are C++ and Python?
`prototyping`
There's this neat tool, called SWIG.
it is just trash
I'd do anything in Python because I had to, someone asked me to, or my team or employer uses it, i suppose
I cannot understand why people use it so much
it doesn't deserve popularity
It does.
the fact that it uses tabs instead of brackets is mind blowing
It uses spaces.
is there any point in java?
I see, you're one of those immature programmers that think you're too cool for indentation.
most people hate java
isn't it popular to shit on java?
Indentation is something you already do, no matter what language.
^
Python just uses that information.
i avoid running any java programs if I can
lol
but that .jar
god I leave this channel for 2 seconds
it might not be java, it could be the programmers, but they dont have very good performance
and no I don't think indentation is unimportant, but the opinionated way it is implemented as a language feature is retarded
also why have a colon at the start of blocks?
isn't that just a {
it is popular to sโ โ โ on java, thats why if anyone shits on it i ask them why because its very hard to trust someone shitting on anything--they might just not know it well enough
I think Java has quite a bloated syntax
tbh
used it for a couple years for LWJGL dev
didn't feel nice to work with
also aren't chars signed?
that is dumb
theres an old joke, something like -- java programmers look like theyre working harder because they can turn in 300 lines of java code instead of 50 lines of c++
lol
Java, as a language, has many design problems. As a platform, it's annoying that it claims to be multi-platform, when in reality it is its own platform. As standard API goes, it has many retarded APIs that were just rushed out the door. Most of the time, programming in Java feels like assembly, because you're forced to do so many tedious steps.
kek
James Gosling himself once said, the advantage of Java was that even unskilled programmers could make some progress.
XD
I don't like the whole package thing that java has
Now if only C++ wasn't a monolith of patchwork expansions
lol
well what is the best middleground between the 2? Python?
yeah, but I still would prefer c++ to some other languages out there
isn't it python 2 that thinks the following is okay?
```python
print "this is fine"
```
Yes.
why
It isn't valid anymore for Python 3.
that is bash syntax
I know
Because they thought "print" should be a language statement, not a function.
???????
It was "too special" to be a function.
that abstracts it so hard
it never teaches programmers that it is piping a string to stdout
at least java does that
?
does the line of code need to teach the programmer each and every time?
it should show what it is doing
the language statement, that makes it basically like typing an int?
That would be a valid line of argumentation, if Java didn't already run on top of a system written in C, where `stdout` is a universal feature.
```java
System.out.println("Hello, world!");
```
ew
i wouldnt *rather* type ``printf("``
We call that **verborrhea**.
out is a public static property of the System class that is auto imported
that is never conveyed to the progammer
^^but that up there is too long
it is weird
God forbid you have to format a string for output.
printf(garbage)
Do I use strings? string builders? string buffers? wut?
in c++ ``System.out.println`` is just ``cout <<`` right?
I think Java has a String.format function or something
yes
yeap
you can format string in java
Java's standard library is built around implementations, not around what the programmer needs to accomplish.
cout is a basic ostream from the iostream header
```cpp
std::cout << "Hello, world!" << std::endl;```
also fags that do `using namespace std;` can gtfo
uh cant you just type ``cout`` without anything preceding it
no
```
String.format()
Since: 1.5```
in c++11?
@M4Gunner that requires you to do `using namespace std;` which removes the need to specify the namespace
which is really bad
i put that just once? unless i need to change it later?
elaborate?
you can't stop using it once you have specified that
or it will make other funcs use the wrong namespace?
Just
```cpp
using std::cout;
using std::endl;```
cant elaborate outside my depth, so ignore my question if it seem too dumb ๐
i listen to everyone
and then decide on my own
no he is an evil man, trying to trick you into bad code practices
17,577 total messages. Viewing 100 per page.
Prev |
Page 16/176
| Next