It is thoroughly exhausting how much there is to learn about every single package you have to use, in crypto / ethereum.
Just, every single aspect is customised.
I understand how so many of these things have bugs / are half assed.
Just, every single aspect is customised.
I understand how so many of these things have bugs / are half assed.
Writing test's.
The most popular frame work is using an older version of web3js.
ok. I figured that out now. can move forward.
Why isn't the math working out? Oh yeah, javascript can't do math at that scale.
But web3js has BigNumbers (basically does math on massive numbers safely, PHP has a similar package, assume most languages do).
Why isn't my balance being returned as a BigNumber ...
Oh.. the small number you seed with has to be a BigNumber instance to get a BigNumber out....
... and it still not working. There's one last quirk i'm sure.
The most popular frame work is using an older version of web3js.
ok. I figured that out now. can move forward.
Why isn't the math working out? Oh yeah, javascript can't do math at that scale.
But web3js has BigNumbers (basically does math on massive numbers safely, PHP has a similar package, assume most languages do).
Why isn't my balance being returned as a BigNumber ...
Oh.. the small number you seed with has to be a BigNumber instance to get a BigNumber out....
... and it still not working. There's one last quirk i'm sure.
By giririsss Go To PostLove that sometimes, Ethereum unit tests fail for no reason. And it's a known thing.*blinking.gif*
Really great.
By reilo Go To PostGithub, how the FUCK are you down?
didn't MS buy them?
Why does EVERY language feel the need to re-invent variable declarations.
!@)%8#@!J%) V (P#HN IB@# TOH#T )*H#T@#$ OH N
Just kiill me.
!@)%8#@!J%) V (P#HN IB@# TOH#T )*H#T@#$ OH N
Just kiill me.
By Angelus Errare Go To PostSoooo anyone working on any fun projects?Not at the moment. I need to, though. Feel like I'm stagnating.
By Angelus Errare Go To PostSoooo anyone working on any fun projects?Some. All of it is crypto related.
lol. I think i've learned 8 new syntax /languages in the last 6 months.
I wouldn't mind spending time just focusing on 2 of them.
I wouldn't mind spending time just focusing on 2 of them.
By Pac-12 Go To PostI need something interesting to work on. Fuck. My job has been in a rut for like 6 damn years.
Do a personal project, I'm messing around with Arduino for fun with C
By giririsss Go To Postlol. I think i've learned 8 new syntax /languages in the last 6 months.
I wouldn't mind spending time just focusing on 2 of them.
Isn't that the best.
By Angelus Errare Go To PostDo a personal project, I'm messing around with Arduino for fun with C
Isn't that the best.
I wish I could find that motivation again. I had it when I was younger, for sure. Now, if it isn't work related, I just can't seem to follow through. And that's a problem.
By Angelus Errare Go To PostIsn't that the best.
No. Being a polygot is nice, but sometimes constantly learning new languages means you're not doing.
By giririsss Go To Postlol. I think i've learned 8 new syntax /languages in the last 6 months.
I wouldn't mind spending time just focusing on 2 of them.
Of the 8, which is the least idiomatic?
Which two would you focus on for personal enjoyment, not for commercial reasons?
Working on a really small new tab extension in Chrome for personal use, It's maximum weeb. Might pull in some of my bookmarks as well.
I mean picking up new syntax is pretty easy as long as your fundamentals are solid, doesn't take long to be productive and there's fun in pouring through documentation and finding language specific ways of doing things that are easier than in another language.
On a side note, out of all the programming languages I know, I hate Ruby THEE most. Thankfully it's been quite a while since I messed withRuby Rails (heh) in any capacity.
Currently my favorite language has to either be Elixir or Go. Go is so damn fun I swear, good job El Goog. Kinda warming up to Rust as it's clicking though, but I haven't put much time into it to really give a good opinion of it since it's uses in my current professional life are very limited.
By giririsss Go To PostNo. Being a polygot is nice, but sometimes constantly learning new languages means you're not doing.
I mean picking up new syntax is pretty easy as long as your fundamentals are solid, doesn't take long to be productive and there's fun in pouring through documentation and finding language specific ways of doing things that are easier than in another language.
On a side note, out of all the programming languages I know, I hate Ruby THEE most. Thankfully it's been quite a while since I messed with
Currently my favorite language has to either be Elixir or Go. Go is so damn fun I swear, good job El Goog. Kinda warming up to Rust as it's clicking though, but I haven't put much time into it to really give a good opinion of it since it's uses in my current professional life are very limited.
Working on a react-native project that has a ton of custom Swift implementations for Apple Watch and Siri Shortcuts basically makes you wonder why this is in react-native to begin with.
By Angelus Errare Go To PostWorking on a really small new tab extension in Chrome for personal use, It's maximum weeb. Might pull in some of my bookmarks as well.What's wrong with Ruby :(
I mean picking up new syntax is pretty easy as long as your fundamentals are solid, doesn't take long to be productive and there's fun in pouring through documentation and finding language specific ways of doing things that are easier than in another language.
On a side note, out of all the programming languages I know, I hate Ruby THEE most. Thankfully it's been quite a while since I messed withRubyRails (heh) in any capacity.
Currently my favorite language has to either be Elixir or Go. Go is so damn fun I swear, good job El Goog. Kinda warming up to Rust as it's clicking though, but I haven't put much time into it to really give a good opinion of it since it's uses in my current professional life are very limited.
By reilo Go To PostWorking on a react-native project that has a ton of custom Swift implementations for Apple Watch and Siri Shortcuts basically makes you wonder why this is in react-native to begin with.
React-Native is fun but honestly outside of the fact you can use JS, I end up just firing up Xcode and using Swift and getting more done.
By batong Go To PostWhat's wrong with Ruby :(
Mostly syntax honestly. Just not a fan, that and Ruby's popularity is so tied to Rails that I can never think of a use for Ruby outside of Rails, and as a language it's kinda slow so I can't even think of a reason to use it. Like Python has a healthy life as a language and is used for many things. Whenever Rails dies...Ruby is screwed.
I tolerate Ruby because Rails is fun (as of Rails 5, since they decided to go with vanilla JS which made integrating view frameworks WAY easier).
Not sure how many people here are familiar with SQLite and EF6, but if anyone could help me figure out this issue I'm having, that'd be swell. The error I'm getting when trying to perform any operation with the database is "Unable to cast object of type 'System.Data.SQLite.SQLiteConnection' to type 'System.Data.SqlClient.SqlConnection'.". I have details and some code samples in this SO post: https://stackoverflow.com/questions/52524121/unable-to-cast-object-of-type-system-data-sqlite-sqliteconnection-to-type-sys
By Angelus Errare Go To PostReact-Native is fun but honestly outside of the fact you can use JS, I end up just firing up Xcode and using Swift and getting more done.There's a happy path here to basically get Android out for free, but you still need to develop with a native mindset. I see far too much code that treats app development with react-native like a web or desktop application, and there is huge pitfalls to that.
Swift is great though.
Having to write Objective-C bridges to have your react-native code talk to Swift and vice versa is trash. Three languages to accomplish one thing is dumb.
By reilo Go To PostThere's a happy path here to basically get Android out for free, but you still need to develop with a native mindset. I see far too much code that treats app development with react-native like a web or desktop application, and there is huge pitfalls to that.
Swift is great though.
Having to write Objective-C bridges to have your react-native code talk to Swift and vice versa is trash. Three languages to accomplish one thing is dumb.
Agreed. Yea I honestly keep forgetting about the need for Android application alongside the iOS which makes sense to utilize React-Native. I was thinking a stand-alone iOS app (exceedingly rare nowadays).
Have you messed around with Flutter? I've made a few small toybox sized projects, but nothing that would really put it through it's paces.
Tangent: I made a hilarious simple macOS app a few days ago before and I remembered all over again why I fucking hate Electron (memory footprint, and building your apps with electron-builder when you use Create-React-App can be an utter pain in the fucking ass. App was like 201MB and it's like...okay this is unnecessary in every capacity. But just stumbled Proton Native, so I'll probably do a weekend rewrite, I imagine it won't take me more than a day.
The "how did you do that?" thread is dead, but I've been implementing something similar to Overwatch health bars in UE4:
By giririsss Go To PostNice. You're a game dev then?
It's an F2P thing I've been working on as a hobby for a while. An actual job would be nice, but outside of intern positions thousands of miles away, companies generally require at least one shipped title as part of your experience.
Larry Wall is my dude.
Dude is like the Al Yankovic of programmers, except infinitely more articulate and 99.9% correct about most issues.
Who says no?
Dude is like the Al Yankovic of programmers, except infinitely more articulate and 99.9% correct about most issues.
Who says no?
Please disregard my previous praise of Larry Wall.
Perl people be weird af.
Anyway, please accept this link instead: https://scs.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%22b96d90ae-9871-4fae-91e2-b1627b43e25e%22&maxResults=50
It's a really good lecture series on low-level programming, which walks you through the fundamentals from hardware-level microprocessor basics, to finally getting you super comfortable in the more advanced concepts of low-level memory management and optimizations (to say the least) in C programming.
I think that people interested in moving from high-level to lower level programming may likely have a particular appreciation for this lecture series.
Perl people be weird af.
Anyway, please accept this link instead: https://scs.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%22b96d90ae-9871-4fae-91e2-b1627b43e25e%22&maxResults=50
It's a really good lecture series on low-level programming, which walks you through the fundamentals from hardware-level microprocessor basics, to finally getting you super comfortable in the more advanced concepts of low-level memory management and optimizations (to say the least) in C programming.
I think that people interested in moving from high-level to lower level programming may likely have a particular appreciation for this lecture series.
JavaScript: The Definitive Guide, by Flanagan, published by O'Reilly, is a really damn good book. Easily one of the better organized programming books of any environment I've ever been able to read. Other books on JavaScript, like that trash "Eloquent" one, or that Wrox published one that's written by Zakas, are just the most boring bogs in comparison.
Wrox does have the best organized C++ book though, in my opinion. It's called "Professional C++" and even though it has "Professional" in the title I'd still recommend it to beginners over any other C++ book because it just doesn't insult your intelligence and is actually easy enough to follow if you've ever read more than one book on vanilla C. (The easiest book to read on vanilla C is "Practical C" by Oualline, and then after that I'd just recommend reading every FAQ you can find on Pointers and pointer arithmetic. Wikipedia is probably the best resource as a reference on vanilla C, amazingly.)
Bjarne Stroustrup is a good dude but he fibbed it a bit when he said his C++ book can be read as a guide just as much as a reference. It's definitely more reference than guide. So I would only read it after having read "Professional C++".
Wrox does have the best organized C++ book though, in my opinion. It's called "Professional C++" and even though it has "Professional" in the title I'd still recommend it to beginners over any other C++ book because it just doesn't insult your intelligence and is actually easy enough to follow if you've ever read more than one book on vanilla C. (The easiest book to read on vanilla C is "Practical C" by Oualline, and then after that I'd just recommend reading every FAQ you can find on Pointers and pointer arithmetic. Wikipedia is probably the best resource as a reference on vanilla C, amazingly.)
Bjarne Stroustrup is a good dude but he fibbed it a bit when he said his C++ book can be read as a guide just as much as a reference. It's definitely more reference than guide. So I would only read it after having read "Professional C++".
By giririsss Go To PostIn general, i just default to anything published by O'Reily. They tend to be very good.
Check out http://speakingjs.com
There’s a free HTML version of the book and it is a damn promising read so far.
Edit: nvm this book is trash
By giririsss Go To PostIn general, i just default to anything published by O'Reily. They tend to be very good.
Heh, I once worked with a guy who wrote a C# book for O'Reilly. I got hired on at a company as a novice, and when they told me they had this guy as a remote contractor/consultant, I was blown away.
I saw & learned so many bad practices from that guy. Couldn't code for shit. Fortunately, I realized it soon enough and began not following his particular approach.
(I'm sure their books written by other authors are probably fine.)
By Pac-12 Go To PostHeh, I once worked with a guy who wrote a C# book for O'Reilly. I got hired on at a company as a novice, and when they told me they had this guy as a remote contractor/consultant, I was blown away.
I saw & learned so many bad practices from that guy. Couldn't code for shit. Fortunately, I realized it soon enough and began not following his particular approach.
(I'm sure their books written by other authors are probably fine.)
Michael Kerrisk who wrote the book on Linux programming is actually from Christchurch, NZ btw, incidentally. His book is published by No Starch Press, however.
Does anyone else find that programming in the Unix environment is some trash? For example, shell scripting uses $(x) for command substitution with ${x} for variable substitution. But in makefiles, $(x) is used for variable substitution instead. So already you're faced now with three different syntaxes from all the inconsistencies between the shell, C, and make. It takes context switching into absurdity if you ever have to read/write code as a novice.
I have always been interested of programming and was planning to give a go at Advent of Code this year. It seems that Python would be a good language to pick for the Advent, do you guys have a good place to start with?
I have forgotten all of the MatLab programming so I would be starting fresh.
I have forgotten all of the MatLab programming so I would be starting fresh.
By rossonero Go To PostI have always been interested of programming and was planning to give a go at Advent of Code this year. It seems that Python would be a good language to pick for the Advent, do you guys have a good place to start with?Python is good to start with. Javascript, too (and doesn't require any installation to use). I am not sure of a good tutorial for Python, but I have always liked htmldog for Javascript.
I have forgotten all of the MatLab programming so I would be starting fresh.
Visual Studio Code, Atom, and Notepad++ are all fine text editors with varying levels of assistance and complexity.
I would maybe avoid Atom if possible, it was a horrible memory hog and would constantly leak. At least that was true when I stopped using it a year ago
I normally just use standard Visual Studio or JetBrains products, but I don't think someone just starting out needs something that heavy. (And people here probably don't like either of those products, either, and that's ok!)
Jetbrains IDEs are the worst. They are a giant memory sieve on Macs.
I suggest vim but I'm crazy. Spacevim is nice as an intro. Otherwise VisualStudio or even Sublime Text might be your best bet.
My biggest reason for proposing a simple(r) text editor: don't rely on the IDE to write the code for you when you start out.
I suggest vim but I'm crazy. Spacevim is nice as an intro. Otherwise VisualStudio or even Sublime Text might be your best bet.
My biggest reason for proposing a simple(r) text editor: don't rely on the IDE to write the code for you when you start out.
For learning Javascript: https://nodeschool.io/#workshoppers
I'd begin at the "Core" section. Some very good fundamentals of CS stuff in there, too.
I'd begin at the "Core" section. Some very good fundamentals of CS stuff in there, too.
datacamp had a nice way of teaching python, they focus more on data science but still strong on the basics. a free ms dev account will get you a 2 month trial
also if you want a book, checkout Learn Python The Hard Way
also if you want a book, checkout Learn Python The Hard Way
I suck at trying to convert recursive code to iterative. A friend who is going to school had their teach propose a problem which I thought would be interesting to code: given a user-definable character set and max password length, generate all possible passwords (and time it). The solution I ended up with, after cribbing from other people's similar solutions, has recursion and I think would benefit greatly from being iterative for larger character sets and password lengths.
Anyway, the relevant code (in javascript because fuck it, i wanted to):
From my reading, this should be a relatively simple function to convert to iterative, but I'm just too dumb.
Anyway, the relevant code (in javascript because fuck it, i wanted to):
var startPasswordGeneration = function (passwordLength, passwordCharacterArray) {
var minimumPasswordLength = 1;
var maximumPasswordLength = passwordLength;
// generate passwords for each possible password length
for (var length = minimumPasswordLength; length <= maximumPasswordLength; length++) {
generatePasswordsForLengthRecursive(length, passwordCharacterArray, '');
}
};
var generatePasswordsForLengthRecursive = function (passwordLength, passwordCharacterArray, passwordFragment) {
// password length has been reached
if (passwordLength === 0) {
console.log(passwordFragment);
return;
}
// iterate through the array
for (var characterIndex = 0; characterIndex < passwordCharacterArray.length; characterIndex++) {
var newPasswordFragment = passwordFragment + passwordCharacterArray[characterIndex];
generatePasswordsForLengthRecursive(passwordLength - 1, passwordCharacterArray, passwordFragment);
}
};
From my reading, this should be a relatively simple function to convert to iterative, but I'm just too dumb.
A VS Code extension in combination with WSL allows for easy Linux development on Windows (for people that want to use VS Code to write and run their code): https://devblogs.microsoft.com/commandline/an-in-depth-tutorial-on-linux-development-on-windows-with-wsl-and-visual-studio-code/