[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 349
Thread images: 32

File: 1481034157681.jpg (64KB, 1024x906px) Image search: [Google]
1481034157681.jpg
64KB, 1024x906px
What are you working on, /g/?

Old thread: >>58181779
>>
I'm reading (modern) OpenGL tutorial, this shit is dense.
>>
>>58190208
lol don't even bother if you're not prepared to go full autismo
>>
Functional programming thread:

>>58174033
>>
>>58190228
I think I'm prepared, sometimes it even looks like I can see the rationale behind the design and understand the logic of it.
>>
>>58190406
>>
Working on mesh protocols for making my own modular alarm system more convenient.
>>
anime filter to scan MAL and then auto hide messages and images on 4chan that have a >75% correlation to anything in it's database
>>
>>58190506
The forums? I don't understand.
>>
>>58190506
I don't think my Anime list forum users intersect that much here.
>>
whats the best way to store structured text data in java, without the need for external libraries?
>>
>>58190520
>>58190587

My bad, should have clarifed. It logs the cast list of the currently airing series, searches the series name into google images and stores a handful as reference. If a post on 4chan mentions a name or posts an image of one of said series it auto-hides the post.
>>
>>58190593
JSON.
> without the need for external libraries
Stop being a NIH retard.
>>
>>58190593
what do you mean like storing each word of a text? Or blocks of text files as whole unit
>>
>>58190604
So basically you don't want to see people who save Anime images for later use?
>>
>>58190631

this is what I have right now. it will become unwieldly if I add much more.

public static Map<String, String[]> parameterkeys = new HashMap<String, String[]>(); 
static {
parameterkeys.put("Substance", new String[] { "R", "Node ID", "CAS Code", "EU Index Code", "EINECS Code", "GADSL Duty to declare", "GADSL isUnwanted", "GADSL isProhibited",
"isReach", "isHidden", "isDeleted"});
parameterkeys.put("SubstanceSynonym", new String[] {"RN", "Node ID of basic substance", "Synonym ID", "ISO Language", "Synonym"});
parameterkeys.put("Company", new String[] {"FI", "Company ID", "Company Name", "Street", "Postbox", "Country Code", "Postal Code", "City", "Is Deleted",
"Is OEM", "Duns - Number"});
}
>>
>>58190593
>store structured text
Store it as a text file in the working directory of the application and read it in.
>>58190652
>this specific case
Yes. Read it in then parse it into an array of strings. I suggest you use newline as delimiter.
>>
File: sad.jpg (26KB, 600x450px) Image search: [Google]
sad.jpg
26KB, 600x450px
>finished core stuff
>time for the ui
>>
>>58190815

UI is the most fun part. Or is it?
What are you using?
>>
>>58190923
its a webapp, so doing the UI means css, javascript and other hilarities
>>
>>58190975

eeeh ... still better than having to learn Qt, I guess
>>
Can anyone recommend a python gui? I was using tkinter but the documentation is poor; There must be something that is still in active development.
>>
File: java.jpg (107KB, 1280x768px) Image search: [Google]
java.jpg
107KB, 1280x768px
Is this language that bad? I mean, it must have some redeeming qualities, considering how widespread it is.
>>
>>58191063
>it must have some redeeming qualities
No, not really.
>>
>>58191023
I've heard Python have decent qt bindings.
>>
File: 36743.gif (855KB, 500x281px) Image search: [Google]
36743.gif
855KB, 500x281px
>>58191063
>Is Java that bad?
>>
>>58190998
>having to learn Qt
What do you mean by this?
You have to add the moc to the cmake, and learn the structure of signals and slots, but other than that, it is the same as everything else.
>>
>>58191063
> it must have some redeeming qualities

Makes it difficult to fuck up
Easy to find and hire programmers in it
>>
>>58191063
>I mean, it must have some redeeming qualities

It is:
- portable to multiple devices
- not too high-level, not too low-level
- very enterprisey, only C# has similar commercial forces behind it
>>
>>58191134
> not high-level enough, not low-level enough
ftfy
>>
>>58191092
Qt is awful.
Luckily there are alternatives.
>>
>>58191359
> Qt is awful.
y tho
>>
>>58191063
it's literally one of the best languages, the hate it gets is mostly hipster fedora tipping and mad jelly butthurt memes
>>
>>58191367
Bloated, improper use and abuse of c++, redundancies, etc.
>>
>>58190506
nice autism
>>
Is Smalltalk the only true OOP?
>>
>>58191550
https://en.wikipedia.org/wiki/No_true_Scotsman
>>
>>58191550
No, message-passing is an inherently retarded way of doing OOP.
The true OOP is Simula -> C++ -> Java/C#/Most of the languages out there.
>>
>>58191447
> improper use and abuse of c++
Like what?
>>
>>58191672
It's stuck with the idioms that were popular during C++98/03.
>>
>>58191672
OOP
>>
>>58191688
And whats wrong with that? New != good
>>
>>58191706
Huge inheritance trees aren't fun, and the whole memory management in Qt looks as if you were leaking memory everywhere.
>>
>>58191664
>message-passing is an inherently retarded way of doing OOP
Message-passing is one of the things that defined OOP, idiot.
>>
>>58191731
What's better than QT?
>>
>>58191734
He doesn't actually know what OOP is.
>>
>>58191664
"->" does not mean "is greater than"
>>
>>58191738
There are no better alternatives, that's the problem.
>>
>>58191731
> whole memory management in Qt looks as if you were leaking memory everywhere.
Only looks like or does it actually leaking that mach of memory? Im not really into Qt's innards. Also I do agree that garbage collection is never a good idea.
>>
>>58191753
Why os Open Source so shit for everything not ultra low level/simple?
>>
>>58191734
>>58191743
>The first OOP language, Simula, has no message-passing
>The most popular OOP languages, Java and C++, have no message-passing
Are you these retards who think Smalltalk invented OOP and CLOS perfected it?
>>
>>58191769
>The first OOP language
That's like saying Adam was the first Christian
>>
>>58191764
You use new everywhere, and it cleans it up somewhere under the covers, but I like the way of smart pointers which Qt doesn't embrace.
>>
>>58191769
A method call is a form of message passing.
>>
>>58191777
Adam wasn't christian though.
>>
>>58191790
Well done anon

Well done
>>
>>58191794
:)
>>
>>58190593
If it's just a map, use Properties.
If you need lists, but nothing more fancy than that, use Properties, and split on '\0'.
If you need to have a full on hierarchical database, use XML. Java comes with parsers, both SAX and DOM.
>>
How viable is learning programming to do freelance for some extra cash?

I'm living with my mom right now while I'm trying to get into college and our health insurance rates go up by a lot if the household makes 15 more dollars a month than we do so I can't get a normal job, but if I were able to get money through paypal or something it wouldn't be on the books so I could actually do something and programming seems like it could work for that purpose but idk

