[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 20210930_155440.jpg (65 KB, 482x460)
65 KB
65 KB JPG
What are you working on, /g/?

Last thread: >>84458042
>>
>>84468845
Who is that semen demon?
>>
How many people here have their name listed on at least one patent?
>>
File: my-image (1).png (162 KB, 1140x634)
162 KB
162 KB PNG
>>84468845
Im trying to write OS in Haskell
>>
>>84468845
>What are you working on
Sorry, but that information is classified
>>
File: 1628896100991.jpg (42 KB, 680x524)
42 KB
42 KB JPG
>tfw failed at fizzbuzz
>>
>>84468891
which contractor are you working for? also land, air, sea, mission, cyber?
>>
>>84468931
He's working for LARP, Inc
>>
>>84468877
i patented long division
>>
>>84468877
Sorry, patents are against my values
>>
>>84468931
That’s classified.
>>
whats the opposite of concatenate
>>
>>84468997
coconcatenate
>>
>>84468997
split?
>>
File: file.png (2 KB, 668x77)
2 KB
2 KB PNG
Managed to get AoC 2020 day 1 part 1 from 16 minutes to 9 minutes and 30 seconds in my programming language. I optimized lookups a lot, though there is still a long way to go before the language is usable for challenges.
>>
Reminding anons to use https://github.com/friendlyanon/cmake-init when creating new C++ and C projects!
>>
is it normal to reuse sql queries and just not use the data i didn't want or am i doing it wrong
>>
>>84468918
messages = {nil, "Fizz", "Buzz", "FizzBuzz"}
for num in (1 , 100) do {
a = 0x30490610
b = a & 3
print(messages[b] || num)
a = a >> 2 || b << 28
}


Have a fizzbuzz!
>>
>>84468997
disconnect, split, abate
>>
>>84468997
procatenate
>>
>>84469019
Fuck your categories
>>
File: 1590354584273.png (22 KB, 916x689)
22 KB
22 KB PNG
is Zig a good language or is it onions shit like Rust?
>>
>>84468946
if true, i hope you burn in hell
math and software cannot/should not be able to be patented
>>
>>84469019
>>84468997
catenate
>>
>>84469159
dumb frogposter
>>
>>84469093
No one saw the error yet? *cough* that means it didn't happen.

messages = {nil, "Fizz", "Buzz", "FizzBuzz"}
a = 0x30490610
for num in (1 , 100) do {
b = a & 3
print(messages[b] || num)
a = a >> 2 || b << 28
}
>>
>>84469093
>>84469193
What's that language?
>>
>>84469159
stupid frogposter
>>
>>84469159
genius frogposter, i love APU
>>
ugh that fucking thanksgiving sucked ass

i forgot all my shit at my house before a 4.5 hour drive, no laptop no clothes, etc.
>>
>>84469229
>replying to your own post
>>
>>84469235
so you basically nekkid posting via 5G brain-to-cloud

kek
>>
>>84468860
Very clever. Of course the one with the dumb nose is socrates, but it took me a bit to dig up that the figure whispering to him was a daimonion he claimed sometimes warned him in his dialogs. She's cute.
>>
>>84469213
A little toy imperative language I thought of to be a middle ground between C and python. Never completed it. There are some extra things left over from when it was closer to C than python.
>>
>>84469193
shouldn't that be
a = a >> 2 | b << 28
>>
>>84469259
Thanks. The daimonion is like a tulpa/people that hear god telling them things right?
>>
>>84469268
Nice catch I ham fisted the | that is what happens when you rush things in without reading through it before posting.
>>
>>84469265
Interesting
>>
>>84469293
I don't know enough about ancient greek religion or contemporary supernatural beliefs to say. I saw the word translated once as "a divine something."
>>
File: c3LoQPL.jpg (189 KB, 1300x683)
189 KB
189 KB JPG
>become "dev lead" at work
>now all my time is doing shitty SCRUM meetings and shitty product meetings with Product Managers that have no idea wtf they want
>>
>>84469293
It's the same thing as a Daemon.
>>
File: 1615479082506.png (20 KB, 220x240)
20 KB
20 KB PNG
>>84469375
This kind?
>>
>>84469352
i know your pain
get out, demote yourself!
>>
>>84469352
The first rule of dev jobs is to never go into management
>>
>>84469352
it's for the greater good, you are protecting your code monkeys from the stupidity of clients.
>>
>>84469387
That's a demon, not a daemon.
>>
>>84469447
This kind then? https://en.wikipedia.org/wiki/Daemon_(computing)
>>
>>84469387
who's that seamen daemon ?
>>
>>84469447
its the bsdaemon :(
>>
Graph convolutional neural networks.

The canonical data structures are unintuitive for now :/
>>
>>84469308
The next features that would be added are generic functions, default immutability, and tuples. Oh well, it isn't going to happen anytime soon.
>>
>>84469093
reposting mine
#include <stdio.h>
#define COUNT 200
int main(void) {
char s[9] = { 0 };
long c = 8825495485607995750L;
long* d = (long*)&s;
for (int i=1; i<COUNT; i++) {
*d = c;
*d = (!(i%((1<<2)-1)) ? *((int*)d) : *d);
*d = (!(i%((1<<2)|1)) ? (*d)>>(1<<5) : *d);
*d = (*d==c ? (sprintf(s, "%d", i), *((long*)&s)) : (!(*((char*)d)) ? c : *d));
printf("%s\n", s);
}
return 0;
}
>>
>>84469526
how would one apply a convolution on a graph?
or is it more or less a graph network with classic convolution on layers within a node?

i only heard about the whole graph NN in passing, but had not found a proper use case for me yet.
>>
>>84468715
Rimworld is shit, play Dwarf Fortress
>>
File: 1637827991735.jpg (123 KB, 800x600)
123 KB
123 KB JPG
>>84469651
both are good
:3
>>
>>84469692
both are tranny
>toady openly supports BLM on df website and added trans dwarfs
>>
File: 1637358533618.jpg (94 KB, 800x802)
94 KB
94 KB JPG
>>84469709
> reeee opinion bad cancel boycott
so, i don't care if toady dev has an opinion
i like the game for what it is.
kys
>>
>>84469746
I don't care either if a dev has opinion.
But when I am negatively affected by a dev shoving his opinion down my throat using a fucking unrelated VIDEO GAME then I care.
>>
Recently finished my first *actual thing* since I started learning to code (Python cuz easy). Its 600+ lines, everything works as intended, was almost proud of myself until I learned that functions shouldn't be longer than ~30ish lines. I have multiple 100+ line functions calling and returning to each other with user input in a few places deciding what runs next. I thought functions were a good way to logically group code and order a sequence in which I want the script to run, and I mean it does what I want it to do but I feel like I'm missing something obvious that I don't know enough to figure out.
>>
>>84469775
you failed as programmer, sorry
now find another occupation
>>
Nim https://nim-lang.github.io/Nim/tut1.html
let name = readLine(stdin)
case name
of "":
echo "Poor soul, you lost your name?"
of "name":
echo "Very funny, your name is name."
of "Dave", "Frank":
echo "Cool name!"
else:
echo "Hi, ", name, "!"
>>
>>84469775
I mean these kinds of rules aren't things that need to be adhered to EVERY TIME, sometimes if you need to write a long function to get the job done then it's better to just accept it than to go out of your way to restructure your code to fit some arbitrary rules.

Though the rationale behind those kinds of guidelines is that code is generally easier to follow and understand (especially when someone else is looking at it) when each function is small and has a clearly defined role. It can be a good thing to keep in mind going forward though you don't need to beat yourself up over it.
>>
>>84469775
>until I learned that functions shouldn't be longer than ~30ish lines
says who? the tranny on medium?
if your code is readable and does what it needs to do in an efficient way it doesnt matter how long your function is.
>>
>>84469775
try rewriting your functions in a way that gives them a singular thing to do. instead of thinkin in terms of the entire program, look at the steps you would have to take, and what actions are required.
then write those actions as self contained functions.

basically keep is simple.

also, don't get hung up on line count, if a function needs that many lines to do the one thing it's supposed to then it's fine.
>>
>>84469775
also another side note:
never buy into dogmatic shit. with time you will learn to identify problems and decide on your own whats good. it's all about experience.
>>
>>84469709
Of course, now my normal dwarfs can do the good, safe jobs and leave digging lava channels and other dangerous shit for the expendable 41
>>
it hadnt occurred to me you could represent quotients simply by pre-applying the function to convert to canonical representation before consuming
>>
>>84469897
>>
take them, and use them.
>>
>>84469909
you are mentally ill
>>
>>84469924
why, because I had the courtesy to tell a fellow fag to use a reference for communcation?
>>
>>84469962
I don't think anon was replying to someone there
>>
>>84470018
> it hadn't occurred to me ....
weird way to start then
>>
>>84470044
He's just writing meaningless technobabble to bait people
>>
>>84470051
OR ....

....

you know ....

he could really be
like

mad.
>>
>>84469044
No. If I can't compile your project just by calling the compiler with a modest number of flags, then I want you dead.
>>
>>84469044
don't listen to this mad man.
garbage boilerplate producer.
>>
>>84469632
https://tkipf.github.io/graph-convolutional-networks/

This blog post is all you need. It's from the dude that invented them.
>>
>>84470312
looks like a kohonen (self organizing) network
>>
>>84470371
Hadn't heard of it, looks extremely interesting! First time I was this pleasantly surprised by /g/
>>
Hello again! I need help writing a python program with time! The requirements are
1) Print current date and time
2) Print current date minus five days
3) Print current date minus five hours
4) Print current date and time in different format

