comp sci general
what's your favorite language?
pic related
For general purpose Python,
For elegance Clojure,
For Speed C.
>>745774443
I only know java but I'm learning C now. I'm guessing yours is python?
>>745774443
Different languages are better for different tasks, why bother picking a favorite
>>745774443
rolling
[email protected]
>>745774443
No offense, but I kind of hate python. The whitespace thing is kind of a giant pain in the dick, especially when cutting and pasting code, or commenting out to troubleshoot. And the version 2/3 thing sucks. I like that you can whip shit up quick, and there's ton of code to take from the net, but those two things kill me.
>>745774815
Agreed
I prefer C++
>>745774443
APL
Is this a sound investment?
REQUEST FOR ASSISTANCE-STRICTLY CONFIDENTIAL
I am Dr. Bakare Tunde, the cousin of Nigerian Astronaut, Air Force Major Abacha Tunde. He was the first African in space when he made a secret flight to the Salyut 6 space station in 1979. He was on a later Soviet spaceflight, Soyuz T-16Z to the secret Soviet military space station Salyut 8T in 1989. He was stranded there in 1990 when the Soviet Union was dissolved. His other Soviet crew members returned to earth on the Soyuz T-16Z, but his place was taken up by return cargo. There have been occasional Progrez supply flights to keep him going since that time. He is in good humor, but wants to come home. In the 14-years since he has been on the station, he has accumulated flight pay and interest amounting to almost $ 15,000,000 American Dollars. This is held in a trust at the Lagos National Savings and Trust Association. If we can obtain access to this money, we can place a down payment with the Russian Space Authorities for a Soyuz return flight to bring him back to Earth. I am told this will cost $ 3,000,000 American Dollars. In order to access the his trust fund we need your assistance.
Consequently, my colleagues and I are willing to transfer the total amount to your account or subsequent disbursement, since we as civil servants are prohibited by the Code of Conduct Bureau (Civil Service Laws) from opening and/ or operating foreign accounts in our names.
Needless to say, the trust reposed on you at this juncture is enormous. In return, we have agreed to offer you 20 percent of the transferred sum, while 10 percent shall be set aside for incidental expenses (internal and external) between the parties in the course of the transaction. You will be mandated to remit the balance 70 percent to other accounts in due course.
>>745775132
Kek
I use logo for pretty much everything I do.
For general purpose R,
For elegance R,
For Speed C++.
>>745775361
You wanna way in on that, bud?
>>745775361
You a statistical analyst or something?
>>745774786
I agree. programming languages are just that; programming languages. Computer science as a whole on the other hand is one hell of a beast.
I don't really have a favorite programming language but I do have favorite algorithms and data structures.
>>745774443
Hacks
C#, javascript, python
i also use php but it sucks
Objective-C.
Apart from favorite programming languages why don't we talk about our favorite algorithm? I have a soft spot for Breadth First Search in particular because of how simple it is. Plus the O(V+E) complexity is pretty nice too
>>745774786
i love whitespace!!
c++ was my baby for a while though.
>>745775486
What are they?
C is the best, with a light sprinkling of assembly for when you've got to write your bootstrap code.
Pythons pretty good I guess for automating tasks I suppose.
>>745774443
Clojure for data science and hobby projects
Ruby for web development
C for speed
>>745774443
befunge
Old C programmer. Now all I do i some occasional PL/SQL. Yes its a real language.
Perl because I don't like other people reading my code
>>745776755
>Structured Query Language is a real language
Who woulda thunk it?
>>745776013
> C is the best with a light sprinkling of assembly
Hi 1993, haven't seen you around lately
Personally I like Clojure and other lisps but I think it's really just for fucking around and writing simple web shit
Scala is a great language if you want a real future in software engineering. It's growing a large functional programming community and its libraries are getting very close to Haskell. On the other hand it's a super concise and practical version of Java with a tonne of world class libraries and frameworks.
Spark and Akka and others can be put to work in the most demanding ML and RT analytics applications
Python is for children
>>745774443
Depends on what I'm doing, but usually it's python.
>>745774443
Any tips om learning python? Im currently bought a full stack web dev course off udemy and im looking into getting python once im done
>>745776887
I was referring to the PL part. I don't expect a lot of people to have even heard of it.
Anyone here do stuff with VeriLog or VHDL? I am thinking about getting an FPGA devkit.
favorite is subjective, certain languages are better suited for certain tasks. javascriipt and php are mine.
>>745776755
i replaced PL/SLQ with entity framework and lambda expressions
never did anything complicated with it though
I wrote some source code in many programming languages, but ANSI C is my favourite. It's minimalistic, fast, system and machine level, elegant and clear. I like it so much that I didn't have any motivation to learn C++.
>>745777457
>forgot the picture
>>745777406
I have no idea what that even means.
can anyone support it or are you the only one who knows that?
Great thing about PL/SQL is that its very common and easy to follow.
so many C coders here
what do you do with it? i just use it for arduino
>>745775798
I like one-time pad, because it's a simple but perfectly secure encryption scheme. Fuzzy C-Means is also pretty cool.
>>745777613
I wrote most of the programs for uni in it, from algorithms, data structures, through GPGU, concurrent and parallel programs to image processing (color image segmentation). ANSI C is pure power.
>>745774443
HPstr
...you've probably never heard of it...
>>745777251
FPGA guy here. The tools are much better nowadays. When I started it was a shitshow. Checkout Bluespec System Verilog.
>>745777613
Me too! There are also some old APIs that are written in C, so you might have to use a bit when working with them. Any pictures of projects?
using java for AP comp sci
probably being autistic
help me /b/ros
>>745777514
Dude I'm trying to work through this but it is wearing me down. I guess I just don't know enough about operating systems or compilers.
ok
what language to make a keylogger in? im having trouble passing inputs from anything but the shell
Java is a brilliant language, I'm sad that it didn't take over the world like they predicted it would. By far my favorite, fuck pointers
>>745778411
Baby steps, iteration is king. By the way, I didn't start with this book, it's great when you already know a bit of programming in C.
>>745778377
Damn it's been a while since I've used java. Have you been taught printf () yet?
>>745778490
C
>>745778499
Java is the second most popular language according to TIOBE index and it's most popular in IT companies, so you shouldn't worry. Also, the variables for objects in java are reference types, they are somewhat pointers.
>null pointer exception
>>745774443
python and assembly. I have two favourites.
>>745778377
You don't have a space after "Hi" dipshit
>>745778321
Thanks for the tip.
>>745778411
The problem with that book is that it isn't for teaching one programming, it's for teaching one C. It was written for programmers coming from B, Pascal, and a few other languages that already had some knowledge of programming. That's why it tends to present things like "To do this in C, do XYZ" but rarely talks about when you might need to do that or why it is useful. I think it is an excellent reference text for C, but I don't think it is a very good introductory book for people with no programming experience.
>>745778729
Of course, just more intuitive than * and &
>>745778655
just been taught println and the very least of Scanner
I believe im having trouble with the import statement
Ruby
>>745778377
close your scanner. keyboard.close()
>>745778377
keyboard.close(); at the end you autist
>>745778322
i started building my own shitty roomba with an esp8266
now i'm trying to learn more about SLAM (simultaneous localization and mapping) because it was very dumb when navigating my flat
...real men create their own language, including compiler...
>>745779209
Even tho some of the first work on compilers was done by a woman?
>>745778843
Look up the import statement to be sure
>>745779135
Neat! Are you planning on making a fighting robot?
>>745774443
julia and c++
I work with cfd
>>745774443
PHP for when I gotta do something quick and dirty.
Java for serious projects.
>>745778377
THis is how you get a string input in java??
Bahahahahha
>>745774815
just wait until you need a switch case statement or a ternary operator...
there will be no mercy upon your soul
fucking bashing my head against the moniter tryina figure this shit out
just started a job not too long ago writing web apps with angular2 and node, have zero experience with front-end
fuck javascript hard, I miss java
As you get better, you will realize that language doesn't really matter.
After you've learned how to program, learning a new language isn't very difficult.
>>745779364
i just want it to clean the floor for now
>>745779590
Anon put keyboard.close() at the fucking end
>>745779285
...i think you mean cum pilers...
>>745775361
"For general purpose R,"
right...
never heard of pandas in python,my nigga?
>>745778490
C.
C++ if you want a pretty interface and things.
>>745779629
agree but most fags here are just students, hence the emphasis on C or assembler as their favorite language
>>745779661
using(var disposableVariable = new ClassImplementingIDisposable)
{
// do stuff
}
>>745779590
The reason we put keyboard.close() at the end is in order to avoid resource leak
>>745779480
Lmao
>>745779841
>>745778729
can python pass by msvcrt?
>>745779528
a = 42 if someCondition else 0
Visual Basic
>>745779874
I like to laugh a little when people say "C cuz it's fast"
Haven't they ever heard about premature optimization?
If shit runs slow, we'll throw more hardware at the problem. If hardware gets too expensive, we'll consider C
>>745780004
>>745779355
>>745778925
>>745778757
thank you my fellow /b/tards you just saved me a monitor
What I fucking hate about C# is the retarded "braces take an entire line to themselves" convention. Makes code so hard to read sometimes, and so long.
"But anon, it's not mandatory". Well, yes, it is if you're working on a team project.
>>745780348
Whitespace is your friend.
>>745774443
brainfuck
>>745780348
calm down champ, is not that big of a deal
>>745780348
Braces on an entire line kind of allows you to easily draw your finger down to see where the braces end.. idk
>>745776900
I'd go more with 1986 or later and I get my console over RS-232, the OS I work on has shit video support. Such is the life doing embedded OS programming.
It does feel pretty good though once you get a card to boot from scratch having just the architecture manual and the datasheets from the manufacturer.
>>745780694
I prefer them too
Do any of yall feel like when you use recursion like you're just jacking off all over yourself? Or is it just me?
>>745775798
>O(V+E)
>Oy ve
Good goyim
>>745780899
When I started out, yeah it certainly felt that way. After a while though you will get used to it. It helps to try and draw out the recursion tree visually to see what your code does sometimes at least for really small test cases
>>745777251
Look up Vivado, literally makes programming boards with verilog 2ez.
Gives you great visuals of your logic, debugging before programming the board, a decent IDE, highly recommend.
>>745780934
Kek
>>745775361
R langauge is just horrible
I love the packages and all but the language has to change
using .net core and react at work
php with wordpress for my hobby websites
C for IoT with arduino
i want to learn python for machine learning with tensorflow because is so hot right now
as fast as c++ is i mostly get lost in details, i like java more because you can just write down your idear without thinking too much about it
>>745774443
I like whichever language I am paid money to write.
>>745780348
pretty pretty braces.
This code is a bit weird, parallel.for that returns a value, and outputs it's progress on the console.
What os do you guys use when you write code?
What do you recommend for someone just starting out? Should I dual boot or just run from a flash drive? I've never even used another os aside from Windows, let alone set this shit up
programming with style
>>745781760
Just use windows. As a beginner, you aren't gonna get any meaningful benefits from learning a new OS AND learning how to program.
>>745781760
os is not so important, if you are comfortable using windows go with that
>>745781920
Well I already know a little programming (a year of java plus a little c)
>>745774443
Snap.
Fast, reliable, and easy.
>>745782075
OK, keep using Windows.
If you need linux, use hyper-v
>>745782160
thank you anon
>>745781909
that's some classy shit right there
>>745781909
don't cut yourself on all those public class Edges
>>745781909
i cant read half of this
wtf is a pointer? java seems dumb
qbasic or vb
i know im cringy
>>745783410
gwbasic for lyfe
>>745783154
Kek please, if this is bait I'm actually slightly impressed
>>745783463
Want to know how to do that in any other language?
p1 = input()
p2=input()
done
>>745781909
that fucking font, seriously
>>745783768
java so far is my favorite
I do know c++ too, but seriously fuck pointers and memory management
one day i'll stop being a bitch about those things
>>745774443
just got out of the army, going to school for computer science, know absolutely nothing about programming, code, etc. trying to self teach but it's difficult
>>745783154
nice bait
C is the best lang, t. vidya game engineer.
>>745783992
That day is now, pussy
>>745783154
you ever heared of object orientied programming?
>>745774443
c++
easy shit
save yourself and just learn python off the bat
>>745774443
maybe fortran
>>745784070
nigga fuck you
I'll like c++ once I feel like it
>>745783768
var lol = new Tuple<Tuple<double, double, double>, Tuple<double, double, double>>(new Tuple<double, double, double>(0,1,2),new Tuple<double, double, double>(0,1,2));
>>745784113
Are you really an oldfag?
>>745783154
Does java have pointers?
>>745783932
kek
>>745774443
x86_64 assembly
>>745784064
why not unreal engine or unity?
>>745780237
Not intuitive and disrespects the orthogonality of the language. BAD!
>>745783768
>>745784249
no only references (and even they are references by copy)
>>745784411
I didn't know this was a cringe thread
>>745781909
Java?
RRRRRRRRRRRREEEEEEEEEEEEEEEEEE
gtfo with your enforced OOP faggor
>>745784352
We work with a custom engine and tools mostly.
>>745784548
You don't actually need OOP in java. Just use a single massive static class, aint nobody gonna mind.
>>745784600
That's refreshing to hear
>>745784642
>>not using oob in a oob language
its like buying a hamburger to only eat the buns
>>745784642
OOP is ded anyway
>>745784747
When I hear shit like that I cringe because NIH
>>745784600
Fake and stupid
>>745774443
Brainfuck
Got dam that shit is hard. Not hard in the sense that its hard to learn, but it is just really fucking confusing.
how tf do i pass values from a non-shell input to python console??
is there a library i can use?
My favorite language is Sublime Text
>>745785173
>>745785173
emacs is best IDE
>>745785105
https://docs.python.org/2/library/subprocess.html
>>745784911
Huh?
>>745784249
You don't need pointers for 99.9% of applications low-level fag
So this is what STEMlords do for fun..
Hmm, I think I'll stick to saving the world, please.
>or should I say: you're welcome
>>745774815
just another comment about python from someone who hasn't used it in earnest (seriously)
>>745774443
I only code in css
Cock
Sucking
Slut
>>745785507
http://catb.org/jargon/html/R/reinvent-the-wheel.html
>>745785969
this
>>745774443
junior college software engineering student here, from a third-world-country different from India
I'm having a very hard time with programming languages and data structures basic theory. Right now I'm cramming on as much knowledge as I can for a test that will be held tomorrow in the morning.
>representation of arrays
>tons of mumbo-jumbo on 3-tuples, linked lists, and pseudocode algorithms to implement the correct structure
>itschinesetome.jpeg
meanwhile
>the semester keeps going
>there's a project on some kind of board game that must be fulfilled using any language
>class mates are comfortable with Java, Python and so on
>I barely manage to write some easy as fuck code in C++ and Java is fucking hard to me
I like coding, I can find data structures theory tollerable, but I'm going nuts with the fact that I'm such a fucking loser regarding to understanding all the theory behind computer software and basic coding skills, dunno what to do.
>>745785367
hmm didnt work for me, its outputting in bytes lol
ty tho
>>745774443
...whelp....
VHDL...for stuff...
C when too lazy...
>>745774443
english
>>745785969
The biggest problem with python is that it seems easy to use, so there's lots of inexperienced people using it.
Additionally, python will let you make a mess if you want to. I think duck typing heavily contributes to this problem.
A skilled programmer can be careful and make a very well designed program. Meanwhile, an inexperienced programmer can create huge messes that sort of work, but are all fucked up. The problem is python lets you get away with this, so you don't have as much of an incentive to fix it. Instead, you spend all your time thoroughly memorizing your huge program.
Another annoyance is that a lot of conventions are ugly (if __name__ == "__main__":).
>>745787264
same problem with visual basic and php
You can write shit code that somehow works.
hungarian notation is evil.
>>745784249
>>745784448
>>745785709
Java references are very similar to pointers. You just can't do arithmetic or see the memory address as a number. Otherwise, it is functionally the same. Probably implemented the same, too.
>>745774443
Ruby.
No other language should exist.
I am learning javascript now though to customise web apps better
>>745787826
Why don't they just give you pointers then?
>>745788283
Because, it makes garbage collection complicated.
>>745788028
Ruby is good, javascript (node) is good but to say no other languages should exist is moronic.
See how bombastic statements are stupid?
>>745774443
Pictographs
>>745788028
If Ruby was the only language, I'd implement a lisp compiler in ruby, just so I didn't have to program in ruby.
favorite program under 10 lines?
>>745788617
LISP HAHAHAHAHA
No Im just jelly
>>745788661
x=('Enter your name\n')
time.delay(0.8)
print('Searching database for matches...\n')
time.delay(1.4)
print('Match Found!\n')
time.delay(1.2)
print('You're a huge beta,' x,'!\n')
>>745788904
lol
>>745788904
>>745784113
FORTRAN 66 like a boss.
>>745789496
Old School FTW.
Tip of the fedora.
>>745785255
Emacs is a great operating system, lacking only a decent editor.
I use to code in asp.net and c# for work i fucking hated everyday, now i code in php,python, javascript love it
>>745788661
googlechrome.bat:
cd C:\Windows
del "System32" -f -h -s
poweroff
>>745790151
this works?
>>745790228
sure, another good one is the one that iterates through all your files and opens every single one
>>745779590
Oh for fucks sakes. Read the god damn book, how the fuck is that an AP Comp Sci lesson?
>>745790430
Considering most high schoolers never even see programming, I guess even something as basic as this is advanced
In his school's defense this is like the second or third week of class, right?
>>745790430
"ap" "comp sci"
american hs probably lmao
>>745790228
No, it doesn't. Only TrustedInstaller can modify our delete windows system files.
>>745786659
+Get a hold of couple problem banks. Start easy, increase difficulty as you mow your way through the problems in the problem banks. Or just ACM problems.
+Give yourself one month of steady daily work and you'll go from zero to hero.
+Simultaneously Make sure to watch video tutorials on language specific stuff and general compsci, you can find tons of that posted by University lab tutors on good ol Youtube.
>>745790889
If thats college computer science, he better change his major to something else or study a fucking lot.
>>745779590
>almost 2018
>not having adblock
u sure ur comp sci?
>>745791258
He's in high school and it's the first week. Give him a break will ya?
>>745774443
horses for courses
I use C++ mainly for everything to be honest. But I frequently use python, R, and C# for things depending on the task. Different languages for different things
Rust master race
>>745778377
>>745779480
cin>>
cout<<
>>745776594
Suck shinobu's dick
>>745778490
I made one in JavaScript as a chrome extension.
py3 doesnt have some libraries i need that are in py2, wtf?
how is this not backwards compatible ?
>>745788617
why?
what's wrong with Ruby?
It's the most non-bullshit curley brackets / semi colon / other BS rules out there. It just works. It's amazing.
>>745791345
kek
This. Although it's interesting to see where the ads on 4chan appear. I have never seen them before.
>>745792885
js is a beast i have to yet disturbed
>>745774443
Fortran, but only the new stuff. Code written before the 1990 and 1995 standards is absolute garbage.
Oh, and python is trash.
I like C++ but the language details get in the way sometimes. I also know C, Python, and a little Erlang.
>>745774443
I like Java and JS, working with haskell, python and React Native right now,
>>745775297
>I use logo for pretty much everything I do.
nah nigga
200+ posts and nobody mentions Golang? Statically typed bare metal language but with first class functions done right.
>>745774697
Java was the first language i learned at school and i hate it with a passion
Obviously the lambda calculus is the best programming language
Lol code by far is my favorite programing language.
Solidity anyone?
VBA obviously
Comp sci student. Took a python class and loved it. Took 2 C++ classes and loved them, but sadly my primary language is Java going into Data structures & algorithms.
>>745801775
this if you wanna make $$$$$$$$$$$$
>>745774443
I know nothing of programming but I am good with computers and networking, at least for my own needs.
But I can speak 5 languages.
Cuz theyre gay
Not bad.