pic unrelated
>>
>>58191781
Message-passing implies that an object dispatches method calls dynamically by their name, up to responding to non-existent methods on the fly. This approach prevents any optimizations while adding nothing useful. In contrast static dispatch + vtable in modern OOP languages reduces costs of abstraction almost to zero without loosing much of an expression power.
>>
>>58191832
>Message-passing implies that an object dispatches method calls dynamically by their name
no
>>
>>58191781
not really
>>
>>58191832
also
>optimisations
>abstraction cost
nothing to do with OOP
>>
>>58191827
Not that hard to make money on freelance. I would suspect the IRS takes a close look at most freelancing sites though...
>>
>>58191832
>Message-passing implies that an object dispatches method calls dynamically by their name, up to responding to non-existent methods on the fly
No it doesn't.
>>
>>58191838
>>58191849
>>58191854
Well, I've looked it up and I guess I was wrong, message-passing is quite a general them.
That I meant is over-reliance on dynamic dispatch in Smalltalk, with classes having no fixed sets of methods they're able to respond to, combining with dynamic typing.
>>
>>58191063
The language as of Java 8 (and Java 9's preview) is pretty good.

The problem is that the community is filled with retards that can't get shit done, and compensate with adding shitty classes everywhere to make it look like they're doing something.

You might want to do
shitpostDao.shitpostsFrom(someTripfag).parallelstream()
.map(Shitpost::getText)
.map(String::toLowerCase)
.map(TextAnalyzer::removeStopWords)
.map(sp -> new TextAnalyzer.analyze())
.forEach(paraCollection.add(a));


And think that this is an excellent way of programmatically removing shitposts.
Just make sure that paraCollection can handle parallel additions in some way. You can now use more cores than AMD itself can throw at you. And you only had to figure out what collection to use.

But no. People still write code as if Java 5 was new, and the simplified for-loop is a bit too new for them. It's saddening.
>>
>hurr durr nobody uses FP
>hurr durr FP is shit

>lambdas are almost universally accepted and praised
>>
>>58191899
>mfw I'm practicing Java 8 features now on my Starcraft Brood War AI
>>
>>58191899
I obviously meant

> .map(sp -> new TextAnalyzer.analyze(sp))
> .forEach(a -> paraCollection.add(a));

Whoops.
>>
>>58191899
Are there any other neat additions to Java besides lambdas?
>>
>>58191946
Collections, Time APIs, and other utilities for the Object classes and other shits that I barely use
>>
C++
>[&](int x) { return x + 1; }

Java
>x -> x + 1

Why is C++ so verbose?
>>
>>58191982
You don't need & in your example.
>>
>>58191914
>>lambdas are almost universally accepted and praised
says who? they're mostly irrelevant outside of cs101 and FP langs
>>
>>58191899
>>58191942
>new TextAnalyzer instance for every shitpost
>Java is slow and uses many RAMs
>>
>>58191982
Haskell
> (+1)
>>
>>58192004
kys >>>/g/fpt
>>
>>58192010
Why so mad?
>>
I am making bash script which scans webservers(on port 80) which:
>loads an IP list
>scans several common places where the "phpinfo()" config file is stored
>extracts founded servers' "System"(IE. kernel version) when they are found(200)
>saves them to file with the IP, kernel version, documentroot location and eliminates honeypots

I am not a great programmer so some parts are a bid tricky. I have the basic scanner for the "phpinfo()" file down which saves founded configs(status code: 200 & correct title information) but actually making it
quick, and scraping the config file hard.

The only way I can think of doing it with bash is using:
-wget to grab the entire config file
-greping the lines I need
-saving the correct information to file
-rming the config file
-repeat until it has reached the bottom of the ip list

:|
>>
>>58191982
What I don't get is the languages that use the literal 'lambda'. Like, how Common Lisp's
 (lambda (x) (+ x )) 
is a good idea?
>>
>>58191946
java.time.* comes to mind.

the JDBC classes got better too.
If I want to store, say a UUID on a PostgreSQL database, I can define my table with the uuid datatype, and use setObject to set a java.util.UUID directly. None of that retarded casting via string shit. If the database engine supports the datatype directly I can now often just setObject it, and life is better for it.

There's also default methods for interfaces, which means you can do this:

package ...;
import com.google.gson.Gson;

public interface Jsonable {

default public String toJson() {
Gson gson = new Gson();
return gson.toJson(this);
}
}


And now all you need to do to get a Json-representation of your object is to have its class implement Jsonable.
And if you need to wiggle some waggles because Gson doesn't do the right thing, just override the method for that usecase.

Collections and Arrays now have parallel sorting, so you can go for MOAR COARS if you want to without having to specify it yourself.

All in all, a whole bunch of neato concurrency stuff has been added, along with cryptographic enhancements nobody on /g/ will really care about.

Those are the ones I can remember off of the top of my head.

But Java 7, 8 and 9 are really mostly about making your life easier and comfier. There are still people out there that don't use the java.nio.* packages ffs. I blame outdated learning material. People google how to do things and they find old shit on StackExchange from 2007 or whatever.

And then one day, you stumble across a package that solves every annoyance you had, which had been there for ages. Kinda like Unix in that regard. Suddenly you find that one command that does exactly what you need.
>>
>>58192063
It's a bit verbose, but to be fair that is kind of asking like why languages use a literal "for" or "if"
>>
>>58192002
> Object creation is cheap in Java.
> You need a new object, because every shitpost-analyzer will have its own state that cannot be shared.
> We're running on fixnum cores.
At worst, I'm trading RAM for speed.
Also, if I'm using the generational garbage collector, then the analyzers won't necessarily make it out of the nurseries, and will be collected unceremoniously, depending on how much work is being done by the analyzer.

It's not all black and white, anon.
>>
>>58192066
Oh, I was just curious, I'm more of a C++ guy, but that's nice to hear.
>>
>>58191997

JavaScript uses lambdas all the fucking time.
But they're called function in JavaScript.

JavaScript has been called many things, but overly academical is not one of them.
>>
>>58192049
Check out BeautifulSoup for Python.
There's versions of the same thing for other languages too.

But thank you for not just using regex and thinking it's good enough.
>>
>>58192109
javascript is webdev faggotry

lambdas are almost never used in real languages like C/C++ and java
>>
>>58192126
C++ makes heavy use of lambdas in the STL.
>>
>>58192126
They're used all the time in Java.
In fact, one of the main reasons Swing sucked was that you didn't have syntax for it.

Lambdas are used all the time in Java now that there is a specific operator for it.

bar -> foo(bar)

is the syntax for a lambda in Java. You see it all the time now.
>>
>>58191982
I think the C++ syntax is better.
>>
>>58191997
LINQ
I
N
Q
>>
>>58192162
C# is disgusting shit
>>
>>58192156
You can write it as
(x) -> { return x + 1;} 

if you want to make it look more like C++
But Java stole some ideas from Haskell and will use type inference in lambdas so you don't have to explicitly type the arguments.

>>58192169
C# is fine.
>>
>>58192169
I disagree, but everyone is welcome to their opinion.
>>
>>58192126
> lambdas are almost never used in real languages like C++
You have no idea that you're talking about.
>>
File: 142426016079.jpg (51KB, 500x500px) Image search: [Google]
142426016079.jpg
51KB, 500x500px
>>58192183
>But Java stole some ideas from Haskell
>>
>>58192183
in C++ you just have to put auto everywhere
you can even do constexpr variadic polymorphic lambdas
>>
>>58191982

[what gets captured and how](typed parameters){ function; body; }

C++ is always ugly as hell, but it has generally been about flexibility and being fucking explicit.
>>
>>58192264
sure, it's "explicit" when convenient, and "verbose" when inconvenient
>>
>>58192264
Please stop tripposting, this isn't reddit.
>>
Do Java software companies actually use Swing for their products?

Or is there something more sophisticated?
>>
>>58192309
Swing is apparently deprecated, JavaFX is what you should use.
>>
>>58192089
> Object creation is cheap in Java.
I doubt it's chaper than a ref lookup (reusing analysers with ThreadLocal).
> You need a new object, because every shitpost-analyzer will have its own state that cannot be shared.
State for a single method call? My guess is that analyse can be made static with minor refactoring.
>>
>>58192124
I have no knowledge in Python, but I am looking into it and the documentation on Beautiful Soup.

The reason why I don't use regex is because I am too stupid to use Regex desu.
>>
>>58192295
The only thing to stop tripposting is to stop to respond to tripposters.
Ignore them, hide them, but dumb anons will still reply to tripposters.
>>
>>58192280

It's both all the time. Being verbose is the inconvenience, but being explicit is the convenience.

>>58192295

No. How does that make you feel?
>>
>>58192280
only slack-jawed faggots who can't touch type properly whine about verbosity
>>
File: patriotic englishman.jpg (80KB, 889x500px) Image search: [Google]
patriotic englishman.jpg
80KB, 889x500px
>>58192359
Are you retarded son?
>>
>>58192382
kys fag >>>/g/wdg >>>/g/fpt
>>
>>58192394
>yes
You should seek help as soon as possible
>>
>>58192400
>projecting this hard
>>
>>58192411
Calm down javafag
>>
>>58190593
>best
by what criteria

serialize it and write it to a file
>>
>>58191063

It's portable to every OS without modification and it's almost as fast as the autism languages but without requiring autism to use. It has libraries for everything and it's stable and well documented.
>>
Which language is more likely to cause one to have suicidal thoughts, Java or PHP?
>>
>>58192621
> without requiring autism to use
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
>>58192715
Java, PHP is so stupid it's actually funny.
>>
Daily reminder that PHP a shit
>In 2007 the interpreter had an integer overflow vulnerability. The fix started with if (size > INT_MAX) return NULL; and went downhill from there.
http://use.perl.org/use.perl.org/_Aristotle/journal/33448.html
>>
>>58192724

I dunno man. Java I can somewhat tolerate. The one time I actually had to use PHP in a project, it was physically painful to use.

>>58192755

I... goddammit PHP devs.
>>
>>58192715
php ofc
>>
>>58192755
>size > INT_MAX || size <= 0) || ((size * charsize) > INT_MAX || (size * charsize) <= 0
>size <= 0) || (size * charsize) <= 0
at this point you're LITERALLY retarded
>>
>>58192755
>>58192842
>>58193016