code so far
import datetime

#print current date and time
x = datetime.datetime.now()
print(x)
placeholder= ('Current Time minus ')

#now - minus five days
minusdays=
print (placeholder + " five days is = " + minusdays)

#now - minus eight hours
minushours=
print (placeholder + "eight hours is = " + minushours)

#Show time with this forma 2019 03 08, 09:57:1
y = datetime.datetime.now()
print(y.strftime("%Y %m %d, %H:%M:%S"))
>>
>>84468878
>>84469056
>>84469775
>>84470826

Perl is faster. You should use Perl.
>>
>>84470532
glad to be of service
>>
>>84470852
kys is even faster than perl, nothing comes close
>>
>>84470876
pytoddler detected
>>
>>84470885
psh, comparing kys to a snake wrestler is slander
you should try to kys, you won't go back.
>>
>>84470908
This man has clearly never used Perl. He is not well. Please someone take him to the infirmary.
>>
File: whisper1.jpg (52 KB, 700x700)
52 KB
52 KB JPG
>>84470914

> string manipulation
>>
I'm writing a simple, text based, turn based game in Python.
It's not going well, I was procrastinating a lot and now I'm doing this during the night.
I have no fucking idea why I can only be really productive at night.
If the basic strategy idea proves to be reasonable, then the plan is to implement this crap game in Godot.
>>
>>84469056
bump because I too want to know the answer to this
>>
>>84470947
>string manipulation
Yes Perl is the best at this
$oldstr = $str =~ s/\w//gr;
Perl was designed for it
>>
>>84470979
perl is shit
>>
>>84470979
>Perl was designed
Doubt
>>
>>84471281
>>84471290
The users have never used Perl before because it would emasculate their inferior languages. Perl loves you, you don't have to care about white space.
>>
>>84470955
>text based
Literally built for Perl
>>
>>84471320
i hate perl, it ruined my youth.
>>
>>84471336
Don't blame Perl for your fathers abandonment.
>>
>>84470852
Perl is dogshit slow. If it was fast it would actually be decent, but its literally the slowest scripting language. Even worse than ruby. Stop shilling this meme language.
>>
File: mfw_when_perl.jpg (27 KB, 640x480)
27 KB
27 KB JPG
>>84471345
nigga~~
>>
>>84471355
>worse than ruby
since Perl hasn't been developed for 15 years, maybe that's true by now. But Perl was faster than Python for ages and Python was already faster than Ruby back when Python had the dumbest imaginable interpreter implementation.
>>
>>84471355
>Perl is dogshit slow. If it was fast it would actually be decent, but its literally the slowest scripting language. Even worse than ruby
Why are you lying on the internet. Perl is faster than perl and ruby.
>>
Both of your languages are slow garbage, use C monkeys...
>>
>>84471375
>since Perl hasn't been developed for 15 years
Not true. Perl 7 also coming out soon

