Old thread: What are you working on, Jow Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
guide.elm-lang.org
github.com
ziglang.org
learncpp.com
parsonsmatt.org
youtube.com
learn.adacore.com
github.com
twitter.com
What language do I use for my wasm bideo game
BBC BASIC
Cirno couldn't write a program to save her life.
Anyone use CLOS in CL? Wondering if it's something I should actually learn or continue to ignore.
True, she'd make her slaves (me) do it for her
Can someone show me how to program a protective em shield so I don't go sterile from all the 5G radiation?
wasm, duh
Python with C++ is so comfy
>Writing a program without even hassle cause its python
>Hey this part is a bit slow
>Create a C++ DLL
>call it from python
>fixed
10/10 best programming stack
CLOS is based
totality is more important.
make your bideo game total with Elm.
guide.elm-lang.org
github.com
or just use nim
lua with C++ is comfier
you only have to export one symbol and you get curly braces
Yea but Lua is dead and has less libraries
>lua is dead
so is python, guido quit
>has less libraries
if you can write C++ you're not some niggerfaggot who need to import everything
Damn why didn't I use clang-format before now, it's so perfect holy shit
What's the best way to quickly develop programs on linux and make them work on windows?
Unironically electron
when will they finally optimise this shit?
Python is the language everyone now learns now in Uni (sadly) so it wont die probably ever unless people create something even more braindead
Like user said electron but if you could somehow use Visual Studio then for .Net-Core there is a framework called Avalonia that allows you to create multiplatform GUI apps using WPF, also isn't QT for Python and C++ multiplatform aswell?
Lies
>You cannot actually modify a value in a loop in C#
foreach (var val in arr)
val += 2;
NO NO NO NO NO NO NO NO NO NO NO
What were you doing when cirno was kill?
You can in a regular loop
'foreach' is giving you a copy of the value so modifying it would do nothing
Hi, i'm learning cmake and I can't get this shit to work. I have a git repo of a library (cmakelists file below) and then I have another repo where I want to add the first one as submodule and use it as a static library
#generetared by clion
cmake_minimum_required(VERSION 3.14)
project(paretofront)
set(CMAKE_CXX_STANDARD 17)
add_library(paretofront pareto.cpp pareto.h)
i've tried many ways but I never seem to
to get it right. What should my cmakelists file look like in my main project?
Imagine being that inefficient
Probably read Marisa hentai.
you can do this in C++ c:
Lisp programmers be like
I have chosen C# as my first language!
use cmake subprojects
better yet, use meson
So I know C, python, have been using linux for years, have a good handle of the command line, bash, have several large personal projects, have basic knowledge regarding algorithms and data structures
But what do I need to do to actually get a job
C# should be your last choice. Ah yes, foreach is useless in C#
private static void Increase(int[] arr)
{
for (int i = 0; i < arr.Length; arr[i] = arr[i++] + 2) { }
}
You know python. Thats enough
>writing software at work that uses touchscreen keyboard (in WPF)
>have some textboxes that should bring up the (default Windows) numeric keypad
>just add InputScope="Number" to the style
>it works almost everywhere except one menu
>no matter what I do it keeps using the default one
>literally copypaste the code from a working textbox and it still doesn't work
Anyone has any idea what could be causing this?
>C# should be your last choice
Ok then wise guy, gimme something. And don't say Haskell or OCaml...
Learn JS and become web dev. Ez money bro.
C++
I am working on Android.
It already works on JNI wrappers and all of that did that months ago.
The issue is that we’ve told this Chinese model does not support JNI because “????”.
C# is a strange choice but it's a decent enough language.
Can I have recommendation on how to get started with embedded stuff?
My personal goal is to do some basic input output and simple linear algebra on an arm microcontroller.
I've bought a stm32 nucleo but the official getting started guide is windows "click here click there" stuff although the documentation says Linux is OK too.
But I'm lacking fundamentals since I don't know beyond "I need to compile and flash the hex file on the device".
Where can I find resources so I get a solid background knowledge?
Meanwhile in C++
[spoiler]for(auto &x : arr)
cool!
1. Get micro controller
2. Do the thing
C# is a pile of shit
* No `const` parameters
* SDK has opt-out telemetry
* No `Option` for reference types
* `MSTest` not portable
* Can't index arrays slices on multidimentional arrays
* Can't access a subarray in a multidimentional array with a given index
foreach (var val in arr) val += 2; // compile fails
for (int i = 0; i < arr.Length; arr[i] = arr[i++] + 2) { } // works
public void fn()
{
{
int x = 4;
}
int x = 3; // Considered Harmful
var a = String.Format("A {445}", "B");// 0 warnings, 0 errors
}
>C# BAD!
>Because of meaningless factors outside of hobbyist application
>Inb4 Asshurt CS students/grads with no job
C# is good if you want to work, mostly because microshaft could sell business a shit stained dildo and they’d fucking buy it.
Oh do I hate (((Azure))).
I get stuck because of my lack of technical understanding.
So I'm taking a step back and ask where I can learn so that I know what I'm talking about when I go ahead and do the stuff
What's the best scripting language for linux? Guido hates white men
is web assembly actually any faster than javascript?
I'm always ready skeptical of these claims, because it's m it still runs in the same motherfucking virtual machine as js so how on earth can it be all that faster
plus it needs to be called inside of js anyway it seems like pretty niche use to begin with, but then you expect all these js babies to write coherent code in c++ to compile to webass, it seems like a lost cause
>4 traversals
yikes
Perl or Bash
>no arguments
Shut up
well i guess it's 3
just live in a faraday cage like from that nigger movie
Google it. 90% of the time some dipshit as
A) asked somewhere
B) made a guide
C) both of the above.
Set an objective, find how to do it, understand how it works, change it to fit your needs.
POSIX shell.
Perl is dead.
how is it that C++ has const correctness but none of its descendants do?
>No arguments
My argument is there, read again.
People need and want C# programmers more than C or C++, hence it’s a better market skill unless you have experience in programming already so you can try to land a cushy senior/mid level C/C++ job.
C# is good if you want to get a job. Same for JS, Swift, objc, java, etc...
its chromium so never
is like asking when will incels ever get laid
or is there a limit to how far sjw's can shove that stick up their bums
Fuck, I need stop browsing Jow Forums and work on my projects.... help anons, how do you get in that productivity flow?
>What are you working on, Jow Forums?
learning about free monads
parsonsmatt.org
if you need jobs start java
I don't
you can easily implement a foreach that returns the object by reference and not a copy. Stop crying
Im gonna make auto dabber in C.
so i can dab on zoom zoomies and their toy languages.
>really enjoy using Ada
>community is fairly exclusive still and basically old white cis men working for proprietary companies
>any type of external C/C++ library bindings are almost nonexistent since the community is so closed and proprietary but a few good ones do exist for some things like OpenGL, OpenSSL, and so forth
>compiling on anything but Linux and Windows is a giant paywall
>Rustilians constantly make fun of us
Lads do I just call it a night and convert to Rust or stay strong?
do so now then
don't listen to the shitters here. I started my career programming with C#. it's an excellent language. From there, you can learn C++ and many others. Start with C# user
do so now then
the javascript virtual machine is not the only target for wasm
>Perl is dead.
No it isn't
How did you go about learning Ada? I'm interested.
ive had this happen to me on nativescript(think react native but angular and by god was it slow) and despite each screen(page or whatever you want to call it) there were niche situations where doing something on some sub page caused some weird effect on a completely different page
it just seems to be what happens when your language becomes so abstracted, random shit happens for no discernible reason because the real problem is somewhere under hood that you can't debug
Sorry it's still Python. Time to take your tittie skittles user.
literally just copy the default foreach implementation and put a ref keyword.
It's probably just a language construct that's not replicated in the compiled representation (unless preferable).
It's too stupid even for Microsoft.
I remember this place is filled with morons and leave after a few amazing posts by CSneets and trannies.
Yeah, but Java is even worse than C#
Depends on your local market.
Mine looks for:
JS webdev>C#>Java Android>=Kotlin=Java BE>Swift/iOS.
But yes, generally java is good to know professionally specially with how hard has Android hit, making Kotlin also very desireable.
>best scripting language
C
Just wrap it in a conditional compile/call script that passes on all the parameters.
Using multiple languages hurt your intuitions.
I initially watched youtube.com
This is basically a super useful info dump for information and what's publicly out there: github.com
>>JAVA# BAD!
>>Because of meaningless factors outside of hobbyist application
>>Inb4 Asshurt CS students/grads with no job
J# is good if you want to work, mostly because orcalel could sell business a shit stained dildo and they’d fucking buy it.
>Not making a COBOL controlled monster dispenser
Heh... zoom zoom.
Are you retarded? Being a wageslave language is literally the entire point of C# and Java, with the only difference being that Java has more jobs/larger ecosystem and C# being a bit less vomit inducing.
He said upset because he got called out on his complains being stupid.
>Inb4 some dude larping how he’ll get a high paying super super architect job out of the gate without ever having to wageslave monkey code
Mine is similar.
.NET ASP +SQL > .NET Desktop >Java > PHP > Swift > Javascript > C++
what the fuck is going on in this post
the companies that really pay well do not post job offers on the internet. They go to universities and take the best students once they finish the careers. At least it's how most important companies do that here
Yeah didn’t list .NET and all of that because I assumed it was implied on the C#.
I see no desktop shit tho, it’s all web on the c#/.NET.
JS is a lot of node.js and angular and ionic.
That’s mostly an American thing.
And if you have a company hiring you out of the gate for a tutoring basically I doubt that the opinion of anyone here is relevant on what to learn and that you should have better sources (ie your senior coworkers).
>C# being a bit less vomit inducing.
Myth. I used both of these.
me again ( )
I'm spanish and that's how serious companies do it here.
Also, what do job offers mean by "analyst"?
>Top 10
>no COBOL
I thought COBOL was a high paying job.
I am also Spanish and I’ve seen it happen once and mostly because the dude who got it (DB analyst) was actually paying attention to an optional lecture and became bff with the lecturer.
And even then he was paid pretty low until he was promoted.
COBOL devs aren’t paid in money, they only accept:
1. Gold
2. First borns
how do I add a std::tuple as a member of struct but with "generic" size? I don't want to restrict the size of the tuple.