"I don't know how to stop it, there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language, I just kept adding the next logical step on the way."

- Rasmus Lerdorf


"There are people who actually like programming. I don't understand why they like programming."

- Also Rasmus Lerdorf
>>
Any OpenGL experienced people about? I have more questions.. Same fag from yesterday.
>>
>>58192755
How the fuck do people people that stupid manage to write a working interpreter of any kind?
>>
>>58193165
I've done a little OpenGL before.
>>
I'm learning Entity framework, i created one table with 5 columns with 5 rows just to try connections, and after i manage to import database into project i noticed the simplest query takes ~2-3 sec in console to show data.

I thought Entity is usually this slow but after i tried AdventureWorks which has gorrilion of columns and rows, reading in console is almost instant, way faster than my shitty db

What could be the reason for that? I don't even have primary keys or anything, just columns and rows. Both dbs are on my pc
>>
>>58193340
You're hosting an AdventureWorks DB and your own DB on the same SQL Server instance, correct?

Or is your own database in something like Postgres?
>>
>>58193363
I'm not hosting any of those dbs anywhere (yet). I made my simple db in ssms and just exported it to .mdf file which i included in my VS project, i did the same with AdventureWorks

I'm still not doing anything directly to sql server
>>
>>58193457
I wouldn't worry about it until you actually mock up the production design.
>>
>>58187682
This gives the same error, not sure what's going wrong?

foreach (string fileName in dirs)
{
int fileNumber = 1;
File.Move(@fileName, @animeFolderPath + "Episode " + fileNumber.ToString());
fileNumber++;
}
>>
>>58193543
fileNumber will always stay 1.
>>
>>58193564
Why is this?
>>
>>58193543
fileNumber is always 1.
You need to put
int fileNumber = 1;

before the foreach loop. Otherwise your setting fileNumber to 1 on ever loop.
>>
>>58193479
That's basically the second question i have.

I\'m not really sure how this whole thing works (i'm just starting to learn c#)

Do i store SQL server (and my database on it) on some remote pc and have my program on my local pc write queries and updates to the db or is it better to have both program and db on some remote pc

Plan is to have one program to search web, store shit in db and second program (for clients) that will receive data from db
>>
>>58193564
>>58193572
Thank you, kinda ridiculous how I overlooked something like that... Thanks a bunch guys/
>>
I heard y'all were talking about Qt, anyone here's ever done anything interesting with it?
>>
>>58193574
Well, you're obviously going to need the database (or service accessing the database) in a mutually accessible location, considering both you and your clients need access.

This means a remotely accessible service that either you will need to host yourself, or you could go with a cloud-hosted option.

I recommend the latter.

Is this something that you're going to be making a little bit of money off of, or do you have a budget to spend in the dev of this application?

You can host up a super basic Azure SQL Database for like $5/month, $15/month for a much larger one with redundancy and geo-replication.

This way, both your utility writing to the database and the client-side application can read from a common endpoint.
>>
Is there a language like java but compiled, with RAII and objects can be put on the stack?
>>
>>58193654
C++.
>>
>>58193654
C++ or C#, with the exception that C# doesn't have RAII, but has mechanisms to manage similar functionality.

Bonus points for both: C# for the majority of everything, C++ for performance-critical modules.
>>
>>58193669
>>58193686
But in C++ you have pointers which can be unsafe when used incorrectly.

I want something similar to smart pointers in the language itself.
>>
>>58193718
Rust?
>>
>>58193718
C#, then.

You don't have to use unsafe pointers in C++.
>>
>>58193686
How does C# not have RAII? I thought it did, but maybe I don't understand RAII properly.
>>
>>58193736
Not in the strict sense, it has a garbage collector.
>>
>>58193736
Strictly speaking, C# does not have RAII.

However, it accomplishes much of the same endgoal between its garbage collector and the "using" statement for anything that implements
IDisposable
.

