comp-sci

Discord ID: 423219052849397773


17,577 total messages. Viewing 100 per page.
Prev | Page 16/176 | Next

2018-04-08 22:41:29 UTC

Yes.

2018-04-08 22:41:35 UTC

why on earth would you do anything in python

2018-04-08 22:41:37 UTC

Python is very convenient for quick prototyping.

2018-04-08 22:41:54 UTC

Bitch, did you know the two most languages used at Google are C++ and Python?

2018-04-08 22:42:07 UTC

`prototyping`

2018-04-08 22:42:21 UTC

There's this neat tool, called SWIG.

2018-04-08 22:42:21 UTC

it is just trash

2018-04-08 22:42:24 UTC

I'd do anything in Python because I had to, someone asked me to, or my team or employer uses it, i suppose

2018-04-08 22:42:29 UTC

I cannot understand why people use it so much

2018-04-08 22:42:44 UTC

it doesn't deserve popularity

2018-04-08 22:42:58 UTC

It does.

2018-04-08 22:43:19 UTC

the fact that it uses tabs instead of brackets is mind blowing

2018-04-08 22:43:44 UTC

It uses spaces.

2018-04-08 22:43:54 UTC

is there any point in java?

2018-04-08 22:44:06 UTC

I see, you're one of those immature programmers that think you're too cool for indentation.

2018-04-08 22:44:17 UTC

most people hate java

2018-04-08 22:44:27 UTC

isn't it popular to shit on java?

2018-04-08 22:44:29 UTC

Indentation is something you already do, no matter what language.

2018-04-08 22:44:37 UTC

^

2018-04-08 22:44:39 UTC

Python just uses that information.

2018-04-08 22:44:43 UTC

i avoid running any java programs if I can

2018-04-08 22:44:56 UTC

lol

2018-04-08 22:45:10 UTC

but that .jar

2018-04-08 22:45:18 UTC

god I leave this channel for 2 seconds

2018-04-08 22:45:23 UTC

it might not be java, it could be the programmers, but they dont have very good performance

2018-04-08 22:45:49 UTC

and no I don't think indentation is unimportant, but the opinionated way it is implemented as a language feature is retarded

2018-04-08 22:46:17 UTC

also why have a colon at the start of blocks?

2018-04-08 22:46:23 UTC

isn't that just a {

2018-04-08 22:46:27 UTC

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

2018-04-08 22:46:45 UTC

I think Java has quite a bloated syntax

2018-04-08 22:46:55 UTC

tbh

2018-04-08 22:47:05 UTC

used it for a couple years for LWJGL dev

2018-04-08 22:47:14 UTC

didn't feel nice to work with

2018-04-08 22:47:38 UTC

also aren't chars signed?

2018-04-08 22:47:41 UTC

that is dumb

2018-04-08 22:47:52 UTC

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++

2018-04-08 22:48:00 UTC

lol

2018-04-08 22:48:02 UTC

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.

2018-04-08 22:48:05 UTC

kek

2018-04-08 22:48:21 UTC

James Gosling himself once said, the advantage of Java was that even unskilled programmers could make some progress.

2018-04-08 22:48:28 UTC

XD

2018-04-08 22:48:28 UTC

I don't like the whole package thing that java has

2018-04-08 22:48:31 UTC

Now if only C++ wasn't a monolith of patchwork expansions

2018-04-08 22:48:38 UTC

lol

2018-04-08 22:49:01 UTC

well what is the best middleground between the 2? Python?

2018-04-08 22:49:05 UTC

yeah, but I still would prefer c++ to some other languages out there

2018-04-08 22:49:36 UTC

isn't it python 2 that thinks the following is okay?
```python
print "this is fine"
```

2018-04-08 22:49:45 UTC

Yes.

2018-04-08 22:49:50 UTC

why

2018-04-08 22:49:56 UTC

It isn't valid anymore for Python 3.

2018-04-08 22:50:01 UTC

that is bash syntax

2018-04-08 22:50:03 UTC

I know

2018-04-08 22:50:11 UTC

Because they thought "print" should be a language statement, not a function.

2018-04-08 22:50:16 UTC

???????

2018-04-08 22:50:19 UTC

It was "too special" to be a function.

2018-04-08 22:50:31 UTC

that abstracts it so hard

2018-04-08 22:50:46 UTC

it never teaches programmers that it is piping a string to stdout

2018-04-08 22:50:58 UTC

at least java does that

2018-04-08 22:50:58 UTC

?

2018-04-08 22:51:13 UTC

does the line of code need to teach the programmer each and every time?

2018-04-08 22:51:29 UTC

it should show what it is doing

2018-04-08 22:51:34 UTC

the language statement, that makes it basically like typing an int?

2018-04-08 22:51:44 UTC

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.

2018-04-08 22:51:56 UTC

@M4Gunner not quite, but close I guess

2018-04-08 22:52:22 UTC

```java
System.out.println("Hello, world!");
```

2018-04-08 22:52:45 UTC

ew

2018-04-08 22:53:08 UTC

i wouldnt *rather* type ``printf("``

2018-04-08 22:53:09 UTC

We call that **verborrhea**.

2018-04-08 22:53:16 UTC

out is a public static property of the System class that is auto imported

2018-04-08 22:53:28 UTC

that is never conveyed to the progammer

2018-04-08 22:53:29 UTC

^^but that up there is too long

2018-04-08 22:53:30 UTC

it is weird

2018-04-08 22:53:34 UTC

God forbid you have to format a string for output.

2018-04-08 22:53:55 UTC

printf(garbage)

2018-04-08 22:53:59 UTC

Do I use strings? string builders? string buffers? wut?

2018-04-08 22:54:04 UTC

in c++ ``System.out.println`` is just ``cout <<`` right?

2018-04-08 22:54:08 UTC

I think Java has a String.format function or something

2018-04-08 22:54:11 UTC

yes

2018-04-08 22:54:16 UTC

yeap

2018-04-08 22:54:23 UTC

you can format string in java

2018-04-08 22:54:24 UTC

Java's standard library is built around implementations, not around what the programmer needs to accomplish.

2018-04-08 22:54:41 UTC

cout is a basic ostream from the iostream header

2018-04-08 22:55:17 UTC

```cpp
std::cout << "Hello, world!" << std::endl;```

2018-04-08 22:55:35 UTC

also fags that do `using namespace std;` can gtfo

2018-04-08 22:55:53 UTC

uh cant you just type ``cout`` without anything preceding it

2018-04-08 22:55:57 UTC

no

2018-04-08 22:55:57 UTC

```
String.format()
Since: 1.5```

2018-04-08 22:56:09 UTC

in c++11?

2018-04-08 22:56:24 UTC

@M4Gunner that requires you to do `using namespace std;` which removes the need to specify the namespace

2018-04-08 22:56:30 UTC

which is really bad

2018-04-08 22:56:42 UTC

i put that just once? unless i need to change it later?

2018-04-08 22:56:56 UTC

elaborate?

2018-04-08 22:57:07 UTC

you can't stop using it once you have specified that

2018-04-08 22:57:07 UTC

or it will make other funcs use the wrong namespace?

2018-04-08 22:57:07 UTC

Just
```cpp
using std::cout;
using std::endl;```

2018-04-08 22:57:34 UTC

cant elaborate outside my depth, so ignore my question if it seem too dumb ๐Ÿ˜ƒ

2018-04-08 22:57:39 UTC

@M4Gunner don't listen to this man

2018-04-08 22:57:48 UTC

i listen to everyone

2018-04-08 22:58:00 UTC

and then decide on my own

2018-04-08 22:58:08 UTC

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