>>84471379
>use C monkeys
I will with the innovative feature of Perl's XS.
>>
>>84471377
>Perl is faster than perl
false. They're the same speed. Don't lie.
>>
>>84471379
this guy is exceptionally wrong, OK?
don't write new stuff in any of these languages. If you want a shitty scripting language,
Perl -> D
Python -> Nim
Ruby -> Crystal
there, you're done.
>>84471388
there might be some graveyard attendants but the language is dead. People still use 5.8.8 because there's literally no reason but 'say' to upgrade.
>>
So there is a graphing calculator called NumWorks which has an open source OS. In a recent update, they removed the ability to install unofficial firmware (because calculators have regulations to be used in exams and they only have one model for every country, so I find it a bit understandable). However, I really want to put a CAS on this thing, but it only supports MicroPython with the math and cmath modules. Do you think it's possible to make a working, even if minimal, CAS for it with these tools or should I not even bother?
>>
>>84471413
>there might be some graveyard attendants but the language is dead. People still use 5.8.8 because there's literally no reason but 'say' to upgrade.

Perl is better than ever. This the best at text manipulation. It's not dead. You hang around boomers too much. Perl is the future. All aboard Perl 7. If php did it why can't Perl? Perl will win.
>>
>>84471446
>python
Sounds like a waste of tyme.
>>
>>84471413
kys > rust > python > perl > C > C++ > java
>>
File: apu hammer.png (40 KB, 900x623)
40 KB
40 KB PNG
>another episode of spending an hour trying to work around a security hole that will literally never matter
>>
>>84471413
>please use these dead NEET memes instead of your widely supported language
classic /g/
>>
>>84471446
How minimal?
>>
>>84469019
based
>>
>>84471611
yeah, literal retards, they should try kys.
it's fast and efficient, and not some promise of esoteric features that meMe languages are.
>>>hurrdurr look so safe, so fast, so easy, no maintenance, holy grail, better than ALGOL ....
>>
>>84468845
working on adding date/month but this is what I have for now
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int amhr, h, m, s;
char am[] = "AM";
char pm[] = "PM";

void funam()
{
printf("Military Time:\n");
printf("%02d:%02d:%02d\n\n", h, m, s);
printf("Standard Time:\n");
printf("%02d:%02d:%02d %s\n\n", h, m, s, am);
sleep(1);
system("clear");
}

void funpm()
{
printf("Military Time:\n");
printf("%02d:%02d:%02d\n\n", h, m, s);
printf("Standard Time:\n");
printf("%02d:%02d:%02d %s\n\n", amhr, m, s, pm);
sleep(1);
system("clear");
}

int main()
{
h = m = s = 0;
printf("Input time in HH:MM:SS\n");
printf(">>> ");
scanf("%d:%d:%d", &h, &m, &s);

while(h > 23 || h < 0 || m > 59 || m < 0 || s > 59 || s < 0)
{
printf("Invalid input, try again!\n");
h = m = s = 0;
printf("Input time in HH:MM:SS\n");
printf(">>> ");
scanf("%d:%d:%d", &h, &m, &s);
}
printf("Valid input, starting clock...\n");
while(1)
{
++s;
if(s == 60)
{
s = 0;
++m;
}
if(m == 60)
{
m = 0;
++h;
}
if(h == 24)
{
h = m = 0;
}

if(h >= 13)
{
amhr = h - 12;
} else
{
amhr = h;
}

if(h > 11)
{
funpm();
}
else
{
funam();
}

}
return 0;
}
>>
>>84471748
> military time
you mean, like, normal time?
>>
>>84471642
Well, if it could solve compound interest symbolically that'd be good enough for me.
>>
>>84471748
Might as well learn the proper time format while you're at it.
https://en.wikipedia.org/wiki/ISO_8601
>>
Respected Sir,
Could you please do the needful and replace mutable state with a state monad, sir?
I have found Programming in Haskell vol 2 most helpful for this operation kind.
Thank you
>>
>>84471748
h = m = 0;

You can drop m = 0 because it's already cleared at the 'if' above.
h = 0;

You can combine funam() and funpm() with the syntax:
<expression> ? <true statement> : <false statement>