The primary reason why it can't have "proper RAII" is that the GC is nondeterministic.
>>
>>58193634
This is primarily hobby project, as i'm just learning c# and programming, but this simple project i'm doing is indeed original (for my local market) and it's possible to make money off it (if everything goes ok), so there's a possibility i'd need reliable hosting

I've looked at Azure, and most people do not recommend first 2 or 3 basic packages as they are too slow

If i place a db on Azure, do i need to program some obscure shit like port openings and stuff like that so the program can access the db in the first place

I tried to connect to my VM sql database from my SSMS on real pc, couldn't do it. Seems like i have shitton of ports to open
>>
>>58193762
Right. But you can call .Dispose(), and use Using, which is deterministic.
>>
>>58191063
People talk shit about every programming language
>>
>>58193787

Not everything implements IDisposable.
>>
>>58193828
OSGTP does
>>
>>58193828
not everything has resourced to be disposed of either. Same with C++.
>>
File: anal beads.png (7KB, 329x105px) Image search: [Google]
anal beads.png
7KB, 329x105px
>>58193777
>I've looked at Azure, and most people do not recommend first 2 or 3 basic packages as they are too slow
It depends on how much calculation the DB is doing, and how much data you're moving.

I have the $15 tier one for an in-production application here at my company and it works like a charm.

>If i place a db on Azure, do i need to program some obscure shit like port openings and stuff like that so the program can access the db in the first place
Nope, the connection string is a URL that you specify (
cockmongler.database.windows.net
), and you just go in the Azure portal and whitelist your server-side IP for access.

On the client side, you'll have something managing those connections, rather than letting them connect to any database directly. If you want a pre-built solution that does all this for you, look into Azure Mobile App Services.

It stands up a basic database with a connection broker, and gives you a downloadable VS solution file that's already configured with all the connection information.

>sql database from my SSMS on real pc
You can connect directly to Azure SQL databases with SSMS. Pic related.
>>
>>58193861
>It depends on how much calculation the DB is doing

My wild guess would be 100 queries every 30sec

Query would be really simple shit, select 1-3max rows that have 5 columns

At the start i don't think there would be more than 10 queries every 30sec
>>
>>58193924
You'd be way more than covered with the S0-tier, and could likely get by with Basic until you actually see a problem.

How are you managing authentication? Is your service that's writing to the database server-side somewhere? That needs to be hosted, too.

Keep in mind that you can get fucktons of Azure credit for testing and dev if you work for a startup or if you have a student email, so test/dev should be free.
>>
>tfw more programmer than programmer
>>
>>58194009
no
>>
Someone post a programming challenge.
>>
>>58193787
Right, it serves the same purpose, but is not strictly equivalent to RAII.

This is why you always get to the root need of someone, and don't let them tell you they "just need RAII" without specifying the particular attributes that RAII exclusively has.

>Hey, I need an admin account for the database.

>What? Fuck no. Why?

>I just need to monitor the disk space of the DB server.
>>
>>58194025
Average 2 integers in C
>>
>>58194022

lel butt hurt detected
>>
File: anal beads.webm (1MB, 492x496px) Image search: [Google]
anal beads.webm
1MB, 492x496px
>>58194025
Make a post-non-denominational-winter-holiday tree that accepts a 7x7 ascii input and puts that at the top of the tree spinning, with multi-colored lights.

Bonus points: generate the tree out of progressively longer racial slurs as provided by a website somewhere that has a list of racial slurs.
>>
>>58194025
Convert an integer to a string.
>>
>>58193994
>How are you managing authentication?

Still not didn't think of that, obviously db needs to be secure so only my program can access iit but i have no idea what to do there

> Is your service that's writing to the database server-side somewhere?

Sorry, i don't understand this. Currently my program now just gets the data from the internet but stores it in local observablecollection as objects, i didn't implement any db to it. At the moment i'm just learning how to read and write data from already existing .mdf files, i am yet to learn how to write on a db that's not on a local pc but on some sql server

It would be perfect if that program that sends data to azure db is also somewhere online so i don't have to think about it

>Keep in mind that you can get fucktons of Azure credit for testing and dev if you work for a startup or if you have a student email

I'm in 3rd world, student but we don't have those .edu emails
>>
>>58190604
Nice
>>
File: h5g3etjnacmazg8oq17z_400x400.jpg (14KB, 400x400px) Image search: [Google]
h5g3etjnacmazg8oq17z_400x400.jpg
14KB, 400x400px
So I have this Matlab assignment about signal plotting. And of course the teacher gave us jack shit for indications. We went straight from the abc's to "plot an AM triangular signal, with the following specs."
Can someone run me through the basics of signal plotting?
How do I plot a rectangular signal with:
>period = 2s
>fill = 25%
>A+ = 0.5
>A-=-1

for various time resolutions (2ms, 20ms, 200ms)

If I can get this first hurdle down, I can do the rest by myself.

I thought about simply defining matrixes with for's and if's but the variable time resolution thing gets in the way.
>>
>>58194083
You've got a lot of reading to do.

Is this going to be a mobile application or a desktop application? Would you consider making it a web app?

I'm not really sure where to direct you, but you'll need to read up on server/client application design, because there's lots of little details to consider, particularly when it comes to authentication and data access. Even things like exception handling and logging, which you could use something like Exceptionless to track and fix.
>>
>>58194165
https://www.mathworks.com/help/signal/ref/square.html
>>
>>58194168
>You've got a lot of reading to do.

i know, it's just fun because i started learning about classes, properties and constructors and ended up making whole wpf program that fetches data from the web on my own, obviously with a lot of stack overflow copy-pasta code

>Is this going to be a mobile application or a desktop application?

Plan is to have both mobile and desktop app but the priority is to make desktop first

For some reason Xamarin in VS2017 doesn't work for me at all, emulators are all fucked up for me

I'm mostly interested in best practices, you make sql server, you create database, now that's where it becomes blurry for me, i have no idea what else

I would be satisfied if i placed db on Azure and read data from it on my local program, that's for start

If you have any book to recommend on things that should happen after that in my program creation i'd be very thankful
>>
>>58194272
Don't use VS2017 yet, it's RC and not stable, ESPECIALLY if you're doing Xamarin. The new C# 7 features are really fucking nice, though.

Get VS2015, and I'd recommend using Azure Application Services, with the mobile option. You can do the mobile app from there (it's insanely easy to set up) and then create a desktop/web application that communicates the same way to the same endpoints.
>>
>>58194240
>https://www.mathworks.com/help/signal/ref/square.html

But it's assymetrical :c
>>
>>58194300
Do you not know what "duty cycle" means?
>>
>>58194353
The A+ =/= A- kind of asymmetrical.
Duty cycle does not define the symmetry of a rectangular signal afaik
>>
>>58194368
So you failed algebra then? Just do something like 0.75*square(t, 0.25) - 0.25
>>
>>58194294
So far for my noob needs, vs2017 for really stable, except fucking xamarin, fuck that shit, downloaded 20gbs of emulators and shit and nothing, can't even write hello world

Speaking about that Azure App Services, how do i develop the mobile apps, still from the vs and then upload it there or what? I don't see the use for that
>>
How can I filter to only get the first word in a long list of each line?
>>
>>58194510
When you deploy the app service stack in Azure, it gives you a downloadable Visual Studio .sln file to open that has a basic DB-access application already created for you. It already has credentials and endpoints programmed into the application.

You can either piggyback on that, or use it as an example for rolling your own.
>>
>>58194533
inputText.Select(x => x.Split(' ').First());
>>
Hey any one know if there is a Snapchat API that actually works ? thanks
i'm trying to build somthing around it
>>
so I maintain a windows 10 telementry (I dont use win10) host list, one for spotify and one for garrys mod - and I was thinking of making a repo on github to contain and host these lists I was also thinking of adding all the lists I use i.e fanboys and shit - if I gave the original links and credit in the readme is it a scummy thing to do?
>>
File: anal beads.webm (149KB, 230x400px) Image search: [Google]
anal beads.webm
149KB, 230x400px
I'm finally in the Christmas Spirit, /dpt/.


static string ShittyPyramidFromStrings(List<string> inputStrings, int size = 20)
{
var strs = inputStrings
.GroupBy(x => x.Length)
.Where(x => x.Key <= size)
.OrderBy(x => x.Key)
.Select(x => x.OrderBy(y => Guid.NewGuid()).FirstOrDefault());

var ayy = Join(Environment.NewLine, Range(1, size - 1).Select(x => new string(' ', (size-x / 2)) + strs.ElementAtOrDefault(x) ?? new string('*', x)));

return ayy;
}


ChristmasBlinker(Swastika() + ShittyPyramidFromStrings(badWords, 30), 300);
>>
>>58194761

Did you change your name on discord?
>>
>>58194575
wow, that's handy, thanks!
>>
>>58194820
I left the Discord channel a while back. Literally no programming talk, only shitposting.
>>
>>58194840
So just like /dpt/, why don't you leave this too? :^)
>>
If you don't know boolean logic, you can't be considered a programmer.
>>
File: lenmode12thresh.png (136KB, 512x512px) Image search: [Google]
lenmode12thresh.png
136KB, 512x512px
>>58194840

Oh. You've actually missed a lot of programming shit.
>>
>Haskel is useless and, pure functional and stateless languages are a meme
>Lisp is only used for third class text editors
>SICP is not a good book and this is why it's given away for free
>Anime is shit
>Maki is slut
>C++ is much better than C
>Java is the language of the future
>JS is a good choice for server side
>The best software engineers are indians
>>
File: h320.jpg (25KB, 500x333px) Image search: [Google]
h320.jpg
25KB, 500x333px
>>58194761
>
.Select(x => x.OrderBy(y => Guid.NewGuid()).FirstOrDefault());
>>
>>58194864
If some nigga spammed 50 pictures of gore on /dpt/, it would be cleaned pretty quick followed by an IP ban.

>>58194879
Fuck it, drop an invite link.

Has the server owner showed up ever? Would want to write a bot with /dpt/, but owner has to whitelist a bot ID.
>>
>>58194417
You piece of shit, I love you.
Artifices like this were never my strong point. Thanks for reminding me they exist
>>
>>58194910
I missed you datadata ;_; you were like the only guy in the /dpt/ who made sweet cash.
>>
>>58194910
Server owner here, use: 1m4hug3f4gg0t#
>>
File: a series of false statements.png (13KB, 540x195px) Image search: [Google]
a series of false statements.png
13KB, 540x195px
>>58194880
>>
>>58194899
It's an easy hack to grab a "random" element from a list.

Alternatively:
.Select(x => x.ElementAt(new Random().Next(x.Count())));


Or with an extension method that I carry around anyway:
.Select(x => x.PickRandom());
>>
>>58194910

Here

https://discord.gg/3hssy
>>
>>58194969
you should notice that your orderby method is very inefficient
>>
>>58194880
>Haskel is useless and, pure functional and stateless languages are a meme
this
>>
>>58195002
Well, yeah, but who gives a shit?

I can optimize later.
>>
>>58194880
Everything you said it's true except for C++ being better than C.
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
If the linux kernel , were written entirely in Assembly, would it be faster?
>>
>>58195093
Would it be maintainable, though?
>>
>>58195013
so you write some of your code for sheer purpose of rewriting it?
>>
File: baka_big.png (2MB, 2000x2000px) Image search: [Google]
baka_big.png
2MB, 2000x2000px
>>58195124
Not all code has to be 100% optimized.

1ms vs 3ms is not significant unless you're doing something to a massive scale.

This code will never need to be rewritten, unless for some reason I get a contract to develop offensive blinking trees with swastika tree-toppers in a console application for fucking IBM, and it needs to display a tree with 2,000,000-element-sized branches because they want to gouge it into the Sahara in order to signal potentially sentient alien species that we value two colors, fisting, and the third Reich.
>>
>TFW too unintelligent to use Golang
>>
>>58195161
>3 times slower
>>
>>58195161
>i write slow code on purpose, through i know faster and shorter methods of writing it
>>
>>58195093
No, in general compilers do a much better job of producing optimized machine code than humans, especially if you have to support dozens CPU architectures each with hundreds different configurations.
>>
>>58194533
Something like
#include <stdio.h>

main(int argc, char **argv){
FILE* input = fopen(argv[1],"r");
char c = '\0';
int i;

while(c!=EOF){
while(1){
c = getc(input);
//printf("l");
if(c==EOF||c==' ') break;
printf("%c", c);
}
printf("\n");

while(c!='\n'&&c!=EOF) c = getc(input);
}
}
?
>>
>>58194533
map (head.words) . lines
>>
>>58194653
there's not, the whole point is having everyone use the same exact client
>>
What's so bad about SICP? /dpt/ really seems to dislike it.
>>
>>58195368
What makes you think that?
>>
>>58195368
it's outdated
>>
>>58195387
Your tone of voice mum
>>
>>58192049

From the phpinfo pages I looked at the html has no relevant features to allow you to extract data without regex.

It basically consists of nothing but <tr> and <td>. With no class or id to use selectors for.

Consider looking into the xargs command and it's -P and -n flags... this allows you to thread in bash easily.

The point being that it could easily let run -P versions of your script at once each parsing -n ip addresses until the ip address list is exhausted.
>>
>>58190194
Tips on becoming a better programmer? I read that dressing as a girl improves your output.
>>
File: .png (1MB, 1062x1510px) Image search: [Google]
.png
1MB, 1062x1510px
>>58195501
>I read that dressing as a girl improves your output.
I can confirm that this is true.
>>
if i want to make a program that reads from a textfile and selects a random line to read, how should I do it?

Just
Open file -> Read file to determine number of lines -> PRNG to determine a line number that exists -> Print to console?
>>
File: rust.png (165KB, 2000x2562px) Image search: [Google]
rust.png
165KB, 2000x2562px
>>58193728
Do people actually take this meme language seriously? I thought it was debunked.
>>
>>58195536
WriteLine(ReadAllLines(filepath).PickRandom());
>>
>>58195691
911 is also debunked but sheep like to believe in it
>>
>>58195720
hmmm that makes me think
>>
I'm trying to rename files in a folder 1, 2, 3 etc using the following code. I'm trying to implement a way to skip files if they already exist since that will throw an exception. The following code doesn't rename files that don't already exist using that name when it should. Any help?