like
printf("%02d:%02d:%02d %s\n\n", 
h >= 13 ? h - 12 : h, m, s, h > 11 ? "PM" : "AM"
);
>>
>>84471801
You can solve that problem in Python, symbolically, without a CAS. It's not clear to me if you really want to make a CAS or solve math problems.
>>
>>84471912
Can you imagine if pajeets used monads instead of abstract bean factory interface adapters?
>>
>>84471954
what's a monad
>>
>>84471927
> h >= 13 ? h - 12 : h
(h-1)%12+1
>>
>>84471595
dumb frogposter
>>
>>84471967
lee monad haha got em
>>
>>84471459
Does that mean Raku is abandonware. That language is comfy.
>>
>>84471967
a monoid in a category of endofunctors with endofunctor composition as the tensor product
>>
File: 1637894164478.jpg (101 KB, 657x527)
101 KB
101 KB JPG
Working my way through The C Programming Language. Wish me luck, anons!
>>
>going through interview process for dream job where I get to work on libre software
>have to take Thomas GIA and PPA
Should I be afraid? They said they're a major factor in the hiring decision. I'm not a moron or anything, but general "intelligence tests" really intimidate me.
>>
File: catir.jpg (47 KB, 440x442)
47 KB
47 KB JPG
>>84471927
how do you get to the point where you just figure these things out?
>>
>download a textbook to help me learn Python
>go to download resources from their website for their exercises
>see BLM and other tranny shit about minorities on their website lecturing me about how I should use programming for good
>don't feel bad about pirating their book anymore
Is it just Python that's full of giant faggots or is all of polite society in the programming world like this now?
>>
File: me.jpg (42 KB, 570x538)
42 KB
42 KB JPG
>>84471932
I want to solve mathematical finance problems symbolically with it. I have made a program with SymPy that does this, and I would like to make a similar program for this calculator. Since SymPy is a CAS, I thought I would need something CAS-like to "port" the program. So by your answer I guess it's not necessary. But I have no idea how would I do it without something like SymPy.
>>
>>84472102
>just don't be a big meanie anon ok
is... i-is that A HECKIN POLITICAL OPINION??? HAAAAAAAAAAAAAAAA I'M GOING INSAAAAAAAAAAAAAAANE HELP ME FELLOW 4CHANNERS
>>
>>84471912
>>84471954
this thing that just happend, i want it to keep happening
>>
>>84472016
Did you buy it or "buy" it?
>>
>>84472016
it's short and simple, you'll manage
>>
Why did anyone ever invent get shit like ORMs?
Why are people obsessed with making stupidly tall architectures?
>>
>>84471983
He's a beginner. Step by step..
>>
File: orb.png (500 KB, 960x540)
500 KB
500 KB PNG
>>84472208
>ORMs
they didn't learn from the orbs.
>>
>>84472120
You just assign your numbers to variables then treat the variables like symbols. You honestly never thought of doing that?
>>
>>84472097
I do C since 30 years. Just keep practicing for a few months..
>>
>>84472187
I bought it. I like the feel of paper under my fingers.
>>84472192
I figured, but thanks for the encouragement!
>>
>>84472260
niggy...
that's exactly not what symbolic means
>>
>>84472272
Nice for you anon, too bad it's extremely expensive in my country
>>
>>84472260
Lmfao
>>
>>84471611
all of those languages are more alive than Perl, even D.
that feeling you're feeling isn't "oh no what if support goes away", but "oh no what if I can't get a job doing this".
people who filter everything through needing a job should really be out hunting for a job instead of shitposting here.
>>
>>84472278
You should ask /sci/, this board gets filtered by maths
>>
>>84472278
https://en.wikipedia.org/wiki/Variable_(mathematics)
In mathematics, a variable (from Latin variabilis, "changeable") is a symbol and placeholder for an expression or a quantity that varies as an arbitrary or indeterminate object.
>>
>>84472399
lol, yes and not
>You just assign your numbers to variables
>>
>>84472208
public class Dog
{
public int? Age { get; set; }
public Guid Id { get; set; }
public string Name { get; set; }
public float? Weight { get; set; }

public int IgnoredProperty { get { return 1; } }
}

var guid = Guid.NewGuid();
var dog = connection.Query<Dog>("select Age = @Age, Id = @Id", new { Age = (int?)null, Id = guid });

Assert.Equal(1,dog.Count());
Assert.Null(dog.First().Age);
Assert.Equal(guid, dog.First().Id);


This shit is vomit inducing, look at all that fucking mess you have to go through because some pansies are allergic to sql
>>
>>84472417
Then just put them in strings, I honestly can't see what you're hung up about. Must be that math elitism I hear about.
>>
>>84469056
What does this mean
>>
>>84472460
> HURR DURR
> a = "1"; b = "2"; c = a + b; -> "12"
how can you even breathe with that massive retardation.
>>
File: 1525544788580.png (342 KB, 485x431)
342 KB
342 KB PNG
I can't code myself out of a paper bag after getting a CS degree. What do I do if I hate programming before I even find a job? I had a practical interview this week and couldn't program a proper recursive function to calculate a factorial.
>>
>>84469709
And Terry was racist
>>
>>84472498
>have CS degree
>can't calculate factorial
hire a lawyer, sue your college, demand your tuition back.
>>
so i'm an indie game dev that just knows Lua mostly. i've used GML a good bit (gamemaker language, similar to JS), and a little bit of C# in unity. i want to get into a programming job. ideally game dev but software engineering would be okay too. what should i focus on? c#? python? what sort of projects should i make for a portfolio?
>>
>>84472120
you would have to implement all required operations in terms of higher-order function, it's not hard, but takes some time to do properly.
>>
>>84472419
Just map every table to an object lmao
>>
>>84471996
>Does that mean Raku is abandonware.
YES
>>
>>84472498
LC
>>
>>84472523
Anything I don't use, so you can't make my job pool smaller
>>
Seems that no one here actually works in software. Sad!
>>
>>84472557
>muh 20 layer design pattern with 3 billion external dependencies and indirect database access
Cringe
>>
>>84472477
here you go little baby dummy, i hope this simple example doesn't make you shit your pants
a = 1
b = 2
c = "a + b"
print(c + " = " + str(eval(c)))
>>
>>84472577
Nice blackbox you got there
>>
>>84472102
the easier the language, the more politics you will find in it. when your book makes fun of chinese and such, you know youre learning C or C++ or Fortran
>>
>>84472498
You have two optios:

>git gut
Code. Write some minor app. Maybe try one of those cookbooks. But write code. You'll get into it.

>apply for non-programmer role
Networking / security if you want something technical, but not coding.
Maybe maybe some Data analyst role, if you are good with math.
Or project management, if you are good with people.
>>
>>84472577
cute, and now solve shit with it.
niggy, you couldn't make up any dumber stuff.
>>
>>84472577
sheesh, nice copy pasta retard
but that still isn't symbolic, you are just solving it numerically, in a very retarded roundabout way.
>>
>>84472102
lmao, I posted about the exact same thing a couple weeks ago.
No one here needs to know this of course but regardless stay away from that Python Crash Course faggotry. That homo has suckered so much cash out of programming newfags.
>>
>>84472610
Yeah you're mad. I'm sure you will write an entire CAS for your shitty little high school math calculator. Fuck right off out of here retard.
>>
>>84472598
>when your book makes fun of chinese and such, you know youre learning C or C++ or Fortran
Oddly specific. You had something in mind?
>>
>>84472685
cant remember it. just a couple of old books where the author was making jokes and made a few that would be considered politically incorrect today. it was a early 90s one.
>>
>>84472679
Imbecile
>>
>>84472679
you were the massive faggot that tried to write a cas in 3 lines
>>
>>84472679
Hey I'm not that guy, but you are either trolling or dumber than me, which is quite a feat

>>84472531
Thanks, I found a resource online which seems to tackle this, it's from the book Math for Programmers from Manning.
>>
File: 1500151340831.jpg (81 KB, 300x250)
81 KB
81 KB JPG
>>84472607
Thank you. I was a sysadmin so I'm thinking of returning to that. I'm seeing that 3 months of applying and interviewing isn't a lot for entry-level right now, but I'm tired of it.
>>
File: 1637717263280.gif (3.56 MB, 256x188)
3.56 MB
3.56 MB GIF
>>84472746
glad i could help
>>
File: 1573410948243.jpg (849 KB, 1949x1480)
849 KB
849 KB JPG
>>
>>84472607
cookbook? explain please
>>
>>84473065
"<language|library|os> cookbook" literally the title for most of them
>>
>>84473065
solutions for common problems with "flavor of the day"
>>
>>84469178
just mathematically prove to the court that the patented algorithm is simply a special case of a more general algorithm which predates it ;^)
>>
>>84473190
i shouldn't have to in the first place
but yeah, if you follow that trail long enough nothing is original, except wherever all shit originates.
>>
>>84472178
Haskell pajeetposting never fails to make me laff
>>
>>84472417
Just use Lisp for symbol manipulation.
>>
>>84473295
on a graphical calculator that just barely has micropython and is vendor locked.
>>
>>84471379
Are you doing AoC this year? I want to see you get btfo
>>
i am the avatar of code
>>
programing in Scala!
>>
bros, i miss /prog/
>>
>>84473467
i guess you like socks, huh?
>>
>>84469775
fuck all these negative faggots, good job.

The idea behind shorter functions is what others have said, readability, but also don't forget it's usually easier to debug as well. As your programs get bigger your debugging will get more complicated, and you'll be glad you reduced the size of some functions *if* it makes sense to do so.
>>
File: 1637904008676.jpg (166 KB, 1215x1080)
166 KB
166 KB JPG
At least a college internship in a working specialty that I don't like gives me the motivation to keep learning...

The only reason I procrastinate is the fear of failure and the fact that I won't be able to find a job..
sigh
>>
>>84473490
They hire literal drooling retards.
>>
>>84473569
I'm a white male tho...
>>
>>84473574
Just apply to South-East Asia then, they'll have you. Though they do not hire drooling retards so we are in a pickle.
>>
File: 1a6.png (294 KB, 680x459)
294 KB
294 KB PNG
>>84469709
>Oh no dev thinks different than me game is automatically shit!!!
>>
>>84473574
that shit matters way less than you think it is.

If you aren't getting hired it's not because youre a white male, it's because youre being filtered for being a faggot, unlikeable, stare at the floor and shuffle feet and mumble, wear wal-mart button ups and look like a fat faggot, etc.
>>
>>84473589
It does matter if you live in United States.
>>
>>84473595
do minorities get an advantage? absolutely. but it doesn't make it impossible to get hired if you're a white male. again, if you're getting absolutely zero callbacks that's on you.
>>
i wish there were programmer levels like in my rpgs so you would know how good you are and people would hire you...
>>
When does someone stop being a "code monkey"?
>>
>>84473610
if you're asking, never, monkey
>>
File: i (2).jpg (26 KB, 512x512)
26 KB
26 KB JPG
>>84473569
Not in my country. The competition for an IT job is enormous, and why would anyone hire me if I dont have an IT degree?
>>
>>84473609
start your own damn business
>>
>>84473646
Have you tried applying?
> Why would anyone hire me if I dont have an IT degree
You can display competence in the interview through personal projects and the technical interview.
>>
>>84473666
checked, also this person seems like a doomer and that will probably get picked up on in the interview, then they'll blame on it on muh minorities
>>
>>84473663
only the government can create new companies
>>
>>84473666
>>84473646
What's your country, btw? IT degrees are mostly fake unless you come out of like, CMU / MIT in the US. And even then not even they teach you stuff that is required in some positions, like 'senior cloud architect' (you basically need experience or AWS cert) or 'streaming platforms' (data processing at cloud) etc.
You can always educate yourself too
>>
>>84473682
I said business not company
why are you chasing a problem solver career if you can't think about different ways to solve your own problems
>>
>>84473610
the moment you quit wage slaving for your corporate masters
>>
what the fuck is the point of existential types in rust? just a different name for generics?
>>
>>84473733
stop using rust
>>
>>84473663
is there a market for hello worlds in every programming language?
>>
>MIT cs course from 1986
>99% white
>MIT cs course from 2016
>99% indian/asian