foreach (string fileName in filePaths)
{
if (!File.Exists(@folderPath + filePrefix + fileNumber.ToString() + fileFormat))
{
File.Move(@fileName, @folderPath + filePrefix + fileNumber.ToString() + fileFormat);
}
fileNumber++;
}
>>
>>58194533
words.lines().flat_map(|l| l.split_whitespace().next())
>>
>>58195861
wh-what language is this
>>
>>58195861
>
@folderPath

What the fuck are you doing that for? "folderPath" isn't a reserved name.

Also, you probably don't need to do
.ToString()
on that fileNumber, because an integer will implicitly cast to string when you concatenate them.

I can't figure out what you're saying, either. It "doesn't rename files that don't exist"? How would it rename something that doesn't exist?

Are you certain you have backslashes where necessary? Set a breakpoint within the loop and check your values.

Why aren't you using
File.Rename()
?
>>
>>58195952
It's C#, except written by a n00bl0rD scrub.
>>
>>58195993
>n00bl0rD
wh-what language is this
>>
>>58196000
1337 zp33k, 1D10t
>>
>>58195952
Microsoft Enterprise
>>
>THAT FEEL WHEN TOO RETARDED TO LEARN GOLANG

what the fuck guys

How do i learn this fucking language? i can't do it, i don't know how to get started.
>>
>>58195861
if (!fileName.isDigit()){
File.Move(@fileName, @folderPath + filePrefix + fileNumber.ToString() + fileFormat);
}
Something like that.
You might do a regex or a substring to trim the extension off, depending on what exactly is happening.

I don't really know what the fuck all your variables are so
>>
>>58195952
C#
>>58195993
Pretty much.
>>58195974
I have no idea what I'm doing xD. I'm trying to make it check if a file already exists with that name and if it does then it skips it.

I tried to use File.Rename() but couldn't get it to work.
>>
>>58194713
anyone?
>>
>>58196014
https://golang.org/pkg/
Have fun.
>>
>>58196030
Post example folder structure and expected output, with details.

Are you just arbitrarily adding an incrementing number to random files, or what?
>>
>>58196037
idk how to use it

it makes no sense. p[lease help

how the fuck do i make this work
package main

import (
"fmt"
"io/ioutil"
)

func main() {

result := ioutil.ReadFile("names")
fmt.Println("Hello", result)
}
>>
File: 1465922884998.jpg (82KB, 556x525px) Image search: [Google]
1465922884998.jpg
82KB, 556x525px
Question:
If you were to start your own web development firm in your local town, what CMS would you work with?

How would you go about including a calendar which your client can update with events?

I can come up with a few ways but I don't know which would be least messy.

I'm good with WordPress development but wouldn't businesses think less of me if I used that? Do I need to be a hipster using some obscure shit? Creating a CMS from scratch sounds dumb because there would be so many things I would constantly have to add to it which would destroy workflow.
>>
>>58196055
Nevermind, it's working as intended, I'm just retarded.
>>
>>58196087
https://golang.org/src/io/ioutil/ioutil.go?s=1464:1510#L39

result, err := ioutil.ReadFile("./names.txt")
if err != nil {
fmt.Println(err)
}

Start with that.
>>
No internet connection and want to learn C programming.any idea where to get a compiler . no floppy either.only disc.?
>>
>>58196101
Build your own and you won't need to learn the bullshit of others.
>>
>>58196119
it reads like gibberish to me

what do i need to learn before i can make sense of this shit??!!
>>
>>58196106
Using your code, I'd do something like this:
foreach (string fileName in filePaths)
{
var fileExtension = fileName.Split('.').Last();

var newFileName = folderPath + filePrefix + $"{fileNumber}".PadLeft(3, '0') + "." + fileExtension;

if (!File.Exists(newFileName))
{
File.Move(fileName, newFileName);
}
fileNumber++;
}


This would give you filenames like
dipshit001.txt
dipshit002.txt
and preserver whatever their extension already is.
>>
File: 1478132983331.jpg (13KB, 437x319px) Image search: [Google]
1478132983331.jpg
13KB, 437x319px
>>58196139
What the fuck have you even tried?
The syntax of golang isn't complicated
>>
>>58196177
I want to fuck that bunny
>>
>>58196186
Get the fuck off of this website
>>
File: 1478132983327.jpg (17KB, 393x358px) Image search: [Google]
1478132983327.jpg
17KB, 393x358px
>>58196186
>>
>>58196199
I want to FUCK that bunny
>>
>>58195720
That is horribly inefficient.
>>
>>58196203
Get the hell out
>>
>>58196139
> it reads like gibberish to me
Because it's gibberish
> returning error in a tuple with the result instead of tagged union
It's like all they added to the horrible C-style error processing is automatic errno return.
>>
>>58196205
Change
ReadAllLines()
to
ReadLines()
and go from there, if you want.

Implementation of
PickRandom()
is however you feel necessary.
>>
>>58196217
>in a tuple
It's not a tuple, they're separate values.
You can discard if it you want by using _
>>
Any news on Visual studio 2017 Final release date?
>>
File: 1478132750131.jpg (53KB, 600x593px) Image search: [Google]
1478132750131.jpg
53KB, 600x593px
>>58196203
>>
>>58196177
>>58196200
>>58196270
This bunny is giving me a BONER
>>
>>58196261
Probably end of Q1, or sometime in Q2.
>>
File: 1478132750129.jpg (50KB, 495x507px) Image search: [Google]
1478132750129.jpg
50KB, 495x507px
>>58196281
Go read the golang documentation you deviant
>>
>>58196177
What's a good resource to get started?

How can I get to a level where I understand basic golang program structure
>>
>>58196314
https://tour.golang.org/welcome/1
You're so helpless it's sad
>>
>>58194820
Send another invite for a faggot.
>>
>>58196329
I went through that it doesn't teach shit I want to make good programs
>>
File: 1478132750137.png (858KB, 734x804px) Image search: [Google]
1478132750137.png
858KB, 734x804px
>>58196350
>Refuse to read documentation
>Refuse to go through basic tutorial
>WAAAAH MAKE IT WORK
Can't help you if you refuse to try
>>
>>58196253
you can discard values with tuples too
let (x, _) = IOUtil.read_file "./names.txt"
(* Same as *)
let x, _ = IOUtil.read_file "./names.txt"

The primary difference between multiple return values and tuples is that tuples are semantically a single, complex value rather than many simple values. In the example above, the tuple gets destructured into multiple values. Being able to discard a value has no bearing on whether or not it's a tuple. (although now that I'm rereading your comment, I may have misinterpreted it)
>>
>>58196382
>The primary difference between multiple return values and tuples is that tuples are semantically a single, complex value rather than many simple values
i d e n t i c a l
>>
>>58196372
That HOT bunny makes me wanna FUCK
>>
>>58196411
delete your life
>>
>>58196399
I believe what he means is that a tuple is a collection of different values referred to by a single variable call, whereas a multiple return would be like
a, b = sort(x,y)
>>
>>58196448
There is absolutely no difference.
>>
>>58196253
Separate values bundled together are called tuples, Go docs ignore the common terminology because its authors were out of touch with the outside world for the past 20 years. And this code is just a limited case of poor man's pattern matching, of course you can ignore any value during pattern matching.
>You can discard if it you want by using _
And that's the worst, the fact that you can just ignore the error and proceed to use the result as if nothing happened without compiler or runtime doing anything about it. This shit was horrible in C, everybody get it 30 years ago, this is why they came up with exceptions. Exceptions aren't perfect, and there other better ways to do the same, but that doesn't mean you just go back to C way with some syntax sugar.
>>
>>58196399
not really. with multiple return values you can't pass them back into a function directly (although syntactic sugar can partially make up for this) or bind them to a single variable. also you can't use multiple return values in a data structure. There are some other ways they can affect the language: for example in Common Lisp if you try to do the equivalent of x = f() and f returns multiple values, x is not both the values from f but just the first one.
>>
>>58196459
those are just because of poorly thought out limited features, not because you aren't returning a tuple

ACTUALLY "returning multiple values" would probably be more like coroutines or something, where the two results can arrive at different times
>>
>>58196457
>Separate values bundled together are called tuples
Yes which is why this is multiple return values, and not a tuple
One of those values may itself be a tuple, but
result, err := ioutil.Readfile("filename")
is not a single tuple result

And yes having to check the err after method calls that can throw them is massively annoying and the main reason I don't use golang very much
But it's not much different than having giant try/catch blocks everywhere
>>
>>58196448
This is literally the same.
>>58196459
So these languages have a limited support for tuples, that's all.
>>
>>58196502
It's totally a tuple, the language just prevents you from being able to act upon it.
You are forced to break it up.
>>
Lua has lambdas right? It's just anonymous functions?
>>
>>58196502
>And yes having to check the err after method calls that can throw them is massively annoying and the main reason I don't use golang very much
>But it's not much different than having giant try/catch blocks everywhere
Just use monads and monad transformers.

Oh wait, Go doesn't support any form of polymorphism.
>>
File: me irl.jpg (64KB, 530x800px) Image search: [Google]
me irl.jpg
64KB, 530x800px
> Have several popular github projects
> Get at least one issue per day which is just a dump of their application code asking me to fix it.

open source was a mistake
>>
>>58196547
>Just use monads and monad transformers.
>Oh wait, Go doesn't support any form of polymorphism.
How in the world are these two statements related?
>>
>>58196502
> But it's not much different than having giant try/catch blocks everywhere
It's actually different, you can't *forget* to process an error with exceptions, and you can process similar error in one place, instead of near every possible point of failure.
And exceptions isn't the only alternative, Rust's error processing story with Option/Result (strongly influenced by Haskell's Either) doesn't use exception and forces you to process errors by using type system itself. It was kinda verbose with all that try! macros, but they made it more readable recently with the introduction of ? sugar.
>>
>>58196488
well those are talking about different things but yeah. what's commonly referred to as multiple return values is just a lazy implementation of tuples. the argument in favor of it is performance, since you're not having to do any extra heap allocations or shit like that. in reality, you really don't need that in 99% of cases (optimization is easy usually) and as long as you stick to the shit that's allowed by multiple return values you don't have any performance loss.
the thing that really should be called multiple return values (what you're talking about) makes a lot more sense since it's returning multiple times.
>>58196523
>>58196519
these. it's really a neutered tuple because they're apparently scared that people may use it in a way that leads to performance loss, which is a problem in a language that is designed for retards
>>
>>58196605
can't have a transformer without polymorphism
>>
>>58196621
But that's a specific flavor of polymorphism, making your conclusion awkward.
>>
>>58196531
yeah
>>
>>58196372
I read it my dude
>>
>>58196637
how? Go doesn't have ANY polymorphism
>>
>>58196662
>Go doesn't have ANY polymorphism
Why?

Really?

How?
>>
>>58196703
Oh wait, apparently it has interfaces.
... but it doesn't have any parametric polymorphism.
So it just has monomorphic interfaces.
>>
>>58191766
It's almost any software. Not just open source.
Overall middleware is too general. Which makes economic sense but it harms the product.
>>
File: dpt_hime.png (518KB, 974x974px) Image search: [Google]
dpt_hime.png
518KB, 974x974px
[x] hate OOP
[x] hate IDEs
[x] use only Haskell
[x] never produce actually useful software (this is important)
[x] wear knee socks
[x] tiling window manager
[x] dark-like-my-soul customized colors
[x] hate popular Linux distributions (because too intelligent for them)
>>
>>58197044
Define useful.

Are you saying your programs are pure functional enough that they never do any io?
>>
>>58197044
dark colors and tiling wms are actually nice, though
>>
>>58197044
[x] hate OOP
[x] hate IDEs
[x] use only Haskell
[x] never produce actually useful software (this is important)
>[ ] wear knee socks
>[ ] tiling window manager
[x] dark-like-my-soul customized colors
[x] hate popular Linux distributions (because too intelligent for them)
>>
anyone else here man enough to admit that they're in it for the money?
>>
>>58197119
I started programming for no reason, I think it's because I like computers and spent a lot of time using them. I'm not gonna lie, I changed C (low level systems, embedded programming) for C# just to land a job.
>>
>>58197119
if you're in it for the money, why the fuck didn't you just choose engineering?

and don't tell me you don't like calculus because if you can't pass differential equations you probably suck as a programmer
>>
>>58197119
This implies that:

>programming pays well
>there are men here
>anyone here do actually have a job

Which are all false.
>>
File: output.webm (715KB, 526x310px) Image search: [Google]
output.webm
715KB, 526x310px
Made a program to draw images in the terminal, and a library to encode images to sixel supporting dithering and resizing.

Now gonna work on a decoder for shits and giggles.
>>
>>58197119
Why would you go into programming if you want money?
There's plenty of better careers.
>>
>>58197157
>>58197163
>>58197179
Any alternative view stems from the Reddit community which constantly preaches choosing a passion over money because, 'with a job you love, you never have to work at all :^)'.

So then the idea of pretending you're not in it for the money devolved into a competition of virtue signaling. "Look how edgy and not mainstream I am by liking this obscure piece of technology that none of the normies like because it's simply not efficient". So I guess this whole board is basically just that. Virtue signaling of how non normie you all are or how non 'in it for the money' you all are. you should all kill yourselves. And anyone stupid enough to think this site wasn't simply a sub reddit should especially gut themselves on the spot right now.
>>
>>58197269
Steady on mate
>>
>>58196550
just put in the readme, THIS IS A PERSONAL PROJECT I WANTED TO OPEN SOURCE DON'T EXPECT BUG FIXES UNLESS I EXPERIENCE THE BUG

or

bugs you tell me :)

and don't forget to always add
buy me a beer
>>
>>58197269
What's wrong with you?
>>
>>58197297
You know what normies don't ever do? Admit that theyr'e in it for the money.

>>58197258
Don't exaggerate. being in it for the money doesn't mean that's the only reason. it means that's the main reason. everyone and their mommas think tech is cool.
>>
>>58197322
Try to explain something wrong with my argument.
>>
>>58197269
I think you should stop taking the internet so seriously.

Also, new pasta.
>>
>>58197344
Look at yourself.
You're getting mad at people on the internet for not screaming from their lungs that they do everything for money.
You're angry that people enjoy things and have hobbies.
>>
>>58197361
Hey man I enjoy programming. I browse this board for memes and similar stuff as most people. I just can't stand how dishonest most people today are. Over on Reddit everyone likes to pretend they're such virtuous people that only want the best and always try to hide their superiority complex even though none of them are getting laid. Over here everyone does the same thing with the exception of trying to be more mean, but everyone is constantly pretending they're virtuous and their taste is built upon something higher than the fact that there is too much money to be made in the industry right now.

I just hate how everyone is so fucking dishonest. This is everywhere. On campuses everyone pretends to have this deep interest on whatever they're majoring on which is most likely bullshit. Even fucking assholes who are partying most of the time still try to pretend they're super interested in this one thing, only so they come off as interesting people themselves.
>>
File: 1472191531835.gif (737KB, 700x393px) Image search: [Google]
1472191531835.gif
737KB, 700x393px
>>58190208
You're dense.
>>
New thread:

>>58197507
>>58197507
>>58197507
>>
>>58197449
>today
So uh, how old did you say you were again?
>>
File: 1467009331468.png (2MB, 1254x1771px) Image search: [Google]
1467009331468.png
2MB, 1254x1771px
If your language doesn't allow you to do unsafe stuff, it's complete garbage.
>>
>>58197596
More like garbage COLLECTED, hahahahahahahahah
>>
>>58197449
>caring this much about other people
You have serious problems
>>
>>58195326
*** Exception: Prelude.head: empty list
>>
>>58197223
Got a github or something?
>>
>>58197664
He never mentioned empty lines
>>
>>58197760
They never do.
>>
>>58197542
25
>>
>>58197630
sure. caring about other people is gay. however, can you tell me where I'm wrong?
>>
>>58197728
For the program that draws or the terminal?

You need a terminal with sixel support, there's a 98% chance the terminal you use does not support them.
>>
>>58197930
Yeah, the program. Just publish the code and let me know what dependencies are needed.
>>
>>58197841
Yes. Your entire post is your personal opinion generalized.
>>
>>58198054
https://github.com/meh/rust-sixel
>>
Good book with examples for java?
Can someone suggest
>>
File: 1355119129231.jpg (12KB, 184x184px) Image search: [Google]
1355119129231.jpg
12KB, 184x184px
>>58197449
I'm in it for the money.
Got myself a subpar physics degree and I'm yet to successfully get my ass employed. Accountancy requires an accountancy degree, jobs in analytics needs something else. Grad jobs want 2:1 or higher.
Keep seeing jobs for programming all over the place so I'm looking at getting back into education to get piece of paper to say I can do this shit.
I went into physics for the love of it but got lazy. Been grasping at straws since.
Been browsing these threads as it eases learning when you're surrounded by people with an interest in the topic you're learning (regardless of the shitposting): a trick I squandered at Uni.
I also may never lose my virginity.
>>
>>58198188
Learn you a haskLEL
>>
>>58198073
so you jsut want to be contrarian and don't care to explain in detail why i'm wrong. cool.
>>
>>58198255
thing that bugs me is that there's barely any good content anywhere on this site. most people just argue on linux distros because that's extremely simple. the next closest thing to productivity is arguing what language is better but in the real world one has to know multiple languages. not many people here talk about actual programming stuff because it actually takes effort ot program things. so that's what i'm saying. a lot of people on here are simply pretending.
>>
>>58198371
Not him but
can you recommend me some java book, need to look into java restful apis and things like that
>>
Are there any compiled languages that guarantee if code is successfully compiled, it will never crash?

Throwing exceptions here doesn't count as crashing, as long as you can catch them.
>>
>>58198335
>mfw I was waiting for both of your responses so I could enjoy it with some mental popcorn.

>>58198371
I generally find the content of /g/ to be complete shit as well, while posing as something half decent. It's sad me saying that, since I personally don't feel like I'm all that good at anything either.

I'm a lazy assfuck, but I actually love what little programming I have done, and thus know that it's something I'd really like to do as a job because I'd be getting paid to do something I enjoy.

If I do end up getting a job in development or software management, I sure as fuck will be in it for the money, but I'll enjoy myself doing it.

In actual practice, I decided to get off my lazy ass and try actually learning more about a language for once instead of learning little bits and pieces of multiple languages for a grand total of fucking nothing useful.

I looked into making some GUIs with wx module for python.

Was following a tutorial online and have begun structuring a basic text editor, which I'm proud about even though it's basic as fuck.
>>
>>58198525
so basically any error triggers an exception and exceptions must be caught? most high-level languages fit that requirement
>>
>>58198525
Coq
>>
>>58198596
Coq will also never run
>>
>>58198371
>there's barely any good content anywhere on this site
Where it lacks in content, it makes up in discussion.
Once in a blue moon, you come across someone who really knows their stuff and unwittingly puts self-proclaimed experts to shame (I'm thinking 4chan as a whole).

>most people just argue on linux distros because that's extremely simple
>because that's extremely simple
I know bugger all about Linux. I used Mint once, trying to get my uncle's laptop to work.
At least they're not arguing over what Apple products they like.

>the next closest thing to productivity is arguing what language is better
Does feel like a load of faux-tribalism. That said, I've only done C and C-derived/related languages: having nosey'd at functional languages posted here, stuff like Lisp looks fine but Haskell looks related to BrainFuck.

>not many people here talk about actual programming stuff because it actually takes effort ot program things
It does but I've refrained from asking questions because I know the answer is "just google it" and "google it some more".

I forget the point of this post.
>>
>>58195208
and then there are compiler intrinsics which map to e.g. vector arithmetic instructions which gets you the benefit of hand-tuning performance-sensitive code while still not writing actual assembly
>>
>>58198525
Rust tries to guarantee it, but I really hate the language.
>>
>>58198371
see
>>58197615
>>
>>58198335
No. I explained. You only present anecdotal evidence, based in your personal experience with a irrelevant sample.

The part of not liking the fact that people do things because they enjoy it is just stupid.
>>
File: pngimage.png-1.png (10KB, 800x600px) Image search: [Google]
pngimage.png-1.png
10KB, 800x600px
Daily reminder to start young
>>
>>58199396
Why do you hate it?
>>
>>58199810
So if I start programming before I'm 1 year old, it will have been worth learning it by the time I'm 65?
>>
>>58198525
Yes. C#.
>>
>>58199842
I'm just not a fan of the syntax, because it requires you to jump through hoops to keep everything safe.
>>
>>58199900
>C#
>compiled
>>
>>58199891
Yes.
Thread posts: 349
Thread images: 32


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.