kek it's basically already over for western civilization
>>
>>84473733
Rust doesn't have existential types (yet). You can't
let fst = impl Something
.
>>
>>84473750
Why?
>>
>>84473894
He is afraid that you'll get an advantage over him.
>>
>>84473666
ofc not, I'm still learning
but that competition and "no degree" shit really destroys all the motivation in me..
>>84473678
why

>>84473694
russia
Then what's the point of that? It's all for the fact that you have degree?
that's a huge problem here btw, universities are mostly useless, but you still need a fucking diploma for a job with no actual knowledge
>>
>>84473886
what you wrote would be existential value, no? rather, it would be
let foo: impl Something = ...
>>
>>84473940
Yeah, my bad; but we can't do that either yet. I think it would be costly too.
>>
>>84473937
degrees are generic filters, no one wants to spend hours interviewing literally whos. actual experience is much more important. and by experience I mean having someone out there who though giving you money was worth it
>>
File: blobs.webm (1.61 MB, 400x384)
1.61 MB
1.61 MB WEBM
my evolving neural net blobs have a colour gene now so it's easier to see lineages. it doesn't tell you anything about the rest of their genetics though.
giving them some more neural connections to use seems to have solved the "edge hugging" problem, i think that was an adaptation to them being too dumb to survive basically.
next up i'll add sexual reproduction
>>
>>84473937
> Then what's the point of that?
Requiring a degree is just the laziest way to screen candidates. Good companies have alternate paths, they might specify 'experience' (ie. hinting at hobby projects / OS contributions) and/or 'work experience' (you can't get a real cloud architecture education from universities). Like Twitter, you can apply with almost any kind of background (hobby project, uni, work experience bg).
> but that competition and "no degree" shit really destroys all the motivation in me..
Bro it's the worker's market, employers are fucking cucked by the Covid restrictions especially places that hire from abroad.
> universities are mostly useless, but you still need a fucking diploma
This is a sad state of affairs; especially if your country has just bad universities for IT.
>>
combinedstring = string1 + "_" + string2


or

combinedstring = f"{string1}_{string2}"


???
>>
>>84474037
I think using fstrings is generally more readable but for such a simple example it really doesn't matter much either way
>>
>>84474037
pretty sure f-strings are more efficient (assuming thats python)
>>
>>84468997
excatenate
>>
>>84474009
Based evolution anon. Keep us posted.
>>
>>84474009
Python?
>>
>>84469159
average inteligence frogposter
>>
help I forgot how to algebra
>>
>>84469709
thats even more fun, you may use them however you like.
>>
>>84474009
racist
>>
>>84474086
thanks, i will!

>>84474088
right now i'm using godot because i don't know much about physics engines. but i'm wondering if i'd get better performance out of unity or something else.
>>
Finally figured out my blog, just a public github repo with markdown files. No static page gayness.
>>
>>84474118
>wake up one morning
>realized I can't remember anything beyond basic arithmetic

Good thing computers are good at math and can do it for me
>>
>>84473964
yeah i think so too
but where tf will I get the experience if nobody wants to hire me??

>>84474013
> 'experience' (ie. hinting at hobby projects / OS contributions) and/or 'work experience' (you can't get a real cloud architecture education from universities).
yeah and that's of the reasons why I'm so scared, I doubt I could do anything without experience that would help me get a job.
>>
>>84470826
https://docs.python.org/3/library/datetime.html
>>
>>84471379
"C monkeys" or "C, monkeys"?
>>
>>84473845
You think it's bad now just wait until the generation that grew up exclusively with common core math get to college. You won't see an American anywhere near STEM in American universities.
>>
Imposter syndrome isn't real. It's fine to feel inexperienced as a junior, but if you have 5+ years of experience and still feel that way it's because you are legitimately bad at your job.
>>
>>84471792
2123 as oposed to 21:23
>>
>>84474222
well, yeah, it basically stems from the fact that they can't comprehend easily readable code written by their colleagues due to their poor understanding programming concepts and often even failure to grasp fundamentals like language syntax
>>
>>84474178
>but where tf will I get the experience if nobody wants to hire me?
lots of ways to go about it, mentoring being the most obvious. you can and should get to know people in the field. personal projects are also a better than nothing boost, same for open souce contribution. and if that contribution happens to be directly related to the field you want or people you want to know you, even better
>>
>>84474178
> I doubt I could do anything without experience that would help me get a job.
Well yeah, you will need some kind of experience (work, hobby which includes stuff like open source contributions, or school), because nobody will hire a guy that can't demonstrate competency, that's obvious.

But IT degree is not the only way to show competency / experience.

Having your Github activity include some kind of contributions to a non-trivial project (say you contribute to Laravel, or whatever) looks great on resume. Means you know how to work in a Github centered project, you can read and parse documentation (in order to code the contribution, and send it to correct channels) etc. Like 1-3 of these for a month looks very very good in a resume where there is maybe no work experience and no uni experience.

And personal hobby projects can show experience and skill too.
>>
>>84474222
It's a shitty excuse to embrace terrible developers.
>>
>>84474222
amogus
>>
> 25% pay raise
the inflation is real
>>
>>84474222
it is a strange coincidence that the people claiming to suffer from "imposter syndrome" are always the exact hires you would expect to be poor at their job
>>
File: 1607598219802.png (14 KB, 418x359)
14 KB
14 KB PNG
>>So, what programming languages are you familiar with?
>C
>>A-anything else?
>Assembly
>>W-we'll let you know

Guys, I think I nailed the interview
>>
>>84474323
based, they're probably having a meeting right now to decide whether or not they should make you ceo
>>
File: 1626620162983.jpg (38 KB, 655x527)
38 KB
38 KB JPG
>>84474323
What was the position and what did they ask you about?
>>
File: 73252030_p0_(1).png (3.32 MB, 3541x2508)
3.32 MB
3.32 MB PNG
https://www.youtube.com/watch?v=Zy2pqtZdqhM
Lear Lisp.
>>
why can't windows fork()
>>
>>84474408
wal mart cashier
>>
>>84474450
because that's a unix/posix system call, which windows is not
>>
>>84474529
but why? isn't it basically just copying a process? it shouldn't be too hard to make work
>>
>>84474450
fork() is considered harmful
>>
>>84474546
It's fundamentally incompatible with Windows' process system. Windows has no idea about _copying_ a process and resuming from the exact same point, just like how traditional UNIX has no idea about creating a new process without copying the current one.
>>
>>84473610
"Once you understand how to write a program, get someone else to write it. –Alan Perlis"
>>
>>84474569
>UNIX has no idea about creating a new process without copying the current one
so starting a process in UNIX is something like copying the current one while throwing away data deemed unnecessary?
>>
>>84474610
It's copying the current process and then throwing away everything about it (except fds with CLOEXEC unset).
>>
>>84474615
so which is faster and by how much?
>>
>>84474636
last I looked creating new processes in linux is way faster than windows, which is probably still true. I think years ago, creating a new process on linux was on par performance-wise with making a thread in windows. processes are cheap to make in linux
>>
>>84474636
I don't think either is significantly faster than the other, fork+exec is way more wasteful and dangerous though because it can cause you to OOM due to overcommit. I had this issue when node processes were forking to call a child process and the server started running out of memory because each fork meant 300MB of extra memory.
>>
>>84474649
holy shit, no wonder no one bothers changing
>>
>>84474660
posix_spawn(3) is a better alternative.
>>
i couldnt kill the tech-tupla _irl-virus_;the ghost of the ai killed knew how to feed from it & the failsafe/persistence was too good
>>
>Wake up
>Have to figure out all the mistakes I made yesterday from coding after 19:00.
>>
>Go to sleep
>Realize I could've implemented that thing I spent all day on in a much better way
>>
File: 1593662342959.jpg (134 KB, 657x527)
134 KB
134 KB JPG
>>84468845
I'm working on an anime detector which I will weaponize to unleash upon enjoyers of anime, and put them and their personal information on public sites. You pedos have declared war but we're going to fucking win. I don't care if it divides the right wing, because there's no way we should ally with child loving untermensch.

>images of child porn hurt no one so long as they're drawn
But they piss off normal people. I started this project when I couldn't browse /g/ in public anymore.

>cool, your AI will be able to detect anime so it can be differentiated from actual CSAM
It's a question of specialization, my anime detection engine will be for...
>fortifying your site to prevent any anime from being posted
>detecting anime on the disks of infected weaboos so their information can be collected
>those who generally despise anime and the pedophilia which it causes
>>
>>84472672
Shit. What would you recommend as a good beginner Python book?
>>
Why can't variable names in python start with a number? Is this a python specific thing?
>>
>>84474987
its pretty common
>>
>>84474987
no, that's basically any language with C-like identifier rules.
>>
some of you guys are alright, don't dereference the pointer next cycle
>>
>>84474987
faster compilation because it can abandon string processing after the first character if it's a number
>>
>>84475016
thats bullshit
>>
>>84475023
these rules are old. speed is on the table.
more obvious issue:
1. identifiers can have numbers in them
2. if identifiers begin with numbers, then 123 is an identifier
3. we want 123 to unambiguously be a number
>>
>>84475023
I know, that's what I told Dennis but he was like "dude just trust me" and everyone at Bell Labs knew you didn't start shit with Dennis unless you wanted a beating
>>
>>84475011
use rand::Rng;

fn main() {
let mut rng = rand::thread_rng();
if rng.gen::<f32>() < 0.41 {
let p = std::ptr::null() as *const i32;
println!("{}", unsafe { *p });
}
}
>>
>>84475038
I mean, you could have a rule that it could start with a number as long as it contains one alphabetical character as well

anyways it was already a pretty standard naming convention prior to c, none of the assemblers I've used for old systems allow you to start labels with numbers and those can be clearly identified as labels just from the context
>>
>>84474885
Just like require every male to report for pedo testing. Attach an electrode to their penis and show them sexually explicit photos of 17 year old children, if they get a boner then you put them in jail.
>>
File: filesystem.png (118 KB, 1920x933)
118 KB
118 KB PNG
>>84468845
I'm working on software (SaaS) which presents and analyzes digital evidence to be presented in court.

I'm starting with emails so I've implemented the PST file format specification in Golang: https://github.com/mooijtech/go-pst
>>
>>84472501
That's a good thing.
>>
>>84469709
Stopped playing DF when he added gay dwarves. Absolutely disgusting.
>>
>>84475115
>17 yrs old
The sexual cartoons posted on /g/ honestly average about 11-12 years of age don't try that game pedo
>>
>>84475175
Gay elves make sense. Gay dwarves make none
>>
>>84475095
that's *a* rule, but the "first character" rule is simpler to implement and requires much less backtracking. As a bonus this rule allows numbers to include meaningful letters, like 1e3 (1000.0)
>>
>>84474885
>I started this project when I couldn't browse /g/ in public anymore.
i dont care about you frogposter but fuck your normalfaggotry
>>
>>84475175
And faggots itt are like "dev has opinion why do you care hurrrrr durrrr"....
>>
what's c naming convention for functions that do same thing but one takes params another doesn't
e.g. do_something() do_something(...)
should it be do_something_1() do_something_2(...) or something else
>>
>>84469352
looked into Scrum cause some companys want it. it's super retarded but basically that's what non-techsavy customers are, retarded.
>>
>>84475175
>playing a proprietary game
>surprised when it's updated to include elven slander
play an open source game and you always have a good alternative to shit like this.
>>84475294
there's no convention like this.
>>
>>84475321
Name a good open source DF clone.
>>
>>84475115
You pedo trannies are so cringe
>>
File: 1628333873332.jpg (26 KB, 285x279)
26 KB
26 KB JPG
>>84475383
what's wrong, afraid you'd fail?
>>
File: Gnomoria_Banner.jpg (123 KB, 927x434)
123 KB
123 KB JPG
>>84475372
not open source but Gnomoria is pretty fun but abandoned by dev, there's some guy doing a free sequel called Ingnomia and is actively developing it
It lack the autistic complexity of DF, but has graphics and actual UI and is quite fun to waste some hundreds of hours in building stuff and creating traps and contraptions.
>>
Portability doesn't matter. Nobody runs the same program on more than one computer.
>>
>>84475523
>currently running my programs on both x64 and arm
dumb fag
>>
What's the deal with programming? For example, say I wanted to try Rust. Install it via Terminal and done. Now we use rustc to compile .rs file. Try to run it in VS Code for convenience. "You don't have an extension for debugging Rust. Should we find a Rust extension in the Marketplace?" Interesting. Look up tutorials... BRO YOU DID IT WRONG YOU SUPPOSED TO DO BREW INSTALL RUST BRO. We use cargo to compile our code.
??????????????????????????????????????????
Linux users weren't joking about Terminal being superior. As soon as I tried to make it more convenient it fucked everything up. Should always just do exactly what the language creators say and compile from Terminal. Why are there so many ways just to get started with programming?
>>
>>84475612
judging from your post you should focus your attention on something else than programming
>>
>>84475697
why? so he can ask
>What's the deal with music? For example, say I wanted to try the guitar. Buy a bass and done. Now I want to strum rock chords on it. Try to play a riff. "You don't have the right instrument for that." ??????????? BRO YOU DID IT WRONG YOU GOT THE WRONG KIND OF GUITAR YOU SHOULD BUY THIS OTHER ONE BRO
>>
>>84475612
c*rgo is just a package manager + build tool that invokes r*stc.
you can use the compiler manually, but the point of c*rgo and things like it, are to make your life easier by trivializing project management and building.
Else you'll get m*ke garbage.
>>
File: 1613051614660.gif (1.55 MB, 480x481)
1.55 MB
1.55 MB GIF
>>84475523
>"bro, just write it in c, it's portable!"
>write NES game in c
>compile it for windows
>it doesn't work
>>
>>84475195
>>84475095
And as a note, you REALLY don't want any backtracking in a compilation step.
>>
ironically, the most "portable" lang is an absolute nightmare to actually deal with all the varying platforms. Due to all the #ifdef garbage
>>
>>84476060
Technically it could though if you made an abstraction layer for the system calls and just rewrote that. And came up with some system to emulate interrupts. In the end you'd probably be writing an entire NES runtime so just emulating in the first place would probably be easier, of course.
>>
whats the best way to read a programming book anons? like a story book is meant to be read from start to beginning, a dictionary is only to be looked up and read, so whatst he best method for programming books besides just trying the code they give and experimenting
>>
>>84476364
Burn it and read the doc online.
>>
>>84476364
programming books are a meme
>>
>>84476364
>please /g/ tell me how to read a book
>>
>>84476364
The only books related to programming you should read are the ones about architecture principles and design patterns, you can read them like a story because their purpose is showing you some way of doing things that you might adapt.
>>
>>84468997
ncatenace
>>
>>84468997
condogenate
>>
>>84476364

First of all, why are you reading a book? Do you plan to read it cover-to-cover or are you researching particular topic so you can solve a programming problem?

I am wary to advocate reading books from cover to cover as that is a colossal breadth first search for knowledge. And I do not recommend doing this randomly, without any idea of application or use case; that is your reading (if it relates to your studies or work) should be kind of depth first with the intention of applying your newfound knowledge to solve something. That is how you can learn effectively when you are constrained by time, as we all are.

If you are reading a book with large amounts of code I fear it might not be a good book to begin with. Pseudocode is fine, domain specific books containing specific, particular code makes sense, but if its like 'Introduction to Programming' and includes 300 lines of Java code every other page, run away.

TLDR do not assume you have to read these books cover-to-cover and read them with intent of applying your knowledge to solve some problem you are having.
>>
>>84476665
>>84476665
NEW
>>84476665
>>84476665
NEW
>>84476665
>>84476665
>>
>>84476081
that's why I only code in LLVM IR



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.